Support Center

FaxMan PDF Import addon with ASP.Net

Ben Oct 09, 2014 12:51AM EDT

I have an ASP.NET application that uses the ImportFiles method of DataTech.FaxManJr.Faxing to convert a PDF file to a FMF file for faxing, using the following code:


Faxing faxing = new Faxing();
try
{
faxing.ImportFiles(@"C:\Upload\igychfvlt2j.pdf", @"E:\output\igychfvlt2j.fmf");
}
catch (Exception ex)
{
Response.Write(msg);
}
faxing.Dispose(true);


The asp.net application is written in VS2012 targeted for .NET Framework 2.0, the XpdfRasterizer.dll and t1fonts folder has already copied to the Bin folder, but always get an "ImportFiles failed" error. However, the above code works in WinForm Applications.

Is this a limit in trial version? If i purchase a license, can help?

Regards,
Ben

2 Data Techniques Responses and 1 Community Responses

Up 0 Rated Down
DTI Support  Data Techniques Employee Oct 09, 2014 08:56AM EDT

Hi,
I would suggest checking the permissions on the directories, you'll need read on the c:\uploads and write/modify on the E:\output directory for the account that IIS/ASP.Net is running under.

Thats the most likely reason this would fail assuming the input file does exist.

If you still have a problem please send us the entire content of the exception.

Thanks for your interest in our products and please let us know if you have any questions.

Sincerely,
Sean
Data Techniques Support

Up 0 Rated Down
DTI Support  Data Techniques Employee Oct 10, 2014 09:13AM EDT

Hello,

Yes, you need to distribute the DTI.FaXMan.Core.dll and its dependencies the msvcr71.dll and msvcp71.dll.

Thanks,
Sean

Up 0 Rated Down
Ben  Data Techniques Employee Oct 10, 2014 09:14AM EDT

Thanks for your prompt reply.
I fixed by copying the XpdfRasterizer.dll to the Temporary folder. It seems it's a design problem (many .dil files extracted while server initializing)?

Another question:
If I need only to convert pdf into fmf file and send it out with fax modem, do i need to distribute the DTI.FaxMan.Core.dll file?

Scanning the DTI.FaxMan.Core.dll with Dependency Walker, and found the msvcr71.dll and msvcp71.dll files are called by DTI.FaxMan.Core.dll, so both these two files have to be distributed too?

Thank you.

This question is closed to new answers.

Contact Us