SAVEASPDF Function

tsv
Member Posts: 49
Hi All,
i have created a report and am trying to save that as PDF in a specific path using saveaspdf function in RTC.
The code is
Can any one help me in this?
Thanks inAdvance
i have created a report and am trying to save that as PDF in a specific path using saveaspdf function in RTC.
The code is
REPORT.SAVEASPDF(50041,'c:\Thomas.pdf');but i got an error stating "Either the caller does not have the required permission or the specified path is read only" ](*,)
Can any one help me in this?
Thanks inAdvance
with regards,
tsv
tsv
0
Comments
-
thanks Belias for your response.
Am using XP. even if i change the path, the same error exist.with regards,
tsv0 -
thanks Belias for your response.
Am using XP. even if i change the path, the same error exist.with regards,
tsv0 -
Not knowing much about your setup I will give it a shot. The path you are saving to is on the server in the context of the user executing the code. This means that you would have to have write access to c:\ of the server. Is that the case?
/ClausClaus Busk Andersen
Program Manager
Microsoft Dynamics NAV0 -
Thanks for ur response claus. I have a server machine and a client machine. After processing the customer data, the user have to send a pdf as a mail. the user might send multiple files every day as pdf, so i really don't want to save all those in my server machine that requires some space. how do i achieve this...
Thanks in advance.with regards,
tsv0 -
one suggestion is after you save the pdf and send the email, is to delete the pdf files.0
-
1) The file is created on the server - it means use temp path to save it correctly
2) If you want to send the file from client, you need to download the file to the client. There is command for that.
3) After downloading the file, you can delete it on the server...0 -
Thanks Kamil... can you tell me what is that command to download the file from server to client. what that u mean by temp path?
can we save the file in client computer or its possible only in server?
Thanks in advancewith regards,
tsv0 -
1) the command for downloading the file is "DOWNLOAD" (or "DOWNLOADFROMSTREAM")
2) By temp path I mean the temporary folder which exists on all systems. The path is in the TEMP environment variable. You can use the TEMPORARYPATH system variable to use it.0 -
=D> great its working fine.
by using DOWNLOAD function i am able to download the file, but this function opens a save dialog box.
i don't want the dialog box to open, it should save to the default path that i specify in the function's parameter. how do i achieve this? this is becuase i have to attach the file to the mail and send it to the user.
Thanks in advance.with regards,
tsv0 -
I am afradi that this cannot be done through this function. There was another thread about that. Better in this case will be to have some shared folder somewhere, where you will store the file and attach it from this shared folder. Question is, how you want to send the file, if the Outlook is on the client PC but the code is running on the server. If you will use SMTP mailing, you cann attach the file from the server, because the code will be running on the server...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