Spire.PDF is a professional PDF library applied to creating, writing, editing, handling and reading PDF files without any external dependencies. Get free and professional technical support for Spire.PDF for .NET, Java, Android, C++, Python.

Wed Jun 04, 2014 3:48 pm

Hello,
i have a problem with exporting to pdf, explain better:

1- document.LoadFromFile(physicalPath + @"\doc\document.docx");

2- I make various replace, including:
Code: Select all
if ((txt_email_address.Value != "") && (txt_email_address.Value != null))
     document.Replace("#oakley3", txt_email_address.Value, false, true);
else
     document.Replace("#oakley3", "*** Missing field ***", false, true);


3- Finally, I make an export of the document in pdf and word

Code: Select all
document.SaveToFile(HostingEnvironment.MapPath("~/contracts/" + bg.group_id.ToString() + "/" + nome_file + ".pdf"), FileFormat.PDF);
document.SaveToFile(HostingEnvironment.MapPath("~/contracts/" + bg.group_id.ToString() + "/" + nome_file + ".docx"), FileFormat.Docx2010);


Everything works fine except when i replace the following email address: optiekkaspers@optiekkaspers.demon.nl at point 2 , because the system crashes (see attached file).


I realized that the system goes into error only with the export to PDF, export to word instead work properly. Why?

Version of Spire.PDF: 2.6.60.3040

Thanks

emailregistrazioni
 
Posts: 11
Joined: Sun Sep 18, 2011 9:32 pm

Thu Jun 05, 2014 2:08 am

Hello,

Thanks for your inquiry.
Sorry for the inconvenience. Would you please share your template file to help us to do an investigation?
If it is inconvenience to share here, please send your file to support@e-iceblue.com or amy.zhao@e-iceblue.com.

Thanks.

Best wishes,
Amy
E-iceblue support team
User avatar

amy.zhao
 
Posts: 2766
Joined: Wed Jun 27, 2012 8:50 am

Thu Jun 05, 2014 9:36 am

Hello,
i sent you an email with the requested file.

I look forward to your feedback.

Kind regards

emailregistrazioni
 
Posts: 11
Joined: Sun Sep 18, 2011 9:32 pm

Fri Jun 06, 2014 6:08 am

Hello,

Thanks for your file.
Please try Spire.Doc Pack(hot fix) Version:5.1.12.
Downloading link:http://www.e-iceblue.com/Download/download-word-for-net-now.html
I used the below code to test your file with the version and it worked fine.
Code: Select all
Document doc = new Document();
doc.LoadFromFile("..\\..\\Oakley_nofirma.docx");
doc.Replace("#oakley3", "optiekkaspers@optiekkaspers.demon.nl", false, true);
doc.SaveToFile("Sample.docx",FileFormat.Docx2010);
doc.SaveToFile("Sample.pdf",FileFormat.PDF);


Best wishes,
Amy
E-iceblue support team
User avatar

amy.zhao
 
Posts: 2766
Joined: Wed Jun 27, 2012 8:50 am

Mon Jun 09, 2014 5:52 pm

Hello,
i downloaded and used the version Spire.Doc Pack (hot fixes) Version: 5.1.12 but there is a problem with the license: now on the document there is the phrase "Evaluation Warning : The document was created with Spire.PDF for .NET." as if I was using the trial version . Why? The file "license.elic" is still present.

Maybe using a newer version the license is no longer valid?

emailregistrazioni
 
Posts: 11
Joined: Sun Sep 18, 2011 9:32 pm

Tue Jun 10, 2014 2:56 am

Hello,

Could you please send your purchase information to support@e-iceblue.com?
Because we found nothing about your license. Many thanks.
If you get any questions, welcome to get it back to us.

Regards,
Benjamin
E-iceblue support team
User avatar

Benjamin Du
 
Posts: 82
Joined: Thu Jul 25, 2013 2:38 am

Return to Spire.PDF

cron