PrintDlgEx routine
Posted: Sat Oct 13, 2007 12:40 am
Hi all,
I don't know if this is any use to anyone, but I wanted to use PrintDlgEx (instead of PrintDlg), and so I wrote a basic set of routines to handle some of the functionality.
A ZIP file can be downloaded from here.
The ZIP contains two files, "eezyPrinterDialogEx.pbi" and "test_it.pb". Just unZIP them both into a folder and compile/debug "test_it.pb".
There are some notes in both files, but very little in the way of error checking.
You will need a "comdlg32.lib" which contains references to "PrintDlgEx"; I believe this was made available from Windows 2000 upwards. Alternatively, you could probably modify the routines to use "comdlg32.dll". You can download the relevant copy of "comdlg32.lib" from here.
I use PB 4.10 Beta 3 under Windows XP Pro, but these routines may work under slightly earlier versions; you will need to remove the conditional compilation tests from the beginning of the files.
Please feel free to use these files and their content in any way you wish, but if something untoward happens, then please do not hold me responsible; use at your own risk.
If you have any comments, suggestions or complaints, then just let me know and I'll try to help.
Thanks.
I don't know if this is any use to anyone, but I wanted to use PrintDlgEx (instead of PrintDlg), and so I wrote a basic set of routines to handle some of the functionality.
A ZIP file can be downloaded from here.
The ZIP contains two files, "eezyPrinterDialogEx.pbi" and "test_it.pb". Just unZIP them both into a folder and compile/debug "test_it.pb".
There are some notes in both files, but very little in the way of error checking.
You will need a "comdlg32.lib" which contains references to "PrintDlgEx"; I believe this was made available from Windows 2000 upwards. Alternatively, you could probably modify the routines to use "comdlg32.dll". You can download the relevant copy of "comdlg32.lib" from here.
I use PB 4.10 Beta 3 under Windows XP Pro, but these routines may work under slightly earlier versions; you will need to remove the conditional compilation tests from the beginning of the files.
Please feel free to use these files and their content in any way you wish, but if something untoward happens, then please do not hold me responsible; use at your own risk.
If you have any comments, suggestions or complaints, then just let me know and I'll try to help.
Thanks.
