PrintDlg when using ShellExecute 
Author Message
 PrintDlg when using ShellExecute

Hi,
 Iam printing a text file using ShellExecute. But it doesnt pop up the
PrintDlg.

ShellExecute( NULL, "Print", "test.txt", NULL, NULL, 0 );

Is there any way to pop-up the print dialog while still using ShellExecute ?

 Thanks,
 -Venkat



Sun, 20 Feb 2005 20:58:18 GMT  
 PrintDlg when using ShellExecute
You may try displaying the dialog yourself, then using printto verb with
ShellExecute. See KB Article Q224961 "Description of Print Switches
Contained in File Types"
--
With best wishes,
    Igor Tandetnik

"For every complex problem, there is a solution that is simple, neat,
and wrong." H.L. Mencken


Quote:
> Hi,
>  Iam printing a text file using ShellExecute. But it doesnt pop up the
> PrintDlg.

> ShellExecute( NULL, "Print", "test.txt", NULL, NULL, 0 );

> Is there any way to pop-up the print dialog while still using
ShellExecute ?

>  Thanks,
>  -Venkat



Sun, 20 Feb 2005 22:40:48 GMT  
 PrintDlg when using ShellExecute
Thanks for the reply. Any way with ShellExecuteEx atleast ?
-Venkat


Quote:
> You may try displaying the dialog yourself, then using printto verb with
> ShellExecute. See KB Article Q224961 "Description of Print Switches
> Contained in File Types"
> --
> With best wishes,
>     Igor Tandetnik

> "For every complex problem, there is a solution that is simple, neat,
> and wrong." H.L. Mencken



> > Hi,
> >  Iam printing a text file using ShellExecute. But it doesnt pop up the
> > PrintDlg.

> > ShellExecute( NULL, "Print", "test.txt", NULL, NULL, 0 );

> > Is there any way to pop-up the print dialog while still using
> ShellExecute ?

> >  Thanks,
> >  -Venkat



Mon, 21 Feb 2005 00:06:22 GMT  
 
 [ 3 post ] 

 Relevant Pages 

1. PrintDlg when using ShellExecute

2. debugger detects memory leak after using shellexecute

3. ShellExecute fails when using SHGetSpecialFolderLocation?

4. Using ShellExecute in VC++

5. Using shellexecute to invoke Direct:Connect (Sterling Software)

6. Need help using ShellExecute()

7. Memory Leaks when using Shellexecute

8. Printng Power Point documents using ShellExecute

9. Opening multiple files using ShellExecute

10. Using ShellExecute

11. Using ShellExecute() go online

12. Using ShellExecute to print

 

 
Powered by phpBB® Forum Software