M
MLM450
I have an unmanaged C++ program that displays a printer dialog and then
asks my C# program to perform the printing operation. What printer info
do I pass to my C# program? It looks like I need to establish values in
the PrinterSettings property of a PrintDocument object. But how?
I think I should be able to use the print DC, but I don't see a way
to apply it to the PrinterSettings property.
I have tried passing the DEVMODE and DEVNAMES handles from the PRINTDLG
structure to use in the SetHdevmode() and SetHdevnames() functions -
it did not work.
Any ideas?
Thanks,
Mike
asks my C# program to perform the printing operation. What printer info
do I pass to my C# program? It looks like I need to establish values in
the PrinterSettings property of a PrintDocument object. But how?
I think I should be able to use the print DC, but I don't see a way
to apply it to the PrinterSettings property.
I have tried passing the DEVMODE and DEVNAMES handles from the PRINTDLG
structure to use in the SetHdevmode() and SetHdevnames() functions -
it did not work.
Any ideas?
Thanks,
Mike