ChangeFormat

Parent Previous Next

ChangeFormat

Function to change the format of a report document.


Syntax:

Void ChangeFormat(String ReportFileName,String newFormat,Boolean delete);

Change the format of a Report document located in the default path.

Params:

String ReportFileName: A String parameter containing the name of the Report Document.

String newFormat: A String parameter containing the new format of the Report. Document. The available formats are: RTF, DOC, DOCX, TXT, CSV, PDF, HTML, XPS.

Boolean delete: A Boolean parameter that sets if the old document will be deleted.


Example:

Change the format of the "Report1" document to "Docx" and deleting the old one.

  


SVReport.ChangeFormat("Report1","DOCX", true);

 


Change the format of the "Report1" document to "TXT" and not deleting the old one.

  


SVReport.ChangeFormat("Report1","TXT", false);