How to convert a Folder into a zip file in Navision

chandrurec
Member Posts: 560
Hi,
I want to convert a folder into a zip file and then attach this zip file in the mail which i am going to send to the customer.Is it possible to convert the folder into a zip file in navision. If so please tell me the steps which i nedd to follow to convert the folder into a zip file.The entire process should happen automatically just by a click of a button.
The next doubt which i have is,
Is there any codeunit through which i can able to do attachment before sending the mail automatically without manually attaching the file.
please tell me the codeunit or batch job number in navsion 5.0 .
Thanks in Advance
bye.............
I want to convert a folder into a zip file and then attach this zip file in the mail which i am going to send to the customer.Is it possible to convert the folder into a zip file in navision. If so please tell me the steps which i nedd to follow to convert the folder into a zip file.The entire process should happen automatically just by a click of a button.
The next doubt which i have is,
Is there any codeunit through which i can able to do attachment before sending the mail automatically without manually attaching the file.
please tell me the codeunit or batch job number in navsion 5.0 .
Thanks in Advance
bye.............
0
Comments
-
Regarding the mail you need to see codeunit 397 Mail and the function NewMessage with it's parameters.
Regarding the zip file compression you could use an automation or you could use the command line interface of the compression utilities (such as Winzip or Winrar) but I haven't done something similar yet so I cannot help you with this right now...0 -
Thanks a lot0
-
You're welcome. If you'd like, when you have finished let us know which route you followed for the compression issue and what you found to be the best solution.0
-
0
-
Hi all,
I found out the method of how to automatically convert a folder into a zip file in navision. It is possible using shell automation.
try to convert using the shell automation. It will work fine.
Enjoy!!!!!!!!!!
bye........0 -
Hi chandru
Can you send the automation code for converting the folder to zip file.AMARNATH SRINATH0 -
This is the code for converting folder to zip file
ZipFile.CREATE('C:\CustomerStatement.zip');
ZipFile.WRITE(IntVal);
FOR i:=1 TO 9 DO
ZipFile.WRITE(IntVal);
ZipFile.CLOSE;
CREATE(Shell32);
ZIPFolder:=Shell32.NameSpace('C:\CustomerStatement.zip');
txtFileName := 'C:\Temp';
ZIPFolder.CopyHere(txtFileName);
Try this code it will surely work.
Enjoy!!!!!!!!
bye....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