For Programmers: Free Programming Magazines  


Home > Archive > C# > January 2006 > Printing Problems









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author Printing Problems
MLM450@hotmail.com

2005-12-02, 9:56 pm

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

Ciaran

2006-01-10, 4:09 am

Why not display the dialog in C#


--


Ciaran O'Donnell
There are 10 types of people in this world. Those that understand binary and
those that don't



<MLM450@hotmail.com> wrote in message
news:1133536988.556059.75270@z14g2000cwz.googlegroups.com...
>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
>



Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2008 codecomments.com