mibuso.com

Microsoft Business Solutions online community
It is currently Thu Apr 24, 2014 8:00 am

All times are UTC + 1 hour [ DST ]




Post new topic Reply to topic  [ 298 posts ]  Go to page Previous  1 ... 15, 16, 17, 18, 19, 20  Next
Author Message
 Post subject: Re: How to save Navision Reports as PDF
PostPosted: Sun Jan 22, 2012 5:15 am 
Offline

Joined: Tue Dec 06, 2011 11:08 pm
Posts: 1
Country: United States (us)
hmm i think you are right but what's the exact problem with PDF ?


Top
 Profile E-mail  
 
 Post subject: Re: How to save Navision Reports as PDF
PostPosted: Wed Jan 25, 2012 7:40 pm 
Offline

Joined: Wed Feb 08, 2006 11:01 pm
Posts: 64
Location: Plano, TX
Country: United States (us)
Thanks to Rashed for this solution. I am using it for a client who is on NAV 2009 with RTC. They want to print check stubs to PDF without any user intervention. It works beautifully in Classic, but in RTC the BullZip prompt comes up for each PDF, asking for path and filename. ](*,)

Can anyone see what I've done wrong here or is there an issue in RTC that makes this impossible?

Code: Select all
BullZipPDF.Init;
BullZipPDF.LoadSettings;
RunOnceFile := BullZipPDF.GetSettingsFileName(TRUE);
BullZipPDF.SetValue('Output',FileDirectory+FileName);
BullZipPDF.SetValue('Showsettings', 'never');
BullZipPDF.SetValue('ShowPDF', 'no');
BullZipPDF.SetValue('ShowProgress', 'no');
BullZipPDF.SetValue('ShowProgressFinished', 'no');
BullZipPDF.SetValue('SuppressErrors', 'no');
BullZipPDF.SetValue('ConfirmOverwrite', 'no');
BullZipPDF.WriteSettings(TRUE);

PayCheckLedger2 := PayCheckLedger;
PayCheckLedger.SETRECFILTER;

REPORT.RUNMODAL(ReportID,FALSE,FALSE,PayCheckLedger);


BTW, I have set BullZip as the default printer AND configured in printer selections. It doesn't work either way.


Top
 Profile  
 
 Post subject: Re: How to save Navision Reports as PDF
PostPosted: Thu Jan 26, 2012 1:25 am 
Offline
MVP Microsoft Dynamics NAV

Joined: Wed Dec 15, 2004 6:11 pm
Posts: 8986
Location: 3rd rock from sun
Country: United States (us)
On RTC you don't need bullzip.

You can just call

Report.saveaspdf and save it to a folder.

_________________
Rashed.

blog: http://mibuso.com/blogs/ara3n/


Top
 Profile  
 
 Post subject: Re: How to save Navision Reports as PDF
PostPosted: Thu Jan 26, 2012 4:51 am 
Offline

Joined: Wed Feb 08, 2006 11:01 pm
Posts: 64
Location: Plano, TX
Country: United States (us)
Thanks for your help! I totally overlooked that command. I coded an IF ISSERVICETIER loop to use BullZip if running from classic (just in case).


Top
 Profile  
 
 Post subject: Re: How to save Navision Reports as PDF
PostPosted: Mon Feb 27, 2012 1:45 pm 
Offline

Joined: Wed Oct 26, 2005 4:11 pm
Posts: 98
Location: The Netherlands
Country: Netherlands (nl)
FYI.

I tried to save Navision Reports using eDocPrintPro version 3.17.4. Works fine with Windows Server 2003 but I can't get it to work with Windows Server 2008 although the website claims that it's supported.

Modified the functionality to make use of BullZip now everything works fine under both Windows Server 2003 and 2008.

Maybe this reply saves someone time :)


Top
 Profile  
 
 Post subject: Re: How to save Navision Reports as PDF
PostPosted: Wed Apr 11, 2012 12:47 am 
Offline

Joined: Thu Feb 19, 2009 1:57 pm
Posts: 3
In case anyone else has this problem - for about 8 hours today I couldn't get PDFCreator v1.3.2 to run on a Terminal Server (2008 R2 64) running NAV 2009 R2 Classic. I could print normally from the report to PDF from the print dialogue and I could instantiate the exe, set options, generate test files etc via COM/Automation using Rashed's script but I could not print the actual report to a PDF - could see the exe in task manager but no jobs were ever added. No error messages/error events, only an eventual time out/forcefully having to kill the process.

Turns out the only way I got it to work was by setting PDFCreator.exe to always run as Administrator and then running NAV itself as Administrator.

