Dear All, I want to save a report output as html format without user intervention( i mean user will just click a button on some Navision Form and the report will be saved as html page in some predefined location). Is it feasible in Navision or any alternate methods to do it. Thanks in advance
From the C/SIDE Reference Guide (available in the Help menu):
quote:
SAVEASHTML (Report) Use this function to save a report as an HTML file. A browser that supports HTML version 3.0 or later is recommended for viewing the file. [Ok :=] Report.SAVEASHTML(Number, FileName [,SystemPrinter] [, Rec]) [Ok :=] Report.SAVEASHTML(FileName) Report Data type: report Number Data type: integer FileName Data type: text SystemPrinter Data type: boolean Rec Data type: record Ok Data type: boolean Comments The SaveAsHTML function can be used on the Report type and on Report variables. FileName is the path and name of the file you want to print to. The use of the parameters Number, SystemPrinter and Rec is similar to that of the report functions RUN and RUNMODAL. When SaveAsHTML is called, the report is generated and saved to “FileName.” The standard system status box “Saving to HTML” shows the status of the process. You can manually cancel the generation of the report and the saving of the report as an HTML file. Please note that the RequestForm will not be shown. The return value informs you whether or not the report has been saved successfully. If you use this value and an error occurs, the system simply returns FALSE. If you do not use the return value, the occurrence of an error results in an error message such as out of hard disk space, the file parameter is not open, the user cancelled from the Save As HTML box, and so on. Further, the object is closed.
Dear Nelson, Thanks a lot for your precise reply. [Wow!] Regards, Devinder