Hello,
We're using the wxPageSetupDialog and wxPageSetupDialogData classes to allow users to select printer page sizes.
Some of the page size choices in the dialog aren't useful to our application and some of the page sizes we need aren't included.
Is there a way to populate the dialog with our own set of page sizes?
Thanks very much.
RSB
Question about wxPageSetupDialog class
Re: Question about wxPageSetupDialog class
Hi,
Did you look at the source code for that classes?
Also does printing sample works for you?
Thank you.
Did you look at the source code for that classes?
Also does printing sample works for you?
Thank you.
Re: Question about wxPageSetupDialog class
Hi,
I didn't see anything helpful in the source code, It doesn't look like any of the methods allow you to do it.
Thanks anyway.
I didn't see anything helpful in the source code, It doesn't look like any of the methods allow you to do it.
Thanks anyway.
Re: Question about wxPageSetupDialog class
Hi,
Did you try the printing sample?
Also, what is your OS/toolkit version? wxVersion? Where are you located? If you go to the printer settings - do you see the paper format you are looking for?
Thank you.
Did you try the printing sample?
Also, what is your OS/toolkit version? wxVersion? Where are you located? If you go to the printer settings - do you see the paper format you are looking for?
Thank you.
Re: Question about wxPageSetupDialog class
There is a global variable "wxPrintPaperDatabase *wxThePrintPaperDatabase". Check <wxdir>/include/paper.h
But i don't know if it's really used everywhere, it's possible that the list of paper formats is retrieved from the printer driver under certain circumstances/platforms.
But it might be worth a try to experiment with this.
But i don't know if it's really used everywhere, it's possible that the list of paper formats is retrieved from the printer driver under certain circumstances/platforms.
But it might be worth a try to experiment with this.
Use the source, Luke!