Hopefully this will save somebody else a few hours. I'll post a follow up if/when I come up with a better solution/explanation. Any hits/tips highly appreciated.


Top
 Profile E-mail  
 
 Post subject: Re: How to save Navision Reports as PDF
PostPosted: Wed Apr 11, 2012 5:20 pm 
Offline

Joined: Thu Feb 19, 2009 1:57 pm
Posts: 3
Turns out the issue is related to this: http://support.microsoft.com/kb/243555

Installing with administrator privileges with this feature enabled (default) will result in the printer spool directory being in a different directory than for your regular user (without administrator privileges). Running PDFCreator without admin privileges will then result in the application looking in the wrong place for the postscript files. Finally figured this out by using ProcessMonitor.

You can see the difference in what the %TEMP% variable is set to from command prompt by running set temp, then try running cmd.exe as administrator and you will most probably get a slightly different path.

Follow solutions in the link above and it will work like a charm. Hope this saves someone a few hours :)


Top
 Profile E-mail  
 
 Post subject: Re: How to save Navision Reports as PDF
PostPosted: Wed May 02, 2012 8:10 am 
Offline

Joined: Fri Jul 30, 2010 8:17 am
Posts: 231
Country: India (in)
I getting the following error on compiling:

Could not load the selected library. :!:


Top
 Profile E-mail  
 
 Post subject: Re: How to save Navision Reports as PDF
PostPosted: Wed May 02, 2012 8:25 am 
Offline

Joined: Fri Jul 30, 2010 8:17 am
Posts: 231
Country: India (in)
Resolved the error..But the new one is that

you cannot enter "item list" in Report No.


Top
 Profile E-mail  
 
 Post subject: Re: How to save Navision Reports as PDF
PostPosted: Wed May 02, 2012 2:35 pm 
Offline
MVP Microsoft Dynamics NAV

Joined: Wed Dec 15, 2004 6:11 pm
Posts: 8986
Location: 3rd rock from sun
Country: United States (us)
use a different report. any report that you want to save as pdf.

_________________
Rashed.

blog: http://mibuso.com/blogs/ara3n/


Top
 Profile  
 
 Post subject: Re: How to save Navision Reports as PDF
PostPosted: Wed May 02, 2012 2:53 pm 
Offline
MVP Microsoft Dynamics NAV

Joined: Tue Aug 14, 2001 7:01 am
Posts: 5349
Location: Prague
Country: Czech Republic (cz)
Lamba wrote:
Resolved the error..But the new one is that

you cannot enter "item list" in Report No.

Try

Code: Select all
REPORT::"Item List"

_________________
David Singleton
Dynamics NAV Freelancer
Dynamics Book
Go-Live International


Top
 Profile E-mail WWW  
 
 Post subject: Re: How to save Navision Reports as PDF
PostPosted: Wed May 16, 2012 12:22 pm 
Offline

Joined: Fri Jul 30, 2010 8:17 am
Posts: 231
Country: India (in)
Now a hotfix from Microsoft is available for Nav 2009 Sp1 and Nav R2.
I thought i must update as i got the information.


Top
 Profile E-mail  
 
 Post subject: Re: How to save Navision Reports as PDF
PostPosted: Wed Jun 27, 2012 12:16 pm 
Offline

Joined: Wed Jan 11, 2012 8:50 am
Posts: 4
Country: Uganda (ug)
I have imported the form, but when I compile it I get an error message
"could not load the selected type library"
Please can you help me out.
Maurice


Top
 Profile E-mail  
 
 Post subject: Re: How to save Navision Reports as PDF
PostPosted: Fri Jun 29, 2012 3:38 am 
Offline
MVP Microsoft Dynamics NAV

Joined: Wed Dec 15, 2004 6:11 pm
Posts: 8986
Location: 3rd rock from sun
Country: United States (us)
go to globals and reselect the automation variable for pdfcreator.

_________________
Rashed.

blog: http://mibuso.com/blogs/ara3n/


Top
 Profile  
 
 Post subject: Re: How to save Navision Reports as PDF
PostPosted: Mon Aug 13, 2012 4:10 pm 
Offline

Joined: Fri Feb 03, 2012 5:58 pm
Posts: 20
Country: Iceland (is)
Has anyone used GhostScript to print PDF in Navistion?

Can anyone give me an example on how to use the GhostScript Automation object in Navison to print PDF?


Top
 Profile E-mail  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 298 posts ]  Go to page Previous  1 ... 15, 16, 17, 18, 19, 20  Next

All times are UTC + 1 hour [ DST ]


Who is online

Users browsing this forum: No registered users and 2 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum


Search for:
Jump to: