print dialog window appearing when calling fax from vb .net

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
 
K

kimiraikkonen

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.
 
S

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.

Hi

i have only one printer setup and thats the fax printer

shawrie
 
H

Herfried K. Wagner [MVP]

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.
 
K

kimiraikkonen

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.
 
S

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.

hi my code does not call the showdialog command
 
S

shawrie

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)
 
H

Herfried K. Wagner [MVP]

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>
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top