|
I downloaded your application ,while am trying to send fax by using your demo program i received error "The system can not find the file specified".
I dint understand which File is missing?
and what type of file formats we can use to send fax?
please help me
|
|
|
|
|
I have two questions:
1) Theres a generated file name at the top of the fax page each time a fax is send. Looks liek " 1c7ff7dc3122" how can I get rid of it?
2) The fax values at the top of the page such as the DATA, TIME, FROM: TO: PAGE:
I want to add From: Company Name, SenderPhoneNumber, Sender Name to the top of the page,
I added another txt field for the Company Name input and changed the function code :
public void SendFax(string DocumentName, string FileName, string RecipientName, string FaxNumber, string SenderNumber , string SenderName, string SenderCompany)
{
if (FaxNumber != "")
{
try
{
FAXCOMLib.FaxServer faxServer = new FAXCOMLib.FaxServerClass();
faxServer.Connect(Environment.MachineName);
FAXCOMLib.FaxDoc faxDoc = (FAXCOMLib.FaxDoc)faxServer.CreateDocument(FileName);
faxDoc.RecipientName = RecipientName;
faxDoc.FaxNumber = FaxNumber;
faxDoc.SenderFax = SenderNumber;
faxDoc.SenderName = SenderName;
faxDoc.SenderCompany = SenderCompany;
Now it read the SenderCompany, but it prints it out at the top of the page as;
FROM: Fax TheCompanyName
it doesnt print out the senderNumber ( I added a sendernumber input field too )
and the others, plues it prints the word "Fax" before the company Name.
I want to get rid of the "Fax" and want to add the other values to the top. Such as senderName, SenderPhone number etc.
Any solution?
|
|
|
|
|
The 1c7ff7dc3122 text at the top of the page would be the document name I recon. It was probably creating a temp file and that is the name it used. I am not sure how you would add the other information to the page except for adding it to the document you are sending. If you use an image you can 'paint' the info in with System.Drawing class other than that sorry, not sure.
Leon v Wyk
|
|
|
|
|
you already have a documentName text field in the application. But I couldn't find where that "1c7ff7dc3122" text comes from. I want to stop printing it.
If you can check and let me know that ll be great.
Thanks
|
|
|
|
|
Hi,
I am having a Brother Printer/fax machine. I tested your Demo program of sending a fax over it.
Before i go further, can i check if this program is to sent fax from a faxmachine(through the initative from PC) to another faxmachine, or is it sending a prompt to the fax maching attached through the PC?
I am trying to fax a single document to number of different destination faxes at a single prompt. So i though to modify your software if it works properly. But as for me when pressed sent button, it shows a error message "Unknown exception". Could you please help me out.
Thanks.
|
|
|
|
|
And also could you please tell me the format of the Fax number.
As in with country code in front or with '+' and then country code?
|
|
|
|
|
Hi!
In my application I need to send faxes. Everything works fine, but ...
Problem is, that I need to integrate my little application to service oriented system and run it as a windows service.
When I execute Connect() method from FaxServerClass, the service application hangs there until service startup timeout..
When I execute Connect method in standard windows application everything is fine.
I tried setting all permission to everybody on Fax. I also tried changing the call Connect(Environment.MachineName) to Connect(""). No results
Please help
|
|
|
|
|
The fax interface uses a user interface dialog (UI), try and enable 'desktop interaction' on your service. Hope that helps.
I don't think this is an security issue, but possibly, services need special permissions to access network resource or UNC paths, but the faxing should be local. Also keep in mind that you are calling a Desktop tool and not another service here. I might be a service handeling the actual faxing, but we are only instructing the windows faxing UI interace.
Leon v Wyk
|
|
|
|
|
I tried also 'desktop interaction', I forgot to mention that..
I set the permissions, because many people reported similar problems when using FS in web services or ASP.NET applications. It was issue with no permissions for CurrentUser - application starts in different user context than it is running in.
Somebody has to know answer for my question
|
|
|
|
|
Error while sending Fax from the C# applicaion
Error "The object identifier does not represent a valid object. (Exception from HRESULT: 0x800710D8) "
How to get rid of the Above error. Any idea would be really appericated.
Code:
using System.Runtime.InteropServices;
using FAXCOMLib;
namespace FAX
{
public partial class _Default : System.Web.UI.Page
{
protected void Page_Load(object sender, EventArgs e)
{
try
{
FaxServer faxServer = new FaxServerClass();
faxServer.Connect(Environment.MachineName);
FaxDoc faxDoc =(FaxDoc)faxServer.CreateDocument(@"C:\TestDoc.txt");
faxDoc.FileName="C:\\TestDoc.txt";
faxDoc.SendCoverpage = 1;
faxDoc.CoverpageName = @"C:\TestDoc.txt";
faxDoc.CoverpageSubject = "Test Fax";
string bodyText = "This is a test" + Environment.NewLine;
bodyText += "list of products" + Environment.NewLine;
bodyText += "that should be on several lines";
faxDoc.CoverpageNote = bodyText;
faxDoc.RecipientName = "Test Recipient Name";
faxDoc.FaxNumber =FaxNumbr;
faxDoc.DisplayName = "TestFax";
faxDoc.SenderName = "Annadurai";
int iFaxJob = faxDoc.Send(); // Error occuring place
Response.Write(iFaxJob.ToString());
faxServer.Disconnect();
}
catch (Exception Ex)
{
Response.Write(Ex.Message);
}
}
}
}
Regards
Annadurai
|
|
|
|
|
Error while sending Fax from the C# applicaion
Error "The object identifier does not represent a valid object. (Exception from HRESULT: 0x800710D8) "
How to get rid of the Above error. Any idea would be really appericated.
Code:
using System.Runtime.InteropServices;
using FAXCOMLib;
namespace FAX
{
public partial class _Default : System.Web.UI.Page
{
protected void Page_Load(object sender, EventArgs e)
{
try
{
FaxServer faxServer = new FaxServerClass();
faxServer.Connect(Environment.MachineName);
FaxDoc faxDoc =(FaxDoc)faxServer.CreateDocument(@"C:\TestDoc.txt");
faxDoc.FileName="C:\\TestDoc.txt";
faxDoc.SendCoverpage = 1;
faxDoc.CoverpageName = @"C:\TestDoc.txt";
faxDoc.CoverpageSubject = "Test Fax";
string bodyText = "This is a test" + Environment.NewLine;
bodyText += "list of products" + Environment.NewLine;
bodyText += "that should be on several lines";
faxDoc.CoverpageNote = bodyText;
faxDoc.RecipientName = "Test Recipient Name";
faxDoc.FaxNumber =FaxNumbr;
faxDoc.DisplayName = "TestFax";
faxDoc.SenderName = "Annadurai";
int iFaxJob = faxDoc.Send(); // Error occuring place
Response.Write(iFaxJob.ToString());
faxServer.Disconnect();
}
catch (Exception Ex)
{
Response.Write(Ex.Message);
}
}
}
}
Regards
Annadurai
|
|
|
|
|
try using FAXComExlib instead FAXComLib.
Also, not sure if this works in a web interface.
Leon v Wyk
|
|
|
|
|
by using this faxcom.dll ???
--
alecc#
|
|
|
|
|
Configure Faxing service from Start/Accessories/Communication/Fax and enable Fax sending and also receiving to specified folder.
Everything you have to do is to implement or get some Folder watcher class and check for new faxes
|
|
|
|
|
Hi,
I 'm working on this FaxComLib to send randome faxes wich are more than one number (say around lakhs of fax). Out of those few fax numbers are invlid due to of some reason (let's say either destination fax not working or not responding or does not exist at all). Now filtering out those failure numbers is very important for me. Well ,I've already find a way to fetch it from the outgoing archives' each fax's status information and from that I take status of it. I do not know whether its the best solution or not. I went through google and microsoft website also but of not help much to get confirmed about my query.
But is thre any way that promptly I can get the status of a faxsending request. The send method also returns a integer value but does not understand which is number is for successful or failure. So here if you could focus something on this issue then your effort weould be highly appreciated. Well, this is my request to you - two hands are better than one hand .
Thank you
AShok
AShok
|
|
|
|
|
Not something I have tried to spend time on, but are going to be looking into it in the near future. If I make any findings I will post it on here. Good luck.
Leon v Wyk
|
|
|
|
|
Hi Ashok,
Could you please e-mail your program of sending lacks of fax at the same time to my yahoo id at.
mast428@yahoo.com.
Thanks.
|
|
|
|
|
Could you please email me your code to wade@cranswick.co.za. Thank you
|
|
|
|
|
could you please send the code to my email thunder_emperor_29@yahoo.com
thanks..
|
|
|
|
|
Ya. I am having a problem with this app. I type in the required data and then when I click send it tells me this in a pop up box?
The data is invalid.
Can some one clearify this extremelly specific error mesage?
|
|
|
|
|
i m having the same problem when i try to send a '.csv' file type. this app successfully works for me when i send .doc, .bmp or .pdf. Pls help if any one has any idea why it isnt working for .csv file type.
Danyal
-- modified at 4:02 Thursday 4th May, 2006
|
|
|
|
|
Little late, but this could help somebody else.
Associate .csv file type with notepad. Not all applications are capable of "communicating" with Faxing service. I know only about MS Office applications, Adobe reader and notepad
Hope it helps
LAcike
|
|
|
|
|
Would it be possible to amend the code so it can read in Postscript files. With this you could set up a phantom printer that prints postscript files to a directory and then a windows service , based on this code could automate the fax process.
That would also solve the problem printing pdfs.
Nick James
Nick James Homepage
|
|
|
|
|
Not sure, don't know to much about post scripting, but I see where you are heading. Good thining!
Leon v Wyk
|
|
|
|
|
Hi there,
I have tried your application several times but unfortunately I have not been successful in sending a fax and instead I get one of the following error messages:
a) Cannot find the specified file path.
b) Invalid Data
I'd greatly appreciate any help. Thanks in advance.
|
|
|
|