Foxit Corporation Forums  

Go Back   Foxit Corporation Forums > Portable Document Format (PDF) Tools > SDK ( DLL or ActiveX)

SDK ( DLL or ActiveX) Integrate PDF functions into your application easily. The SDK shares the same technology that powers Foxit Reader.

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old December 13th, 2006, 07:57 PM
panfeng panfeng is offline
Junior Member
 
Join Date: Dec 2006
Posts: 1
panfeng is an unknown quantity at this point
Exclamation PrintFile problem

Hi,
I want to ask you a question. Could I set paper size before I print it out? And I want to pint paper one by one,but when I use FoxitReaderSDK1.PrintFile,it will appear dialog box
.For example:...

FoxitReaderSDK1.openfile('d:\a.pdf');
FoxitReaderSDK1.papersize:=DM_PAPER_A3;
FoxitReaderSDK1.print;

Could you have good idea? Thanks a lot.
Reply With Quote
  #2  
Old January 9th, 2007, 05:13 PM
wanli_zi wanli_zi is offline
Junior Member
 
Join Date: Jan 2007
Posts: 4
wanli_zi is an unknown quantity at this point
Default

Hi,it's sure that you can set paper size before you print it out, and you must change the paper's name. There is a example for vc as follow :

DEVMODE* lpDevMode = (DEVMODE*)PrintDialog.GetDevMode(); //Get
//the printer mode
lpDevMode->dmPaperSize =0;// DMPAPER_USER;
lpDevMode->dmFields |= DM_PAPERSIZE;
lpDevMode->dmPaperLength = length;
lpDevMode->dmPaperWidth = width;
strcpy((char *)lpDevMode->dmFormName,"");//set the paper size
//as NULL or “Custom Size”


Our FoxitReaderSDK (.DLL) also print paper one by one
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -8. The time now is 06:32 AM.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
©2005-2008 Foxit Corporation. All rights reserved.