Spire.Presentation is a professional PowerPoint® compatible library that enables developers to create, read, write, modify, convert and Print PowerPoint documents. Get free and professional technical support for Spire.Presentation for .NET, Java, Android, C++, Python.

Tue Feb 05, 2019 1:47 am

Hi,

Are there any issues while an evaluation version is used to save ppt/pdf file to network path ?

Or would an evaluation version give problems when running on the server?

I have set a purchase order, I am developing until I get my order completed.

mohitnandkishore.kanojia@globalfoundries.com
 
Posts: 8
Joined: Mon Dec 17, 2018 9:21 pm

Tue Feb 05, 2019 6:08 am

Hi,

Thanks for your inquiry.
The evaluation version could be used in Server.When saving the file, you could use the code 'PPT.SaveToFile(Server.Mappth("result.pptx"), FileFormat.Pptx2013)' to set the file path.
If there is any question, welcome to get it back to us with detailed information.

Sincerely,
Betsy
E-iceblue support team
User avatar

Betsy.jiang
 
Posts: 3099
Joined: Tue Sep 06, 2016 8:30 am

Tue Feb 05, 2019 9:45 pm

Hi,

I tried to do the way you mentioned. Except I didn't do Server.MapPath. The reason being, I am not running it on the Http server. It is IIS server and it windows application. I have the below code. It works great on Window workstation but does not work on Windows IIS server 2012 R2 Datacenter.

The code gets executed. I can find it in the log, but the file is never found.

Please let me know what could be the reason.

public void SavePPT()
{
LogTimer timer = new LogTimer(System.Reflection.MethodBase.GetCurrentMethod().DeclaringType);
if (!isAppendable(append, path))
{
if (File.Exists(path))
{
File.Delete(path);
}
}

presentation.SaveToFile(path, FileFormat.Pptx2013);
timer.WriteLog("PPTFactory", true, "PPT successsfully completed");

}

mohitnandkishore.kanojia@globalfoundries.com
 
Posts: 8
Joined: Mon Dec 17, 2018 9:21 pm

Wed Feb 06, 2019 2:30 am

Hi,

Thanks for your information.
Please make sure the path you find the file is the path you set in the code. Besides, you could try to set absolute path in the code, then check if the result file could be found.

Sincerely,
Betsy
E-iceblue support team
User avatar

Betsy.jiang
 
Posts: 3099
Joined: Tue Sep 06, 2016 8:30 am

Mon Feb 18, 2019 9:27 am

Hi,

Greetings from E-iceblue.
Has your issue been resolved? Could you please give us some feedback at your convenience?

Sincerely,
Betsy
E-iceblue support team
User avatar

Betsy.jiang
 
Posts: 3099
Joined: Tue Sep 06, 2016 8:30 am

Return to Spire.Presentation