print dialog window appearing when calling fax from vb .net

  • Thread starter Thread starter shawrie
  • Start date Start date
S

shawrie

Hi
can anyone help? Im using VB .NET to automate the faxing of our html
pages. The problem is that when i call the submit a print dialog
window appears . Is there anyway to supress this?

Thanks shawrie
 
Hi
can anyone help? Im using VB .NET to automate the faxing of our html
pages. The problem is that when i call the submit a print dialog
window appears . Is there anyway to supress this?

Thanks shawrie

Have you selected correct "default" device as fax-type through control
panel -> printers & faxes? More than one printer-compatible device/
device profiles may have caused this.
 
Have you selected correct "default" device as fax-type through control
panel -> printers & faxes? More than one printer-compatible device/
device profiles may have caused this.

Hi

i have only one printer setup and thats the fax printer

shawrie
 
shawrie said:
can anyone help? Im using VB .NET to automate the faxing of our html
pages. The problem is that when i call the submit a print dialog
window appears . Is there anyway to supress this?

I suggest to post details how you are sending the data to the FAX.
 
Hi
can anyone help? Im using VB .NET to automate the faxing of our html
pages. The problem is that when i call the submit a print dialog
window appears . Is there anyway to supress this?

Thanks shawrie

I recommend you to search for printdialog.showdialog() inside your
code to see when it's fired which may help to fix the bug.
 
I recommend you to search for printdialog.showdialog() inside your
code to see when it's fired which may help to fix the bug.

hi my code does not call the showdialog command
 
I suggest to post details how you are sending the data to the FAX.

'Dim objSender As FaxSender
Dim JobID As Object

objFaxServer.Connect("swords-PC")

objFaxServer.ListenToServerEvents(FAXCOMEXLib.FAX_SERVER_EVENTS_TYPE_ENUM.fsetOUT_QUEUE)
objFaxDocument.Body = "c:\shaw.html"
objFaxDocument.DocumentName = "My First Fax"
objFaxDocument.Recipients.Add("xxxxxxxx", "Sanderson")
objFaxDocument.AttachFaxToReceipt = True
objFaxDocument.Note = "Here is the info you requested"
objFaxDocument.Subject = "Today's fax"
'Set the receipt type to email
objFaxDocument.ReceiptAddress = "neil.shaw@xxxxxxxxxx"
'objFaxDocument.ReceiptType =
FAXCOMEXLib.FAX_RECEIPT_TYPE_ENUM.frtMAIL
objFaxDocument.ReceiptType =
FAXCOMEXLib.FAX_RECEIPT_TYPE_ENUM.frtNONE


objFaxDocument.CoverPageType =
FAXCOMEXLib.FAX_COVERPAGE_TYPE_ENUM.fcptLOCAL
objFaxDocument.CoverPage = "Cover Page.cov"


JobID = objFaxDocument.ConnectedSubmit(objFaxServer)
 
shawrie said:
'Dim objSender As FaxSender
Dim JobID As Object

objFaxServer.Connect("swords-PC")

I guess you are using "Fax Service Extended COM API". Is this assumption
correct?

Maybe you are referring to the behavior described in the article below,
which is "by design":

The Print dialog box appears when you fax an HTML document programmatically
<URL:http://support.microsoft.com/?scid=kb;EN-US;841714>
 
Back
Top