We are using the cloud cells api at http://api.aspose.com/v1.1/cells/
Hi,
Thanks for providing us template file and details.
I have tested your scenario/ case using your template Excel file with your specified (xml) options, it works fine and I could not spot the issue with the output PDF file (attached). Could you try it again now.
e.g
Sample code:
string xml = @"
true
true
false
None
400
95
false
Pdf
";
//build URI
string strURI = “http://api.aspose.com/v1.1/cells/Vessel_Position_Report-AM-Report-02-17-2017-CALUSA-COAST.xlsx/saveAs?newfilename=out1pdf.pdf&isAutoFitRows=true”;
//sign URI
string signedURI = Sign(strURI);
POST(signedURI, xml);
//build URI
strURI = “https://api.aspose.com/v1.1/storage/file/out1pdf.pdf”;
signedURI = Sign(strURI);
using (HttpWebResponse response = GET(signedURI))
{
using (var stream = File.Create(@“e:\test2\out1.pdf”))
{
response.GetResponseStream().CopyTo(stream);
}
}
Let us know if you still have this issue.
Thank you.
Thanks. After a little more checking, it looks like this file is actually what was uploaded to http://api.aspose.com/v1.1/storage/file
.
Hi,
That is strange.
Here is the url to the template file in your system (left off the appSID and signature parameters):
http://api.aspose.com/v1.1/storage/file/Vessel_Position_Report-AM-Report-02-17-2017-CALUSA-COAST_6306542.xlsx
We called the cells api with the configuration described in my first post:
http://api.aspose.com/v1.1/cells/Vessel_Position_Report-AM-Report-02-17-2017-CALUSA-COAST_6306542.xlsx/saveAs?newfilename=Vessel_Position_Report-AM-Report-02-17-2017-CALUSA-COAST_6306542.pdf&isAutoFitRows=true
Here is the url to the resulting pdf in your system, which shows the VALUE! problem:
http://api.aspose.com/v1.1/storage/file/Vessel_Position_Report-AM-Report-02-17-2017-CALUSA-COAST_6306542.pdf
Hi,
Well, that is really strange as I could not reproduce the issue on our end, you may check my attached PDF file(s) for your reference. I guess either you are not specifying CalculateFormula attribute to “true” in your PdfSaveOptions, i.e., (It should be true):
string xml = @"
**true**
true
false
None
400
95
false
Pdf
";
Or you are not signing URI with respect to PdfSaveOptions (xml) while posting, you should sign the URI with respect to PdfSaveOptions, e.g
//sign URI
string signedURI = Sign(strURI);
**POST(signedURI, xml);**
//build URI
strURI = “https://api.aspose.com/v1.1/storage/file/out1pdf.pdf”;
So, could you double check this and let us know your code segment is ok.
Thank you.
Amjad,