365 BC On-Prem - Save RDLC report as HTML

Hi Guys,

I have a client who want's their employee's payslips presented to the employees online, in their employee portal.
So my task is to deliver an HTML file to their web-guys.

SAVEASHTML is only valid for reports with Word layout, so this is not an option.
I tried to work around it with the use of SAVEAS, to an outstream created from a file on the target share.

FileVar.CREATE(SaveFileName);
FileVar.CREATEOUTSTREAM(OutStr);
RecRef.GETTABLE(Employee);
PaySlipNewModel.SAVEAS('',REPORTFORMAT::Html,OutStr,RecRef);
FileVar.CLOSE;

However this causes the client to crash, and on the servicetier i get an error in the eventlog, about the value for parameter Format is out of range.

So this was not an option to work around it.

Do i really have to recreate the layout in Word, or does someone have a solution on how i can get the output of a RDLC report saved as HTML?

TIA

// Alexander

Parents
No Data
Reply Children
No Data
Related
Recommended