Print a HTML-document from a VB6-application without the printer dialog appearing 
Author Message
 Print a HTML-document from a VB6-application without the printer dialog appearing

I want to send a HTML-document to the printer, without the printer dialog
appearing.
This code works fine, except that the printer dialog appears:

Option Explicit

Private Declare Function ShellExecute Lib "shell32.dll" Alias
"ShellExecuteA" (ByVal hwnd As Long, ByVal lpOperation As String, ByVal
lpFile As String, ByVal lpParameters As String, ByVal lpDirectory As String,
ByVal nShowCmd As Long) As Long

Private Sub Command1_Click()
  Const cFILENAME = "E:\WWW\alice\index.html" 'Name of any HTML on your
harddrive

  Call ShellExecute(0, "print", cFILENAME & Chr(0), Chr(0), Chr(0), 0)
End Sub



Wed, 25 May 2005 21:54:05 GMT  
 Print a HTML-document from a VB6-application without the printer dialog appearing
Don't bother, I solved it


Thu, 26 May 2005 02:56:33 GMT  
 
 [ 2 post ] 

 Relevant Pages 

1. printing without printer settings dialog

2. printing without prompting the printer dialog

3. Setting up printers without print dialog.

4. Try Again: How to change the printer in the Print Dialog of the Common Dialog

5. Printing to COM serial Printer without using Printer Control

6. Printing without displaying the "Print Dialog"?

7. Printing without print-dialog

8. How to print after selecting printer from Print Dialog

9. How To Determine The Printer Device without the common Dialog

10. How To Determine The Printer Device without the common Dialog

11. Printer selection without common-Dialog???

12. Use MS Office Document Image Write without setting is as a standard printer

 

 
Powered by phpBB® Forum Software