Execute Crystal Reports from NAV with selected parameters

Chowdary
Member Posts: 148
Hi NAVfamily
I am trying to work with this downloadhttp://www.mibuso.com/dlinfo.asp?FileID=1415
I am having difficulty understanding this code
I am working on NAV 2009 R2 and Crystal reports 14.0.2.364 RTM
Did anyone tried this download successfully?
thanks
I am trying to work with this downloadhttp://www.mibuso.com/dlinfo.asp?FileID=1415
I am having difficulty understanding this code
Sales 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 modify
I am working on NAV 2009 R2 and Crystal reports 14.0.2.364 RTM
Did anyone tried this download successfully?
thanks
Pleasure in the job puts perfection in the work
0
Comments
-
The code will execute "report.exe" ... Is a report loader and will pass your parameters
First you have tu manually run report.exe to select the folder where your rpt is.
Send me a pm if you need more infos0 -
the question is after that I installed NNAV Crystal Reports installer where I can Find "report.exe"0
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