Dovico.TrackITWSAPI.API.ReportExportPDF(System.String,Dovico.TrackITAPI.SessionToken)
Function Overview:
Accepts a request to export a report. sXml should be in the format http://www.dovico.com/schemas/reportrequest.xsd. Note that when a report is exported, it needs to use a temp directory to store files. By default the web.config contains a TemporaryFilesFolder key with a value of value="default" which will use the defined Windows temp directory. If you are unable to export the report and you are getting a permissions error you may wish to change this to a hardcoded temp directory that your ASP.NET worker process has full control of.
Parameter List:
sXml - string - xml that requests the report, should be in format reportrequest.xsd
stToken - SessionToken - Session Token containing information needed to process the transaction
Returns
A string containing the base64 encoded .pdf that was generated from the report.
Example:
// build up xml to create a report printing request
string sXml = "<ReportRequest:REPORTREQUESTS xmlns:ReportRequest=\"http://www.dovico.com/schemas/reportrequest.xsd\">";
sXml += "<REPORTREQUEST ID=\"30100\" PARAMETER=\"\"/></ReportRequest:REPORTREQUESTS>";
// get the PDF file as an xml document
string sReportXml = wsapi.ReportExportPDF(sXml, stToken);
// next you parse the xml to extract base64 encoded PDF and decode and write to a file...