Click here to Skip to main content
15,900,725 members
Home / Discussions / C#
   

C#

 
AnswerRe: Encrtpy a DataTable/DataSet served by a WebService in VS2005/C# Pin
Andre Vianna4-May-07 4:16
Andre Vianna4-May-07 4:16 
QuestionProperties window - when are the properties used? Pin
microslav3-May-07 4:20
microslav3-May-07 4:20 
AnswerRe: Properties window - when are the properties used? Pin
Jon Hulatt3-May-07 4:38
Jon Hulatt3-May-07 4:38 
AnswerRe: Properties window - when are the properties used? Pin
PIEBALDconsult3-May-07 8:07
mvePIEBALDconsult3-May-07 8:07 
QuestionVista-izing my c# 2 app Pin
Jon Hulatt3-May-07 3:56
Jon Hulatt3-May-07 3:56 
AnswerRe: Vista-izing my c# 2 app Pin
Scott Dorman3-May-07 4:59
professionalScott Dorman3-May-07 4:59 
AnswerRe: Vista-izing my c# 2 app Pin
Daniel Grunwald3-May-07 8:35
Daniel Grunwald3-May-07 8:35 
QuestionCopy bitmap to OpenOffice writer via clipboard Pin
frozenpondlife3-May-07 3:28
frozenpondlife3-May-07 3:28 
Hi,

I'm trying to copy a bitmap of a user control to the clipboard and then into OpenOffice Writer.

The problem I have is that nothing gets copied into OpenOffice Writer. I always have to first paste the bitmap to WordPad, then copy it again to the clipboard from there and only then can I paste the bitmap into OOWriter.

The issue seems to be the format of the bitmap I copy to the clipboard (BITMAP and DIB BITMAP - according to Clipboard Viewer). When I add the step using WordPad, it adds the formats ENHANCED METAFILE and PICTURE.

Here's the question: How can I also copy the bitmap as Enhanced Metafile and Picture, as that would probably solve my problem.

Here's the code I'm using:

<br />
            // get location and dimensions<br />
            Point topLeft = this.PointToScreen(this.Location);<br />
            Size screenshotSize = this.Size;<br />
<br />
            // create bitmap<br />
            Bitmap bmpScreenshot = new Bitmap(screenshotSize.Width, screenshotSize.Height, PixelFormat.Format32bppArgb);<br />
<br />
            // take screen shot of THIS control<br />
            Graphics gfxScreenshot = Graphics.FromImage(bmpScreenshot);<br />
            gfxScreenshot.CopyFromScreen(topLeft, new Point(0, 0), screenshotSize, CopyPixelOperation.SourceCopy);<br />
<br />
            // copy to clipboard<br />
            Clipboard.SetImage(bmpScreenshot);<br />
<br />


Any help is appreciated. Thanks
QuestionCheck 2 rows in different tables Pin
Herman<T>.Instance3-May-07 3:07
Herman<T>.Instance3-May-07 3:07 
AnswerRe: Check 2 rows in different tables Pin
Arun.Immanuel3-May-07 3:28
Arun.Immanuel3-May-07 3:28 
GeneralRe: Check 2 rows in different tables Pin
Herman<T>.Instance3-May-07 23:22
Herman<T>.Instance3-May-07 23:22 
AnswerRe: Check 2 rows in different tables Pin
AFSEKI7-May-07 4:50
AFSEKI7-May-07 4:50 
QuestionBad Request! Pin
Sabry19053-May-07 2:47
Sabry19053-May-07 2:47 
AnswerRe: Bad Request! Pin
Guffa3-May-07 3:42
Guffa3-May-07 3:42 
GeneralRe: Bad Request! Pin
Sabry19053-May-07 4:32
Sabry19053-May-07 4:32 
AnswerRe: Bad Request! Pin
Stefan Prodan3-May-07 12:22
Stefan Prodan3-May-07 12:22 
GeneralRe: Bad Request! Pin
Sabry19056-May-07 1:24
Sabry19056-May-07 1:24 
Questionintegrate help V2.0 into winforms app Pin
Giorgi Dalakishvili3-May-07 2:36
mentorGiorgi Dalakishvili3-May-07 2:36 
QuestionWindows Services Pin
Sumanta Rout3-May-07 2:28
Sumanta Rout3-May-07 2:28 
AnswerRe: Windows Services Pin
kubben3-May-07 5:07
kubben3-May-07 5:07 
GeneralRe: Windows Services Pin
Sumanta Rout3-May-07 5:40
Sumanta Rout3-May-07 5:40 
GeneralRe: Windows Services Pin
kubben3-May-07 5:41
kubben3-May-07 5:41 
GeneralRe: Windows Services Pin
Sumanta Rout3-May-07 5:44
Sumanta Rout3-May-07 5:44 
GeneralRe: Windows Services Pin
kubben3-May-07 5:45
kubben3-May-07 5:45 
GeneralRe: Windows Services Pin
Sumanta Rout3-May-07 18:41
Sumanta Rout3-May-07 18:41 

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.