[solved] savaaspdf is too slow

massimopasquali
Member Posts: 82
hi,
I used SAVEASPDF to generate e PDF from report, but It's very slow to put off the pdf document. Someone can explain me why?
thanks
I used SAVEASPDF to generate e PDF from report, but It's very slow to put off the pdf document. Someone can explain me why?
thanks
0
Answers
-
Shouldn't be slow.
But using a SLEEP(1000) after generating the PDF is recommended.
Tino Ruijs
Microsoft Dynamics NAV specialist0 -
using sleep will make it even slower.
Does the report run slow when previewing it?0 -
No I dont't use sleep, this is my code :
//RECUPERO IL PATH DALLA TABELLA SETUP SERVIZI
PathOnServer.GET;
Filename := PathOnServer.PercorsoBonusGas;
Filename += FORMAT(CREATEGUID);
Filename := DELCHR(Filename, '=', '{-}');
Filename += '.pdf';
REPORT.SAVEASPDF(ReportID,Filename);
EXIT(Filename)0 -
What Rashed said; Does the report run slow when previewing it?
Does manually saving as pdf to that directory take long?
Tino Ruijs
Microsoft Dynamics NAV specialist0 -
Sorry,
I have saved the file in the directory temp on NAV server that I have recorded on my Setup "PathOnServer.PercorsoBonusGas".
After that I have generated the PDF and after imported in the BLOB :
BLOBRef.INIT;
FileManagement.BLOBImportFromServerFile(BLOBRef,ServerFileName);0 -
That should be fast.
Do you know how many seconds it takes to generate the pdf?
And how many to import the pdf?
Slow and fast are subjective terms. What person A considers slow, maybe person B considers fast.
Tino Ruijs
Microsoft Dynamics NAV specialist0 -
I have generated an invoice of two pages, NAV have used 15 seconds.0
-
massimopasquali wrote:I have generated an invoice of two pages, NAV have used 15 seconds.
Do you use an image in company information?
Don't know if the invoice has got the same problem as the sales quote, but it could be the dataset for this invoice is too big.
You could check the size of the dataset by using print preview and then Help, About this list, Export as xml. Then check the size of the xml.
Tino Ruijs
Microsoft Dynamics NAV specialist0 -
Yes I'm using the Company image; the invoice hasn't problems, if I print on my Xerox the process uses 5 sec. to getting out the invoice printed.
Now I'm going to check how long is the dataset0 -
Solved! :-)
Thanks tinoruijs, I have had rights.
bye0 -
massimopasquali wrote:Solved! :-)
Thanks tinoruijs, I have had rights.
bye
You're welcome.
How did you solve it?
Tino Ruijs
Microsoft Dynamics NAV specialist0
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