Page 1 of 1

Problem with setting the page size

PostPosted: Wed Jan 30, 2013 5:39 pm
by aka_Falsh
I am trying to print the document to PDF using the PDF API. I am using GDI for printing. Maximum page size I can set is 129 inch because of GDI restrictions. The parameter dmPaperSize from DEVMODE structure is type of short with maximum value 32000, that equals 129inch. However when I am trying to print the document by hands (File->Print) and set the maximum page size there. As a result it gives me 1000 inch page size. What should I do to make 1000 inch size programaticaly?