Wrox Programmer Forums
Go Back   Wrox Programmer Forums > .NET > Other .NET > General .NET
|
General .NET For general discussion of MICROSOFT .NET topics that don't fall within any of the other .NET forum subcategories or .NET language forums.  If your question is specific to a language (C# or Visual Basic) or type of application (Windows Forms or ASP.Net) try an applicable forum category. ** PLEASE BE SPECIFIC WITH YOUR QUESTION ** When posting here, provide details regarding the Microsoft .NET language you are using and/or what type of application (Windows/Web Forms, etc) you are working in, if applicable to the question. This will help others answer the question without having to ask.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the General .NET section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old November 25th, 2004, 04:08 AM
Friend of Wrox
 
Join Date: Jun 2003
Posts: 596
Thanks: 1
Thanked 3 Times in 3 Posts
Default Print Dialog when Faxing

Hi All,
I am having some trouble allowing my application to fax a .htm file.

The code below works fine if the document is a word document (.doc), by sending the file as an image to the fax printer.

However when I provide a .htm file to be faxed, the print dialog appears.
After clicking 'ok' the file is send to the fax correctly.

How do I avoid the print dialog

Code:
            try
           {
                //FAXCOMLib.FaxDoc faxDoc = (FAXCOMLib.FaxDoc)faxServer.CreateDocument(remittanceFileReference.FileName);
                FAXCOMLib.FaxDoc faxDoc = (FAXCOMLib.FaxDoc)faxServer.CreateDocument("c:/fax.htm");//<--If this is .doc, it is ok
                faxDoc.RecipientName = remittanceFileReference.ContactName;
                faxDoc.FaxNumber = remittanceFileReference.FileReference;
                faxDoc.DisplayName = remittanceFileReference.ContactName;    
                int Response = faxDoc.Send();
            }                            
            catch(Exception ex)
            {MessageBox.Show(ex.Message);}
            finally
            {faxServer.Disconnect();}
======================================
They say, best men are molded out of faults,
And, for the most, become much more the better
For being a little bad.
======================================
__________________
======================================
"They say, best men are molded out of faults,
And, for the most, become much more the better
For being a little bad."
--Shakespeare
======================================
 
Old May 12th, 2006, 07:59 AM
Registered User
 
Join Date: Mar 2006
Posts: 4
Thanks: 0
Thanked 1 Time in 1 Post
Default

hi rodmcleay

when we are try to send fax in asp.net .. it is not working.. we saw ur code. what ever u worte the same thing we worte. where was ur fax server. how to conenct the fax server. can u please expalin. i know u have done very long time back. but please help us






Similar Threads
Thread Thread Starter Forum Replies Last Post
get the printer name chosen in print dialog deep_ocean Classic ASP Basics 0 March 14th, 2007 10:27 AM
Open Print Dialog Vision G Access 4 July 16th, 2006 02:41 AM
print the hidden page without the print dialog box kayzem Classic ASP Basics 0 April 21st, 2005 11:31 PM
open print dialog X-Ken VS.NET 2002/2003 4 July 26th, 2004 11:21 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.