Send only cover page

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

I am able to send a fax using FAXCOMLib in C#. But does anyone know as to how
to send only the coverpage. The fax console on windows 2000 always sending
just the coverpage. Can this be done using FAXCOMLib library?

Also when I try to send HTML document it comes up with the print dialog box
not for a text file. Can this be disabled while sending a HTML document ?

thanks
 
Use IFaxDoc interface & set FileName property to NULL. Set the CoverPageName
field as appropriate & call the Send method.

That's a known thing. When you fax any document, the document is internally
printed to the fax printer. For HTML document the associated application IE
(Internet Explorer) doesn't let the printing to happen without user
intervention for security reasons.

--
Raghavendra R
Microsoft Printing, Imaging and Fax Team
This posting is provided "AS IS" with no warranties, and confers no rights.
Please do not send email directly to this alias. This alias is for newsgroup
purposes only.'
 
Thanks for the reply. But if you specify the FileName property of faxdoc an
exception saying "The parameter is incorrect" is thrown.

Here is the code that I am using to send the fax.

============================================
FAXCOMLib.FaxServerClass fsc = new FAXCOMLib.FaxServerClass();
fsc.Connect(null);
object obj = fsc.CreateDocument("faxDoc.txt");
FAXCOMLib.FaxDoc fdoc = (FAXCOMLib.FaxDoc)obj;
fdoc.ServerCoverpage = 2;
fdoc.FileName = null;
fdoc.SendCoverpage = 2;
fdoc.CoverpageName = "PersonalCoverpage.cov";
fdoc.SenderTitle = "Send fax";
fdoc.FaxNumber = "000000000";
fdoc.RecipientName = "Recpt";
fdoc.CoverpageNote = "This is a test fax message";
fdoc.CoverpageSubject = "Send only the cover page";
fdoc.SenderName = "Me";
fdoc.SenderAddress = "Address";
fdoc.SenderFax = "0000000";
fdoc.SenderCompany = "MyCompany";
fdoc.SenderDepartment = "HR";
fdoc.Send();
fsc.Disconnect();
Marshal.ReleaseComObject(fsc);
Marshal.ReleaseComObject(fdoc);
fsc = null;
fdoc = null;
===============================================

Any help is appreciated.
thanks
 
I guess your cover page is a personal cover page - it's not present on the
server. So you should set ServerCoverPage to FALSE (that is zero). Change
this & try.

Setting FileName to null should be fine - I don't think your exception is
because of this. If it is, you can just remove the line that sets it to null
because the FileName starts with NULL anyways.

I am curious why you are setting SendCoverPage to 2. Its a Boolean &
typically set to TRUE which is defined to be 1. Of course any non-zero value
is considered TRUE & hence it's not wrong, but I am wondering why you picked
the number 2.

--
Raghavendra R
Microsoft Printing, Imaging and Fax Team
This posting is provided "AS IS" with no warranties, and confers no rights.
Please do not send email directly to this alias. This alias is for newsgroup
purposes only.'
 
We also have this issue with Sending a Cover Page on its own and it does not
work. We have tried what you suggested without success.

If we set the FileName=nothing, then we get "The parameter is incorrect".

We are using vb.net, any help would be appreciated.

Michael Rak
 
Looks like FileName is a mandatory parameter on IFaxDoc interface. You can
either use FaxSendDocument, a normal Win32 API or switch to Extended Fax COM
APIs & use FaxDocument.Submit method. You can find the documentation for
both of these cases in MSDN. Let me know if you need anything else.

--
Raghavendra R
Microsoft Printing, Imaging and Fax Team
This posting is provided "AS IS" with no warranties, and confers no rights.
Please do not send email directly to this alias. This alias is for newsgroup
purposes only.'
 
Back
Top