Can RTC open Crystal report ?
SINOEUNSTEVENNEANG
Member Posts: 202
Can RTC open Crystal report ?
if can . could you please advise me how?
Waiting for your kindly reply ?
if can . could you please advise me how?
Waiting for your kindly reply ?
0
Comments
-
-
It depends on what you want to do.
Open it and pass parameters -> i've been struggling with that for years.
But you can create a Link or attachment to the report(s) to simply open it.
we use hyperlink & SHELL for example. RTC might do it differently...
http://msdn.microsoft.com/en-us/library/dd301304.aspx
we've also created out own table to hold all the paths of the crystal reports with a description field & open on a click.
We made it ourselves but "links" are now standard in nav
viewtopic.php?t=237830 -
Hello,
First of all, nice to find this community here .
I am now installing and setup Dynamics Nav in the company i work.
And i had the same problem. Crystal Reports is way better then Navision reports.
To start the report from RTC or Classic is not a big problem. The problem is to pass parameters to that report.
So , i found/made the solution :
I made an program that will pass the parameters to report. From NAV i execute the program with parameters ... then everything works like a charm.
Here is the steps to make it done :
1. Download this application : https://rapidshare.com/files/154355060/report.zip
2. copy the report.exe from that zip to Classic and RTC folder
Ex:
C:\Program Files\Microsoft Dynamics NAV\60\RoleTailored Client
and C:\Program Files\Microsoft Dynamics NAV\60\Classic
This have to be done on every client.
3. Open report.exe and set the path where the Crystal reports files are located (i recommend a network path). Then close the application report.exe
4. NAV report setup :
Create a new report.
Set these Globals :
Name / Data Type / Subtype / Length
Vbs / OCX / ScryptControl Object /
code1 / text / / 250
tctCR / text / / 30
params/ text / / 250
Select the DataItem ( Ex: Sales Invoice Header - for a invoice)
The codeSales Invoice Header - OnAfterGetRecord() // params like : reportname parm1 param2 param3 // use espace between params - reportname is allways the first param params := 'facture.rpt '+ "Sales Invoice Header"."No."; // --> execute script - do not modify Vbs.Language := 'VBScript'; txtCR := ''; txtCR[1] := 13; code1 := code1 + 'sub OpenFile()' + txtCR; code1 := code1 + 'dim objShell' + txtCR; code1 := code1 + 'Set objShell = CreateObject("Wscript.Shell")' + txtCR; code1 := code1 + 'strArgument = "report.exe " & chr(34) & _' + txtCR; code1 := code1 + '"'+params+'" & chr(34)' + txtCR; code1 := code1 + 'objShell.Run strArgument' + txtCR; code1 := code1 + 'set objShell = Nothing' + txtCR; code1 := code1 + 'End Sub'+ txtCR; Vbs.AddCode(code1); Vbs.ExecuteStatement('OpenFile()'+ txtCR ); // <-- execute script - do not modify0
Categories
- All Categories
- 73 General
- 73 Announcements
- 66.7K Microsoft Dynamics NAV
- 18.8K 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
- 328 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