aspose file tools*
The moose likes IDEs, Version Control and other tools and the fly likes Forte Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Soft Skills this week in the Jobs Discussion forum!
JavaRanch » Java Forums » Engineering » IDEs, Version Control and other tools
Bookmark "Forte" Watch "Forte" New topic
Author

Forte

Satyanand, Ganti
Greenhorn

Joined: Sep 04, 2001
Posts: 2
I want a screen shot to be printed in a word document during run time If I click any specified button(for eg. OK button). I tried with the following code. but it writes the data in binary format.
Path :textData = new();
Path.Concat('\\MAM\\MemberAcct.doc');

C_File.SetPortableName(Path, TRUE);
C_File.Open();
C_File.Close();

//Open the File
C_File.Open(SP_AM_WRITE,TRUE);

Image = (UserWindow) (Self.Clonewindowonly);
Image.Open(TRUE);
self.window.windowSystem.CopytoClipboard(Image.Window.RenderAsImage());
C_FIle.WriteSerialized(self.window.windowSystem.CopyFromClipboard(ObjectDataType = SD_IMAGE));
Image.Close();
C_File.Close();
I tried to open the doc with Binary = FALSE but it will give me exception.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Forte