Copy link to clipboard
Copied
I have an excel file when I export this from Excel to a PDF format. The file is 45KB in size. The originating xlsx file is 13KB in size. When I try and export the PDF file using the PDF Services API, I get a response stream back that is only 8KB in size and excel refuses to open it, as it says it is corrupted.
Do you have any example code of how this should work? I am using C# with the response.GetResponseStream with a FileStream (in a using block) destination using CopyTo. It is shown in the attached file. I am sending all the items that are requested, what seems to be wrong is either what I am being sent or the way I am processing the stream. There are lots of examples of capturing a stream but none of them seem to result in a valid xlsx file.
Your help would be appreciated.
regards
Geoff Hirst
Copy link to clipboard
Copied
I'm confused - where did your code come from? That does not look like our DotNet SDK.