hi everyone..
i'm facing problem in saving an report as xml file..
i wrote
if(currreport.saveasxml('c:\myxml.xml')) then begin
message('done');
end else begin
message('notdone');
end;
when i give the above code in OnInitReport() it gives an error message stating that "please enter date"(since date is an mandatary to run the report).
when i give in it OnPreReport() it give error message "report 0 does not exit"
when i give it in OnPostReport() it gives the same error..
please help me by giving some tips--where to write the code...
and also is there any provision to pass parameter to report when called through codeunit..(like date which is mandatory to run the report)
thank you
bye
Ganesh
if (better is possible)
{
good is not enough
}
0
Comments
something like:
var_SomeDate := parameter_SomeDate;
Now, when you code and call that report, pass the parameter to the function first and then set the XML parameters. This is all you have to do:
report_SomeReport.function_DateSet(090903D);
report_SomeReport.SaveAsXML('c:\SomeXMLFile.xml);
Remember, SaveAsXML implies a RUN command.
thanks for the reply and your solution is working properly..thank you once again...
can you please give a solution to save the report as xml file using the fuction
currreport.saveasxml(filename);
for report where date is mandatory..
thank you
bye
Ganesh.
{
good is not enough
}