Printer Forums

Printer Forums - Printing Help and Support > Newsgroups > Printer Newsgroups > Windows 98 Printing > PrintDlg function failing with PD_RETURNDEFAULT

Reply
Thread Tools Display Modes

PrintDlg function failing with PD_RETURNDEFAULT

 
 
guddu
Guest
Posts: n/a

 
      07-20-2007, 07:16 AM
Hi,
I am calling PrintDlg function with PD_RETURNDEFAULT flag set. ( I
dont want the Printer Dialog Box to be seen )
It fails. I have set the hDevNames and hDevMode to be NULL before
calling the function PrinTDlg.

For getting the error code I had called CommDlgExtendedError().
The error code returned was PDERR_NODEFAULTPRN.
Error code implies that the default printer not found.But the default
printer is configured for my machine. still why does it throw this
error.

Had tried PrintDlgEx function. Even that failed with the same error
code PDERR_NODEFAULTPRN.

Can anyone help me with this.
TIA
Guddu

 
Reply With Quote
 
 
 
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
PrintDlg function fails guddu Windows 98 Printing 0 07-17-2007 06:18 AM
PrintDlg function fails guddu Windows 98 Printing 0 07-17-2007 05:30 AM
set print area function not working Atif Excel Printing 1 09-03-2004 02:56 AM
scanning function on epson C 3200 K J Hold Epson 1 11-12-2003 03:38 PM



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32