General News Suggestion Question Bug Answer Joke Praise Rant Admin Sending FAX using C#.net FAXCOMLib -The object identifier does not represent a valid object. Int iFaxJob = faxDoc.Send() // Error occuring place String bodyText = "This is a test" Environment.NewLine īodyText = "list of products" Environment.NewLine īodyText = "that should be on several lines" įaxDoc.RecipientName = "Test Recipient Name" Protected void Page_Load(object sender, EventArgs e)įaxServer faxServer = new FaxServerClass() Such as senderName, SenderPhone number etc.Įrror while sending Fax from the C# applicaionĮrror "The object identifier does not represent a valid object. I want to get rid of the "Fax" and want to add the other values to the top. It doesnt print out the senderNumber ( I added a sendernumber input field too )Īnd the others, plues it prints the word "Fax" before the company Name. Now it read the SenderCompany, but it prints it out at the top of the page as Public void SendFax(string DocumentName, string FileName, string RecipientName, string FaxNumber, string SenderNumber, string SenderName, string SenderCompany)įAXCOMLib.FaxServer faxServer = new FAXCOMLib.FaxServerClass() įaxServer.Connect(Environment.MachineName) įAXCOMLib.FaxDoc faxDoc = (FAXCOMLib.FaxDoc)faxServer.CreateDocument(FileName) #Uninstall faxdocument codeI added another txt field for the Company Name input and changed the function code : I want to add From: Company Name, SenderPhoneNumber, Sender Name to the top of the page, Looks liek " 1c7ff7dc3122" how can I get rid of it?Ģ) The fax values at the top of the page such as the DATA, TIME, FROM: TO: PAGE: IncludeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) 1746ġ) Theres a generated file name at the top of the fax page each time a fax is send. Page.RaisePostBackEvent(NameValueCollection postData) 33 Page.RaisePostBackEvent(IPostBackEventHandler UI.IPostBackEventHandler.RaisePostBackEvent(String (Exception from HRESULT:Ĭollecta_Default.Button1_Click(Object sender, EventArgs e) in [COMException (0x8007000d): The data is invalid. Source File: C:\Inetpub\collecta\ Line: 43 Line 43: faxdoc.Send() (here the error occours) Please review the stack trace for more informationĪbout the error and where it originated in the code.Įxception Details: : The data is (Exception from HRESULT: 0x8007000D)ĭescription: An unhandled exception occurred during the execution of theĬurrent web request. Protected Sub Button1_Click(ByVal sender As Object, ByVal e Asįaxserver.CreateDocument("c:\inetpub\collecta\temp\test.tif") 'if ichange I run Filemon and Regmon to see if there is an permission problem during theĪfter the Error I have 2 events in my server logs.ĭocument 4, 1C8673290FA2F - Notepad owned by NETWORK SERVICE was paused onĭocument 4, 1C8673290FA2F - Notepad owned by NETWORK SERVICE was deleted on #Uninstall faxdocument windowsI checked if the default setting for the extensions are correct and they areĪssigned to notepad (txt) and acrobat reader (pdf) and Windows Picture and If I use test.tif it works just fine but all other extensions (pdf, txt, jpgĪnd so on) failing with "The data is invalid Exception from HRESULT:
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |