Quantcast
Channel: Dynamics 365 Business Central/NAV User Group
Viewing all articles
Browse latest Browse all 11285

Forum Post: 365 BC On-Prem - Save RDLC report as HTML

$
0
0
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

Viewing all articles
Browse latest Browse all 11285

Trending Articles