Yes, you're right. Off course it will be slower. #-o
I was confused with one of my own problems regarding SAVEASPDF and using the generated pdf after that.
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.
Answers
But using a SLEEP(1000) after generating the PDF is recommended.
Tino Ruijs
Microsoft Dynamics NAV specialist
Does the report run slow when previewing it?
Independent Consultant/Developer
blog: https://dynamicsuser.net/nav/b/ara3n
Yes, you're right. Off course it will be slower. #-o
I was confused with one of my own problems regarding SAVEASPDF and using the generated pdf after that.
Tino Ruijs
Microsoft Dynamics NAV specialist
//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)
Does manually saving as pdf to that directory take long?
Tino Ruijs
Microsoft Dynamics NAV specialist
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);
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 specialist
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 specialist
Now I'm going to check how long is the dataset
Thanks tinoruijs, I have had rights.
bye
You're welcome.
How did you solve it?
Tino Ruijs
Microsoft Dynamics NAV specialist