REPORT.SAVEASPDF(206, 'C:\temp\'+STRSUBSTNO('Invoice No. %1.pdf',SalesInvHeader."No.")+'.pdf', SalesInvHeader); HYPERLINK('C:\temp\'+STRSUBSTNO('Invoice No. %1.pdf',SalesInvHeader."No.")+'.pdf'); //opens PDF on screen SalesInvHeader.SETRANGE("Posting Description",'Order ' + "No."); SalesInvHeader.FIND('-'); invno := SalesInvHeader."No."; Cust.SETRANGE("No.",SalesInvHeader."Sell-to Customer No."); Cust.FIND('-'); emailtoaddr := Cust."E-Mail"; Mail.NewMessage(emailtoaddr,emailccaddr,STRSUBSTNO('Invoice No. %1',SalesInvHeader."No."), 'Attached please find invoice ' + SalesInvHeader."No." +'.','\\'+Hostname+'\C$\temp\'+STRSUBSTNO ('Invoice No. %1.pdf',SalesInvHeader."No.")+'.pdf',true)
Comments
http://www.BiloBeauty.com
http://www.autismspeaks.org
Soren
http://gotcal.com
No PM,please use the forum. || May the <SOLVED>-attribute be in your title!
Thank you SNielsen - that explains why it works on the server PC but not from the RTC on the client's PC. Do you know what else I can use??
This is a 3-tier thread - not classic. I'm sorry I failed to mention that I am working with 3-tier but that is why I posted it under 3-tier.
Soren
http://gotcal.com
[Topic moved from 'NAV/Navision Classic Client' forum to 'NAV Three Tier' forum]
No PM,please use the forum. || May the <SOLVED>-attribute be in your title!