Can not "SetPaperSize"

Can not "SetPaperSize"

Forum member · Sep 16, 2010
using WinXP pro. and delphi7(view OCX) before Printing PDF files. dynPDF.Printer.SetPaperSize(9); // 9 means A4. right? it dows not work. My Print's default papersize is A3. and My Program Set it to A4. and Print. and it Printed in A3 Paper. How can I change Paper size in my Program in runtime?

Re: Can not "SetPaperSize"

Support · Sep 16, 2010
Hello, SetPaperSize is the right method to use and 9 is the right size for A4 paper. Please check the printing preferences to see if the "Paper Source" property is set to "Automatically Select" Thanks, ceTe Software Support Team

Re: Can not "SetPaperSize"

Forum member · Sep 17, 2010
SetPaperSize is the right method to use and 9 is the right size for A4 paper. Please check the printing preferences to see if the "Paper Source" property is set to "Automatically Select" I checked PaperSource property. and is setted as you told. but still it only print A3 Papers. is there any method to set paper size? I've already bought your products. (viewer and merger) but I can not distribute my Program.

Re: Can not "SetPaperSize"

Forum member · Sep 19, 2010
I made a Sample Program with Viewer OCX and Tested Printing a PDF file. 1. PrintWithDialog (can change papersize) it show a print dialog. everytime when I open printer propertiy dialog. papersize is setted A3 always. after I select A4 paper size in printer propertiy. it print A4 paper. 2. PrintQuiet (can not change papersize) with dynPDF.OpenFileForPrinter('D:\PDF-Contest\text_TEST.pdf') do begin SetPaperSize(9); // Set to A4 papersize. AutoCenter := True; Scaling := 0; RangeSubset := 0; Collate := True; Rotation := 0; PageBorder := True; PrintQuiet; end; other options(scaling) works. but can not change papersize. it print always A3 (my printer's default paper size). I have to use "PrintQuiet" function to catch user's Printing action. is there any method to set papersize, using registry or config files(like ini file)? or anything. Please Help Me. I'm in Urgent Now.

Re: Can not "SetPaperSize"

Support · Sep 20, 2010
Hello, We were able to replicate the behavior of the SetPaperSize() method you mentioned earlier, but we are not sure if that's the intended behavior of that method. We passed this on to the development team and waiting to hear back from them. We will update you as soon as we hear back from them. Using the DynamicPDF Viewer API there is no other method to set the paper size. As a temporary work around you could try saving the document to a temporary location and use the application platform API (for example .NET Framework if your application is a .NET application) to silently set the paper size and print. Thanks, ceTe Software Support Team

Re: Can not "SetPaperSize"

Forum member · Sep 27, 2010
I can not understand this situation. "Setting paper size in printing job" is so basic and important and SIMPLE function. am i wrong? is changing papersize so difficult? I spend too much time for this SIMPLE function. please help me. I am registered user. if you need to verify license. please tell me.

Re: Can not "SetPaperSize"

Support · Sep 28, 2010
Hello The developers are checking to see if the behavior of the SetPaperSize() method you have reported is the desired behavior or not. We will update you as soon as we hear back from them. Thanks, ceTe Software Support Team

Re: Can not "SetPaperSize"

Support · Sep 29, 2010
Hello We have a newer build available that would likely fix the problem you have experienced. Please send an email to [^a|mailto:support@cete.com|opennewiwndow|Support Team^] so we can send you the link. Thanks, ceTe Software Support Team