This week's book giveaway is in the Clojure forum.
We're giving away four copies of Clojure in Action and have Amit Rathore and Francis Avila on-line!
See this thread for details.
Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Forte

 
Satyanand, Ganti
Greenhorn
Posts: 2
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic