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
best method for prinint
Moderators: PDF-XChange Support, Daniel - PDF-XChange, Chris - PDF-XChange, Sean - PDF-XChange, Vasyl - PDF-XChange, Ivan - Tracker Software, Stefan - PDF-XChange
-
- User
- Posts: 8
- Joined: Wed Dec 19, 2007 8:10 pm
Re: best method for prinint
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
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
-
- Site Admin
- Posts: 5223
- Joined: Tue Jun 29, 2004 10:34 am
Re: best method for prinint
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
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
Best regards
Tracker Support
http://www.tracker-software.com
-
- User
- Posts: 8
- Joined: Wed Dec 19, 2007 8:10 pm
Re: best method for prinint
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
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
-
- User
- Posts: 664
- Joined: Tue Nov 14, 2006 12:23 pm
Re: best method for prinint
I'm not familiar with programming language which you are using but in this function
So changing ScaleType property to “Fit To Margins” fixed problem or not?
second parameter must be string type.OpenDocument(sFilename, 123, gnDocumentID,0)
So changing ScaleType property to “Fit To Margins” fixed problem or not?
-
- User
- Posts: 8
- Joined: Wed Dec 19, 2007 8:10 pm
Re: best method for prinint
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.
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.
Re: best method for prinint
kenknight
Yes that's fine - please forward to support@pdf-xchange.com
Yes that's fine - please forward to support@pdf-xchange.com
-
- User
- Posts: 8
- Joined: Wed Dec 19, 2007 8:10 pm
Re: best method for prinint
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

Thanks so much for your assistance.
Cheers!
ken