The Origin Forum
File Exchange
Try Origin for Free
The Origin Forum
Home | Profile | Register | Active Topics | Members | Search | FAQ | Send File to Tech support
 All Forums
 Origin Forum for Programming
 Forum for Origin C
 Exporting to pdf

Note: You must be registered in order to post a reply.
To register, click here. Registration is FREE!

Screensize:
UserName:
Password:
Anti-Spam Code:
Format Mode:
Format: BoldItalicizedUnderlineStrikethrough Align LeftCenteredAlign Right Horizontal Rule Insert HyperlinkUpload FileInsert Image Insert CodeInsert QuoteInsert List
   
Message:

* HTML is OFF
* Forum Code is ON
Smilies
Smile [:)] Big Smile [:D] Cool [8D] Blush [:I]
Tongue [:P] Evil [):] Wink [;)] Clown [:o)]
Black Eye [B)] Eight Ball [8] Frown [:(] Shy [8)]
Shocked [:0] Angry [:(!] Dead [xx(] Sleepy [|)]
Kisses [:X] Approve [^] Disapprove [V] Question [?]

 
Check here to subscribe to this topic.
   

T O P I C    R E V I E W
LukasBurgi Posted - 04/22/2005 : 01:56:31 AM
Origin Version (Select Help-->About Origin): 7.5
Operating System: XP

I try to export pages to pdf files using the following lines

LayoutPage oLayoutPage = Project.Pages("...");
string strFileName = "D:\Test.pdf";
export_page_to_image(oLayoutPage, strFileName,"pdf", FALSE);

This works fine for simple pages, however, for more complex pages like a layout page containing several graphs with several layers each, some layers get lost during the export process. Oddly enough, when the Origin window is minimized during program execution (calling the routine from the Code Builder) the export works ok even in the case of complex pages. The problem only occurs when the Origin window is on the screen during execution.

Any advice is highly apprecitated.
Lukas
2   L A T E S T    R E P L I E S    (Newest First)
LukasBurgi Posted - 04/26/2005 : 01:58:33 AM
Thanks Mike. This works fine and omits the problem.
Lukas
Mike Buess Posted - 04/25/2005 : 12:58:21 PM
I don't know why that happens but this might work...

LayoutPage oLayoutPage = Project.Pages("...");
HWND hwnd = GetWindow(OGW_MAIN);
Window oWin(hwnd);
oWin.ShowWindow(SW_MINIMIZE); // minimize the program window
string strFileName = "D:\Test.pdf";
export_page_to_image(oLayoutPage, strFileName,"pdf", FALSE);
oWin.ShowWindow(SW_NORMAL); // restore program window

Mike Buess
Origin WebRing Member

The Origin Forum © 2020 Originlab Corporation Go To Top Of Page
Snitz Forums 2000