Re: Output a string to the default printer



Perhaps I was confused by these lines:

>So is there a 'easy' way to pass data to the currently selected printer?
>I know how to get the PrintDlg(...), but how do I pass a line of text to it?

It appears that the antecedent of 'it' is the PrintDlg().
joe

On Wed, 14 Sep 2005 18:47:19 +0100, "Simon" <spambucket@xxxxxxxxxxxx> wrote:

>> And what could be more "direct" than writing a line to LPT?
>
>Shared printers.
>
>> You would not pass a line of text to CPrntDialog, any more than you would
>> pass a line of
>> text to CColorDialog. It is meaningless. CPrintDialog has nothing to do
>> with printing;
>> it is involved solely with finding a printer, and, if you ask for it,
>> giving you a printer
>> DC to that printer. It has absolutely nothing to do with sending data to
>> that printer.
>
>??? You misunedstood or I am not sure i understand.
>PrintDlg is to get the printer, where on earth did i mention using it to
>actually print something?
>
>Please read the other messages in the thread to see how this was solved.
>
>regards.
>
>Simon
>
Joseph M. Newcomer [MVP]
email: newcomer@xxxxxxxxxxxx
Web: http://www.flounder.com
MVP Tips: http://www.flounder.com/mvp_tips.htm
.


Loading