hello,
I have code that saves a sales invoice to PDF. I need to then automatically display the PDF to the user. What can I use? HYPERLINK does not work as it looks for the file locally.
REPORT.SAVEASPDF(206, 'F:\InvoicePrinter\Invoices\'+STRSUBSTNO('Invoice No. %1',SalesInvHeader."No.")+'.pdf', SalesInvHeader);
I am using NAV 2009 SP1 - this needs to work from the RTC.
Answers
Or to make it simpler save the file on a network share that is accessible from both client and service tier.
Soren
http://gotcal.com
http://blogs.msdn.com/b/nav/archive/2009/10/08/send-email-with-pdf-attachment-in-nav-2009.aspx
Regards,
Claus
I'm blogging here:http://mibuso.com/blogs/clausl and used to blog here: http://blogs.msdn.com/nav
I'm also offering RDLC Report Training, ping me if you are interested. Thanks to the 700 NAV developers that have now already been at my training. You know you can always call if you have any RDLC report issues :-)
Hi Claus, yes I used your code examples to write my code. Thank you so much for writing that blog. What I wanted was to display the PDF invoice on the screen automatically in addition to the PDF attachment.
I think I have found a solution - a mapped network drive and then the HYPERLINK function brings it up.
so with code above...