"Select Printer" pops up after calling ConnectedSubmit ()

Posted: 10-28-2003, 01:14 PM
I'm trying to use ConnectedSubmit() from .NET, but when I do so it
pops up a dialog box prompting me to choose a Fax Printer. If I just
hit the Print button (it has the fax already selected), it proceeds
normally, but I want the code to work without prompting a user to hit
print.

I'm running as my own local user account (with admin priveledges
etc.), and it does this even with no other printers installed.

The code is below, nothing special about it :-)

Many thanks in advance,

J.

public void FaxReport(string faxTo, string reportName, string
reportDescription, string outputFilename)
{
FAXCONTROLLib.FaxControl faxControl = new
FAXCONTROLLib.FaxControlClass();

log.Debug("Is fax service installed? " +
faxControl.IsFaxServiceInstalled.ToString());
log.Debug("Is local fax printer installed? " +
faxControl.IsLocalFaxPrinterInstalled.ToString());

FAXCOMEXLib.FaxServer faxServer = new FaxServerClass();
faxServer.Connect("");

FAXCOMEXLib.FaxDocument faxDoc = new
FAXCOMEXLib.FaxDocumentClass();
faxDoc.Recipients.Add(faxTo, "Somebody");

faxDoc.Body = outputFilename;
faxDoc.DocumentName = "Doco Name";

faxDoc.Sender.Name = "Bob";
faxDoc.Sender.BillingCode = "2A345";
faxDoc.Sender.Department = "Accts Payable";
faxDoc.Sender.FaxNumber = "+353 (1) 555 5555";

object obj = faxDoc.ConnectedSubmit(faxServer);

faxServer.Disconnect();
}
Reply With Quote

Responses to ""Select Printer" pops up after calling ConnectedSubmit ()"

Jonny
Guest
Posts: n/a
 
Re: "Select Printer" pops up after calling ConnectedSubmit ()
Posted: 11-10-2003, 03:48 PM
I've found that this only appears to happen because I'm sending
".html" files to the fax printer - it doesn't happen with ".txt"
files.

Any ideas on how to circumvent this problem?

J.

Jonny_Deja@hotmail.com (Jonny) wrote in message news:<df009f1a.0310280614.6198b46e@posting.google. com>...
> I'm trying to use ConnectedSubmit() from .NET, but when I do so it
> pops up a dialog box prompting me to choose a Fax Printer. If I just
> hit the Print button (it has the fax already selected), it proceeds
> normally, but I want the code to work without prompting a user to hit
> print.
>
> I'm running as my own local user account (with admin priveledges
> etc.), and it does this even with no other printers installed.
>
> The code is below, nothing special about it :-)
>
> Many thanks in advance,
>
> J.
>
> public void FaxReport(string faxTo, string reportName, string
> reportDescription, string outputFilename)
> {
> FAXCONTROLLib.FaxControl faxControl = new
> FAXCONTROLLib.FaxControlClass();
>
> log.Debug("Is fax service installed? " +
> faxControl.IsFaxServiceInstalled.ToString());
> log.Debug("Is local fax printer installed? " +
> faxControl.IsLocalFaxPrinterInstalled.ToString());
>
> FAXCOMEXLib.FaxServer faxServer = new FaxServerClass();
> faxServer.Connect("");
>
> FAXCOMEXLib.FaxDocument faxDoc = new
> FAXCOMEXLib.FaxDocumentClass();
> faxDoc.Recipients.Add(faxTo, "Somebody");
>
> faxDoc.Body = outputFilename;
> faxDoc.DocumentName = "Doco Name";
>
> faxDoc.Sender.Name = "Bob";
> faxDoc.Sender.BillingCode = "2A345";
> faxDoc.Sender.Department = "Accts Payable";
> faxDoc.Sender.FaxNumber = "+353 (1) 555 5555";
>
> object obj = faxDoc.ConnectedSubmit(faxServer);
>
> faxServer.Disconnect();
> }
Reply With Quote
 
LinkBack Thread Tools Display Modes
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump


Similar Threads
Thread Thread Starter Forum Replies Last Post
Unable to "Select All" in Explorer (file browsing) nuge Windows Vista File Management 11 05-09-2007 05:50 AM
Another rookie question about ( "Select * from Win32_NetworkAdapter",,48) Cary Shultz [A.D. MVP] Windows XP WMI 2 06-27-2005 02:21 AM
Any NEW (as in, NOT OLD!!!) Advice on How to Stop the IE "Clicking" (and "Popping" and Buzzing") Noises???!!! I AM J'lahn. Windows XP Help & Support 6 10-19-2003 06:46 AM
"Start" "Program" "Menu" list is empty Pete Windows XP Basics 2 07-10-2003 10:42 PM
Do I need tasks "services", "lsass" and "svchost" to keep running?? Pankaj Dhingra Windows XP Performance & Maintenance 1 07-02-2003 01:55 AM