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 March 7th, 2007, 01:02 AM
Buebber Buebber is offline
Junior Member
 
Join Date: Nov 2006
Location: Germany
Posts: 4
Buebber is an unknown quantity at this point
Send a message via ICQ to Buebber
Default Print directly to a specific printer

Hello,

we bought the ActiveX control. Now I want to print a pdf to a specific printer WITHOUT opening the print-dialog.

Is this possible? (Yes it is, with the new Version of the SDK)

Can you give me an example how to realize it with C++?

Thanks

Buebber

[EDIT]
I use the direct print function to print out a PDF to a specific printer. This works fine but how can I change the printer settings? Documents in landscape are scaled to fix the paper.
Can I tell it to the ActiveX or can I only set this settings using the PrinterDevice (Document Settings)?
[/EDIT]

Last edited by Buebber; March 9th, 2007 at 12:32 AM.
Reply With Quote
  #2  
Old March 21st, 2007, 07:05 PM
tree tree is offline
Junior Member
 
Join Date: Jun 2006
Posts: 9
tree is an unknown quantity at this point
Default

CPrintDialog Dlg(false, PD_ALLPAGES | PD_USEDEVMODECOPIES | PD_NOPAGENUMS
| PD_HIDEPRINTTOFILE | PD_NOSELECTION, NULL);

if(Dlg.DoModal()==IDOK)
{
UpdateData(false); //shows printer information in the textbox
HDC hDc=Dlg.GetPrinterDC();
m_FoxitReader.Print((long)hDc,1,1,1,1,100,0,0); //m_FoxitReader is type of CFoxitReaderSDK
}
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:36 AM.


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