Loading...

Printing the PDF in duplex mode

Support for GdViewer OCX and GdViewer Pro ActiveX/SDK.

Printing the PDF in duplex mode

Postby bkagan » Mon Apr 28, 2008 6:42 pm

Hi,

I am trying to print the PDF file to network printer in duplex mode, but regardless of settings document is always prints in single page mode. Am I doing soemthing wrong? My printer is supporting duplex printing. Below is the VFP code:

Code: Select all
oGdViewer.DisplayFromPDFFile(cPDFfile)
oGdViewer.PrintSetActivePrinter(cMyPrintQueue)      && this is UNC-coded path: \\printserver\printqueue
oGdViewer.PrintSetQuality(-4)
oGdViewer.PrintSetStdPaperSize(1)
oGdViewer.PrintSetDuplexMode(2)
oGdViewer.PrintSetFromToPage(1, oGdViewer.PageCount)
oGdViewer.PrintImage2Printer(oGdViewer.PrintGetActivePrinter)


Thanks,
Boris.
bkagan
 
Posts: 8
Joined: Mon Apr 28, 2008 6:32 pm

Re: Printing the PDF in duplex mode

Postby Loïc » Tue Apr 29, 2008 2:25 pm

Hi Boris,

Could you try to remove this line from your code:


Code: Select all
oGdViewer.PrintImage2Printer(oGdViewer.PrintGetActivePrinter)



What's append now ?

Best regards,

Loïc Carrère

PS: I suggest you to use the version of the GdViewer ActiveX: http://www.gdpicture.com/download.php
Loïc Carrère, support team.
www.orpalis.com
User avatar
Loïc
Site Admin
 
Posts: 4442
Joined: Tue Oct 17, 2006 10:48 pm
Location: France

Re: Printing the PDF in duplex mode

Postby bkagan » Tue Apr 29, 2008 3:54 pm

Hi,

We are currently using version 4.2.0.0 of GdViewer ActiveX. If I download most recent version, will our serial number be valid?

If I remove the line that you suggested, how should I print out the PDF?

Thanks,
Boris.
bkagan
 
Posts: 8
Joined: Mon Apr 28, 2008 6:32 pm

Re: Printing the PDF in duplex mode

Postby Loïc » Tue Apr 29, 2008 6:04 pm

Hi Boris,

We are currently using version 4.2.0.0 of GdViewer ActiveX. If I download most recent version, will our serial number be valid?


Yes. GdViewer updates are free.

Code: Select all
If I remove the line that you suggested, how should I print out the PDF?


On your default printer. In all case your line is unnecessary:

By default, the activated printer is your default printer in your control pannel.

In your line, you ask to the GdViewer to activate the activated printer. There is no sense...

Best regards,

Loïc Carrère
Loïc Carrère, support team.
www.orpalis.com
User avatar
Loïc
Site Admin
 
Posts: 4442
Joined: Tue Oct 17, 2006 10:48 pm
Location: France

Re: Printing the PDF in duplex mode

Postby bkagan » Tue Apr 29, 2008 6:22 pm

Hi Loïc,

Here is what I did:
1) downloaded and installed version 4.2.6
2) replaced PrintImage2Printer() by PrintImage()

and it worked!

Thanks for your help!

Thanks,
Boris.
bkagan
 
Posts: 8
Joined: Mon Apr 28, 2008 6:32 pm

Re: Printing the PDF in duplex mode

Postby Loïc » Tue Apr 29, 2008 6:29 pm

I knew this was going to work ! :mrgreen:

Thank you for the return.

Best regards,

Loïc Carrère
Loïc Carrère, support team.
www.orpalis.com
User avatar
Loïc
Site Admin
 
Posts: 4442
Joined: Tue Oct 17, 2006 10:48 pm
Location: France


Return to GdViewer [Pro] ActiveX

Who is online

Users browsing this forum: No registered users and 1 guest