Faxing Problem (using FAXCOMLib)
From: Russell (russellf_at_railtech-solutions.co.uk)
Date: 02/17/04
- Next message: Jason Newell: "Re: Faxing Problem (using FAXCOMLib)"
- Previous message: Suma_krao: "Access application becomes visible on Quit even if Visible property is set to false."
- Next in thread: Jason Newell: "Re: Faxing Problem (using FAXCOMLib)"
- Reply: Jason Newell: "Re: Faxing Problem (using FAXCOMLib)"
- Messages sorted by: [ date ] [ thread ]
Date: Tue, 17 Feb 2004 06:11:09 -0800
I have been experiencing a strange problem...
I have created an application which has the ability to sends Faxes. This app works fine on my dev machine (WinXP) and test Servers (Win 2000 Server). When deploying this to a clients site, it works the first time it runs, then any further attempts causes the following error...
System.Runtime.InteropServices.COMException (0x8007000D): The data is in valid. at FAXCOMLib.IFaxDoc.Send()
If I reboot the server, it will run once more.
There does not seem to be much difference between our Test Server & the Clients Machine (The only thing which stands out is that the clients machine is a Compaq ProLiant ML370 G2 (not sure if this makes a difference))
My Code -------------------------------------------------------------
FAXCOMLib.FaxServer _server = new FAXCOMLib.FaxServer();
FAXCOMLib.FaxDoc _doc;
_server.Connect("Local_Server_Name");
_doc = (FAXCOMLib.FaxDoc) _server.CreateDocument("c:\test.pdf");
_doc.FaxNumber = "123123123123";
_doc.DisplayName = "Test Title";
_doc.DiscountSend = 0;
_doc.SenderFax = "123123123123";
_doc.Send();
_server.Disconnect();
System.Runtime.InteropServices.Marshal.ReleaseComObject(_doc);
System.Runtime.InteropServices.Marshal.ReleaseComObject(_server);
_doc = null;
_server = null;
-----------------------------------------------------------------------------------
Source Code derived from...
Link: - http://msdn.microsoft.com/library/default.asp?url=/library/en-us/fax/faxlegacy_9lf4.asp
Thanks for any help.
Russell
- Next message: Jason Newell: "Re: Faxing Problem (using FAXCOMLib)"
- Previous message: Suma_krao: "Access application becomes visible on Quit even if Visible property is set to false."
- Next in thread: Jason Newell: "Re: Faxing Problem (using FAXCOMLib)"
- Reply: Jason Newell: "Re: Faxing Problem (using FAXCOMLib)"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|