best method for prinint

PDF-XChange Viewer SDK for Developer's
(ActiveX and Simple DLL Versions)

Moderators: PDF-XChange Support, Daniel - PDF-XChange, Chris - PDF-XChange, Sean - PDF-XChange, Vasyl - PDF-XChange, Ivan - Tracker Software, Stefan - PDF-XChange

kenknight
User
Posts: 8
Joined: Wed Dec 19, 2007 8:10 pm

best method for prinint

Post by kenknight »

Hi all,

I'm trying to use the viewer sdk to print pdf's and my goal is to have the "one size fits all" printing method. I found and read this thread ( http://www.docu-track.com/forum3/viewto ... int#p21332). Is pagebypage the best method? or should I set the paper width and height and set to AutoRotate. All of our printing is done on 8.5 x 11, so I've converted that out to 10ths of millimeters.

Thanks for any suggestions.

Cheers!
ken
kenknight
User
Posts: 8
Joined: Wed Dec 19, 2007 8:10 pm

Re: best method for prinint

Post by kenknight »

Hi,

I still need an answer on this. We now have encountered a problem with Brother Printers where certain reports are being clipped on the right side. The properties / methods that I am using to configure the pdf viewer are as follows;

Print.ScaleType vdata = 2 (Reduce To Margins)
Print.ScaleSimple.AutoRotate vdata = 1

I can't figure out why users are seeing clipped information on the right of the page, so any suggestions would be greatly appreciated.

Cheers!
Ken
User avatar
John - Tracker Supp
Site Admin
Posts: 5223
Joined: Tue Jun 29, 2004 10:34 am

Re: best method for prinint

Post by John - Tracker Supp »

Hi Ken,

Suugest you use AutoRotate and also try :

Print.ScaleType vdata = 1 (Fit To Margins)

Please advise if the problem with clipping still exists then.

Thanks
If posting files to this forum - you must archive the files to a ZIP, RAR or 7z file or they will not be uploaded - thank you.

Best regards
Tracker Support
http://www.tracker-software.com
kenknight
User
Posts: 8
Joined: Wed Dec 19, 2007 8:10 pm

Re: best method for prinint

Post by kenknight »

This is completely weird. I wrote a small app that would allow me to remote into the client's that are encountering problems and change the code on the fly to see what variables would cause the print to fit the page and absolutely nothing worked. Below is the code I tried testing;

chPXCVA_NoUI is int = 0x00000002
gnDocumentID is int
vDataIn is Variant
vScaleType is Variant
sFilename is string = "c:\pb_reports\saved\0114_094858046.pdf"

//axPDFx is object automation "PDFXCviewAx.CoPDFXCview"

axPDFX>>OpenDocument(sFilename, 123, gnDocumentID,0)

vDataIn = 1
vScaleType = 2

// Print.ScaleType available options:
// 0 = none
// 1 = FitToMargins - Fit Page within paper margins.
// 2 = ReduceToMargins - Reduce page size to fit margins.

axPDFX>>SetProperty("Print.ScaleType",vScaleType,0)
axPDFX>>SetProperty("Print.ScaleSimple.AutoRotate",vDataIn,0)
axPDFX>>SetProperty("Print.ScaleSimple.PaperByPage",vDataIn,0)
//axPDFX>>SetProperty("Print.Copies",vNbrOfCopies,0)

axPDFX>>PrintDocument(gnDocumentID,chPXCVA_NoUI)



BTW the one I tested today was a Brother HL5050.

Any suggestions would be greatly appreciated.

Thanks,
Ken
Corwin - Tracker Sup
User
Posts: 664
Joined: Tue Nov 14, 2006 12:23 pm

Re: best method for prinint

Post by Corwin - Tracker Sup »

I'm not familiar with programming language which you are using but in this function
OpenDocument(sFilename, 123, gnDocumentID,0)
second parameter must be string type.

So changing ScaleType property to “Fit To Margins” fixed problem or not?
kenknight
User
Posts: 8
Joined: Wed Dec 19, 2007 8:10 pm

Re: best method for prinint

Post by kenknight »

Hi,

The language is from WinDev (windev.com / pcsoft.fr). Very easy, plain english language.

At any rate, I changed the 123 to "123" and we tested again and nothing is working. I have her sending me a sample pdf to print, however, what I'm finding is that this is only happening on a select set of printers and most notably they are Brother. We have a Brother 7820 MFC here in the office and everything prints fine. However, the HL5050 ( i think that was the model) is having all kinds of problems.

Would it be possible to email you the pdf to check out?

Thanks,
ken

PS the pdf's are generated using your SDK from a PowerBuilder application.
Tom - Tracker

Re: best method for prinint

Post by Tom - Tracker »

kenknight

Yes that's fine - please forward to support@pdf-xchange.com
kenknight
User
Posts: 8
Joined: Wed Dec 19, 2007 8:10 pm

Re: best method for prinint

Post by kenknight »

It is on its way. BTW our call volume regarding this issue is steadily growing. :) Oh what fun it is to be a developer!

Thanks so much for your assistance.

Cheers!
ken