SAVE AS PDF Report From Customer Card (RTC)

rathin_mca
Member Posts: 14
I have created an action button (Save as PDF) in customer card page.
when i click the save as pdf button the "Statement " report should save automatically as PDF Specified path.
But the problem is "STATEMENT" report has date filter field so when i try to save as PDF from customer card page am getting the err
"Please specify a filter for the Date Filter field " - this because of flow filter ](*,)
how resolve this err.......? any one faced this earlier kindly let me know.... the below code is written onaction button (Save as PDF)
Customer1.RESET;
Customer1.SETRANGE("No.","No.");
IF Customer1.FINDFIRST THEN
REPORT.SAVEASPDF(116,'D:\Report\',Customer1);
when i click the save as pdf button the "Statement " report should save automatically as PDF Specified path.
But the problem is "STATEMENT" report has date filter field so when i try to save as PDF from customer card page am getting the err
"Please specify a filter for the Date Filter field " - this because of flow filter ](*,)
how resolve this err.......? any one faced this earlier kindly let me know.... the below code is written onaction button (Save as PDF)
Customer1.RESET;
Customer1.SETRANGE("No.","No.");
IF Customer1.FINDFIRST THEN
REPORT.SAVEASPDF(116,'D:\Report\',Customer1);
0
Comments
-
Hi, just add the requested filter before FINDFIRST:
Customer1.SETRANGE("Date Filter",StartEnd,EndDate);
You have anyway to define a criteria for automatically evaluate starting and ending dates (1st January and WORKDATE?) if you need no user interaction at all.
Note also a complete path + filename is required by SAVEASPDF function, you just provided directory.* Daniele Rebussi * | * Rebu NAV Diary *0 -
Dear,
If solution above giving error on filtering Flow Field, try
to add Calcfields before Setrange on Date Filter
eg : Customer.Calcfields(Customer."Date Filter");0 -
Thx : its working fine.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