PaperSize Enumeration

  • Thread starter Michael J. Strickland
  • Start date
M

Michael J. Strickland

After creating a custom papersize (Control Panel->Printers->File->
Server Properties), Windows seems to re-enumerate the custom paper sizes
(AcPrintPaperSize values) so that that all my previously added form
constants now point to different forms (paper sizes).

I select forms by setting the .PaperSize property of the report's
printer object to constants defined in my code. Every time I add a new
print form in Windows, these constants (or the data structures they
point to) get shifted and no longer point to the correct print form.

Is there any way to prevent this or to compensate for it by retrieving
the Papersize characteristics (length, height, etc ) to determine which
form is which?


--
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top