Hi guys
this is the second time I place my question here, so I spect that at least
SOMEBODY takes his time for reading it.
Well, my problem is:
I have an application that needs to dynamically set the sizes of the paper
when printing, and I need custom page sizes, not the normal ones. The
problem is that in windows 2000 / XP, it's necessary to define a paper form
before printing with a custom size.
I have found that the PrinterSettings class and the PageSettings class both
have methods that are related to a HDEVMODE structure. For what I know, this
structure has to do with defining custom paper sizes using direct API calls.
But I'm confused, I have no idea on how to use these methods ( they return
an IntPtr not the structure ). The help has no examples, and it's really bad
in explaining how to use the methods. Microsoft knowledge base seems
obsessed about Web Services (which have nothing to do with printing by the
way) when I ask questions about printing with custom page sizes.
Can somebody show me an example of how to define a custom page size using
..NET???? a link... please somebody!
Please help me! My project is for next monday....