A Windows 98 & ME forum. Win98banter

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » Win98banter forum » Windows 98 » Printing
Site Map Home Authors List Search Today's Posts Mark Forums Read Web Partners

PrintDlg function failing with PD_RETURNDEFAULT



 
 
Thread Tools Display Modes
  #1  
Old July 20th 07, 08:16 AM posted to microsoft.public.win98.printing
guddu
External Usenet User
 
Posts: 6
Default PrintDlg function failing with PD_RETURNDEFAULT

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

 




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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
PrintDlg function failing with PD_RETURNDEFAULT guddu General 0 July 20th 07 08:17 AM
PrintDlg function fails guddu General 0 July 17th 07 07:37 AM
PrintDlg function fails guddu Printing 0 July 17th 07 07:18 AM
PrintDlg function fails guddu Printing 0 July 17th 07 06:30 AM
failing restart function Jster General 1 March 20th 05 01:15 AM


All times are GMT +1. The time now is 05:03 PM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 Win98banter.
The comments are property of their posters.