Click here to Skip to main content
15,906,645 members
Home / Discussions / C#
   

C#

 
GeneralRe: Write arraylists content to file Pin
Yustme19-Oct-06 10:43
Yustme19-Oct-06 10:43 
QuestionCalling Custom keys from a Web Config File Pin
iamnew2C#19-Oct-06 9:04
iamnew2C#19-Oct-06 9:04 
QuestionDownloading .NET Pin
bolddoggz19-Oct-06 8:57
bolddoggz19-Oct-06 8:57 
AnswerRe: Downloading .NET Pin
Christian Graus19-Oct-06 9:47
protectorChristian Graus19-Oct-06 9:47 
QuestionTree View Search Pin
joshp121719-Oct-06 8:44
joshp121719-Oct-06 8:44 
AnswerRe: Tree View Search Pin
mav.northwind20-Oct-06 22:10
mav.northwind20-Oct-06 22:10 
QuestionDPI-setting problem Pin
Bekjong19-Oct-06 5:15
Bekjong19-Oct-06 5:15 
QuestionFree Hand Drawing in PowerPoint through C# Pin
jonolo19-Oct-06 5:04
jonolo19-Oct-06 5:04 
Hi all

I get points(x,y coordinates) delivered from a external source via Bluetooth. I want to draw these points(strokes) in real-time in an PowerPoint presentation. Each stroke shall be an object in PowerPoint so the user then can move around the free hand drawing stroke after the entire stroke is finished.

The problem I have is that the actual object that appears in PowerPoint when drawing flickers a lot because of up to 75 new points per second can be received. Is there any way of do this in a better way? Or should I just store up points and then update to PowerPoint in intervals?

Any help is much appreciated as there is hard to find any good information or tutorials about the best way to interface with powerpoint...

Kind Regards

Jonas Olofsson



Code snippet:

using PowerPoint = Microsoft.Office.Interop.PowerPoint;

public void UpdateFreeDrawStroke(int x, int y)
{
// Update active free draw stroek with new point
currentStroke.Nodes.Insert(currentStroke.Nodes.Count, Microsoft.Office.Core.MsoSegmentType.msoSegmentLine, Microsoft.Office.Core.MsoEditingType.msoEditingAuto, ConvertCoord(x), ConvertCoord(y),0,0,0,0);
}

// Create new active free draw stroke at (x,y)
public void NewFreeDrawStroke(short x, short y)
{
int convX = ConvertCoord(x);
int convY = ConvertCoord(y);

PowerPoint.FreeformBuilder b = pptSlide.Shapes.BuildFreeform(Microsoft.Office.Core.MsoEditingType.msoEditingAuto, convX, convY);

b.AddNodes(Microsoft.Office.Core.MsoSegmentType.msoSegmentLine, Microsoft.Office.Core.MsoEditingType.msoEditingAuto, convX+1, convY+1, 0, 0, 0, 0);

currentStroke = b.ConvertToShape();
}

QuestionDynamically retrieving WMI Data - A little help please! Pin
junus19-Oct-06 4:46
junus19-Oct-06 4:46 
QuestionMake property from base class protected Pin
topcatalpha19-Oct-06 4:43
topcatalpha19-Oct-06 4:43 
AnswerRe: Make property from base class protected Pin
Dustin Metzgar19-Oct-06 4:52
Dustin Metzgar19-Oct-06 4:52 
GeneralRe: Make property from base class protected Pin
topcatalpha19-Oct-06 5:15
topcatalpha19-Oct-06 5:15 
Questionusing the selectionformula property Pin
haseeb_saeed18-Oct-06 21:19
haseeb_saeed18-Oct-06 21:19 
Questionusing the selectionformula property for crystalreport viewer Pin
haseeb_saeed18-Oct-06 21:16
haseeb_saeed18-Oct-06 21:16 
Questionusing dbf in c# .net Pin
Amar Chaudhary18-Oct-06 19:53
Amar Chaudhary18-Oct-06 19:53 
AnswerRe: using dbf in c# .net Pin
baerten19-Oct-06 22:40
baerten19-Oct-06 22:40 
GeneralRe: using dbf in c# .net Pin
Amar Chaudhary19-Oct-06 23:48
Amar Chaudhary19-Oct-06 23:48 
GeneralRe: using dbf in c# .net Pin
mcgahanfl20-Oct-06 6:06
mcgahanfl20-Oct-06 6:06 
GeneralRe: using dbf in c# .net Pin
mcgahanfl20-Oct-06 6:07
mcgahanfl20-Oct-06 6:07 
QuestionDownload file from http address with authentication Pin
haritus18-Oct-06 19:52
haritus18-Oct-06 19:52 
AnswerRe: Download file from http address with authentication Pin
Le centriste19-Oct-06 4:29
Le centriste19-Oct-06 4:29 
QuestionRequired Field Validator Pin
bhanu1234518-Oct-06 19:31
bhanu1234518-Oct-06 19:31 
Questionvisual studio express - stand alone app ? [modified] Pin
bryce18-Oct-06 16:27
bryce18-Oct-06 16:27 
AnswerRe: visual studio express - stand alone app ? Pin
Dave Kreskowiak18-Oct-06 17:51
mveDave Kreskowiak18-Oct-06 17:51 
GeneralRe: visual studio express - stand alone app ? Pin
bryce18-Oct-06 18:25
bryce18-Oct-06 18:25 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.