RTC only runs in classic mod if there is no RDL in the report.
So make a copy of the report. Delete the Layout and call one or the other report.
No, that doesn't work during run-time.
When you run a report during RTC environment, it assumes you're going to run the report in RDLC. Only after the report is called does it determine whether there's RDL.
So when you use report.saveashtml, it still assumes the report is going to be RDLC formated. So it'll kick out with an error.
I'm guessing you have a classic report that you hasn't been fully upgraded and you want to save it as html.
I guess you could use NAS to run the report for you.
What I'm trying to replicate is the ability to e-mail sales invoices that's not formatted in the RDLC. Before, you can just click on Send Report by E-mail, now you can't.
I found a blog by Claus that does this, but it requires the report to be in RDLC.
Tried, but I just can't get the invoice to look nice without spending a ton of hours on it...
I hear ya..... Brutal hours on some reports...
The NAS is an option, but a huge effort.
You could create a table that the NAS Scans on the timer. Add new records when the user hits "print", populate table. NAS sees the record for a new report print with parameters of the record to print off and prints it for you... painful but is it less painful than putting the report in RDL?
Yes, you can let the NAS scan a table that contain jobs to print reports. This has been done before in warehouses and shop floors to print bar code stickers etc. Not really a lot of effort. Only a few hours of work.
Comments
Independent Consultant/Developer
blog: https://dynamicsuser.net/nav/b/ara3n
I'm talking about something like this:
-OR something like this-
This way, I can force reports to run in classic client mode when working in the RTC when coding.
AP Commerce, Inc. = where I work
Getting Started with Dynamics NAV 2013 Application Development = my book
Implementing Microsoft Dynamics NAV - 3rd Edition = my 2nd book
So make a copy of the report. Delete the Layout and call one or the other report.
Independent Consultant/Developer
blog: https://dynamicsuser.net/nav/b/ara3n
No, that doesn't work during run-time.
When you run a report during RTC environment, it assumes you're going to run the report in RDLC. Only after the report is called does it determine whether there's RDL.
So when you use report.saveashtml, it still assumes the report is going to be RDLC formated. So it'll kick out with an error.
AP Commerce, Inc. = where I work
Getting Started with Dynamics NAV 2013 Application Development = my book
Implementing Microsoft Dynamics NAV - 3rd Edition = my 2nd book
Independent Consultant/Developer
blog: https://dynamicsuser.net/nav/b/ara3n
No, the RDLC is required if you want to save it as Excel.
AP Commerce, Inc. = where I work
Getting Started with Dynamics NAV 2013 Application Development = my book
Implementing Microsoft Dynamics NAV - 3rd Edition = my 2nd book
I guess you could use NAS to run the report for you.
Independent Consultant/Developer
blog: https://dynamicsuser.net/nav/b/ara3n
What I'm trying to replicate is the ability to e-mail sales invoices that's not formatted in the RDLC. Before, you can just click on Send Report by E-mail, now you can't.
I found a blog by Claus that does this, but it requires the report to be in RDLC.
AP Commerce, Inc. = where I work
Getting Started with Dynamics NAV 2013 Application Development = my book
Implementing Microsoft Dynamics NAV - 3rd Edition = my 2nd book
Independent Consultant/Developer
blog: https://dynamicsuser.net/nav/b/ara3n
Tried, but I just can't get the invoice to look nice without spending a ton of hours on it...
AP Commerce, Inc. = where I work
Getting Started with Dynamics NAV 2013 Application Development = my book
Implementing Microsoft Dynamics NAV - 3rd Edition = my 2nd book
Independent Consultant/Developer
blog: https://dynamicsuser.net/nav/b/ara3n
On demand?
AP Commerce, Inc. = where I work
Getting Started with Dynamics NAV 2013 Application Development = my book
Implementing Microsoft Dynamics NAV - 3rd Edition = my 2nd book
I hear ya..... Brutal hours on some reports...
The NAS is an option, but a huge effort.
You could create a table that the NAS Scans on the timer. Add new records when the user hits "print", populate table. NAS sees the record for a new report print with parameters of the record to print off and prints it for you... painful but is it less painful than putting the report in RDL?
t
:-k
AP Commerce, Inc. = where I work
Getting Started with Dynamics NAV 2013 Application Development = my book
Implementing Microsoft Dynamics NAV - 3rd Edition = my 2nd book