How to export report as text file in navision
ismailthesacrificer1@gmail.com
Member Posts: 76
How to create a report to export into text file and also i had three companies i want to run the report in one company then i need to get each company information in to in each text file. when i run from another company then i need to get error message.
Thanks in advance.
Thanks in advance.
0
Answers
-
As I followed to but i am getting only one record but i need to see all the records in the customer table and vendor table .
File1.CREATE(filePath);
File1.CREATEOUTSTREAM(gOutStreamOst);
gOutStreamOst.WRITETEXT(Customer."No."+';'+Customer.Name+';'+Customer.Address+';'+Customer."Phone No."+';'+Customer."E-Mail");
gOutStreamOst.WRITETEXT();
gOutStreamOst.WRITETEXT(Vendor."No."+';'+Vendor.Name+';'+Vendor.Address+';'+Vendor."Phone No."+';'+Vendor."E-Mail");
File1.CLOSE;0 -
Hi,
Why don't you use a dataport?
All companies are in the table "Company" (ID 2000000006).
You can change the company of an individual table using the function "Rec.CHANGECOMPANY"My blog - https://www.HannesHolst.com/0 -
Thanks for the reply @ HannesHolst.
as per my requirements i need to do it by using report.
i had written the code on OnPostReport, but i am getting only one record in the customer table and also when i run in one company the other company customer information should create a new text file individually.0 -
OnAfterGetRecord trigger is your target0
-
Thanks for the reply @ lubost
Yeah i tried this solution also but no result i am getting only one record if the customer i.e,. last record. i apply looping as
gCountInt := 0;
IF Customer.FIND('-') THEN
REPEAT
gCountInt := gCountInt + 1;
UNTIL Customer.NEXT <= 0;
but no result.
i think something i am missing the code,,0
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
- 327 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
