Attachment of Report

niimodin
Member Posts: 142
Hello Experts,
I have a "General condition of Sales" report which I want to be printed when the Sales Order confirmation is printed.
I have created this report and added to the order confirmation in the Report Selection.
My problem is anytime the the order confirmation has finished printing another request for appears.
I have changed the "UseReqForm" property of this report to No and the request still appear.
Come someone help me out?
Thanks
I have a "General condition of Sales" report which I want to be printed when the Sales Order confirmation is printed.
I have created this report and added to the order confirmation in the Report Selection.
My problem is anytime the the order confirmation has finished printing another request for appears.
I have changed the "UseReqForm" property of this report to No and the request still appear.
Come someone help me out?
Thanks
0
Comments
-
niimodin wrote:Hello Experts,
I have a "General condition of Sales" report which I want to be printed when the Sales Order confirmation is printed.
I have created this report and added to the order confirmation in the Report Selection.
My problem is anytime the the order confirmation has finished printing another request for appears.
I have changed the "UseReqForm" property of this report to No and the request still appear.
Come someone help me out?
ThanksThere are always a way
http://www.mandasoft.eu0 -
Thank you very much.
But the Print Dialog box still appears.
What should I do?0 -
Have you tried just adding RUN or RUNMODAL command at the end of the confirmation report - to execute the other report?
See c/side reference guide for details;
For another Example you can define it in a CU - Like CU82 for example, When you Post & print it will also print a Sales Shipment Report automatically (see below)CASE "Document Type" OF "Document Type"::Order: BEGIN IF Ship THEN BEGIN SalesShptHeader."No." := "Last Shipping No."; SalesShptHeader.SETRECFILTER; PrintReport(ReportSelection.Usage::"S.Shipment"); END; IF Invoice THEN BEGIN SalesInvHeader."No." := "Last Posting No."; SalesInvHeader.SETRECFILTER; PrintReport(ReportSelection.Usage::"S.Invoice"); END; END;
Here they use Report.Run - to just run the reportPrintReport(ReportUsage : Integer) ReportSelection.RESET; ReportSelection.SETRANGE(Usage,ReportUsage); ReportSelection.FIND('-'); REPEAT ReportSelection.TESTFIELD("Report ID"); CASE ReportUsage OF ReportSelection.Usage::"S.Invoice": REPORT.RUN(ReportSelection."Report ID",FALSE,FALSE,SalesInvHeader); ReportSelection.Usage::"S.Shipment": REPORT.RUN(ReportSelection."Report ID",FALSE,FALSE,SalesShptHeader); END; UNTIL ReportSelection.NEXT = 0;
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