Change between RTC and Classic mode during runtime

Alex_Chow
Member Posts: 5,063
Is it possible to change the mode of how a process is ran during runtime?
I'm trying to print a classic report using RTC using the SAVEASHTML function, but it errors out because SAVEASHTML is not supported in the RTC.
I'm trying to print a classic report using RTC using the SAVEASHTML function, but it errors out because SAVEASHTML is not supported in the RTC.
Confessions of a Dynamics NAV Consultant = my blog
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
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
0
Comments
-
You mean something like this?
if ISSERVICETIER then report.SAVEASEXCEL else Report.SAVEASHTML
0 -
No...
I'm talking about something like this:if ISSERVICETIER then Client.Servicetier := FALSE;
-OR something like this-if ISSERVICETIER then report.run(50000,false,false,SalesHeader,CLASSICMODE);
This way, I can force reports to run in classic client mode when working in the RTC when coding.Confessions of a Dynamics NAV Consultant = my blog
AP Commerce, Inc. = where I work
Getting Started with Dynamics NAV 2013 Application Development = my book
Implementing Microsoft Dynamics NAV - 3rd Edition = my 2nd book0 -
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.0 -
ara3n wrote: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.Confessions of a Dynamics NAV Consultant = my blog
AP Commerce, Inc. = where I work
Getting Started with Dynamics NAV 2013 Application Development = my book
Implementing Microsoft Dynamics NAV - 3rd Edition = my 2nd book0 -
you could save it as excel. Use excel automation and save it as html? I haven't tried save as html in excel.0
-
ara3n wrote:you could save it as excel. Use excel automation and save it as html? I haven't tried save as html in excel.
No, the RDLC is required if you want to save it as Excel.Confessions of a Dynamics NAV Consultant = my blog
AP Commerce, Inc. = where I work
Getting Started with Dynamics NAV 2013 Application Development = my book
Implementing Microsoft Dynamics NAV - 3rd Edition = my 2nd book0 -
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.0 -
ara3n wrote: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.Confessions of a Dynamics NAV Consultant = my blog
AP Commerce, Inc. = where I work
Getting Started with Dynamics NAV 2013 Application Development = my book
Implementing Microsoft Dynamics NAV - 3rd Edition = my 2nd book0 -
Time to get the reports to fully upgraded?0
-
ara3n wrote:Time to get the reports to fully upgraded?
Tried, but I just can't get the invoice to look nice without spending a ton of hours on it...Confessions of a Dynamics NAV Consultant = my blog
AP Commerce, Inc. = where I work
Getting Started with Dynamics NAV 2013 Application Development = my book
Implementing Microsoft Dynamics NAV - 3rd Edition = my 2nd book0 -
Have you tried to take a nav std invoice report that already has RDLC and make the necessary changes.0
-
-
Mark Brummel wrote:How about run the report in a NAS?
On demand?Confessions of a Dynamics NAV Consultant = my blog
AP Commerce, Inc. = where I work
Getting Started with Dynamics NAV 2013 Application Development = my book
Implementing Microsoft Dynamics NAV - 3rd Edition = my 2nd book0 -
Alex Chow wrote: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?
t0 -
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.0
-
Then have the NAS it to dump into some where and have the client customer requesting the report to automatically create an e-mail and attach the file?
:-kConfessions of a Dynamics NAV Consultant = my blog
AP Commerce, Inc. = where I work
Getting Started with Dynamics NAV 2013 Application Development = my book
Implementing Microsoft Dynamics NAV - 3rd Edition = my 2nd book0
Categories
- All Categories
- 73 General
- 73 Announcements
- 66.6K Microsoft Dynamics NAV
- 18.7K NAV Three Tier
- 38.4K NAV/Navision Classic Client
- 3.6K Navision Attain
- 2.4K Navision Financials
- 116 Navision DOS
- 851 Navision e-Commerce
- 1K NAV Tips & Tricks
- 772 NAV Dutch speaking only
- 617 NAV Courses, Exams & Certification
- 2K Microsoft Dynamics-Other
- 1.5K Dynamics AX
- 320 Dynamics CRM
- 111 Dynamics GP
- 10 Dynamics SL
- 1.5K Other
- 990 SQL General
- 383 SQL Performance
- 34 SQL Tips & Tricks
- 35 Design Patterns (General & Best Practices)
- 1 Architectural Patterns
- 10 Design Patterns
- 5 Implementation Patterns
- 53 3rd Party Products, Services & Events
- 1.6K General
- 1.1K General Chat
- 1.6K Website
- 83 Testing
- 1.2K Download section
- 23 How Tos section
- 252 Feedback
- 12 NAV TechDays 2013 Sessions
- 13 NAV TechDays 2012 Sessions