Quantcast
Channel: Sage 100
Viewing all articles
Browse latest Browse all 36993

Forum Post: Printing to Paperless Office when creating new Sales Order

$
0
0
Running Version 4.50.4.0 I have a PHP script which is currently creating a new Sales Order, and Quick prints it out at the end.  I'm trying to have it print using Paperless Office instead so that I can Print to PDF all and electronically send.  I've tried finding out how to accomplish this, but can't seem to figure it out.  Which object do I need to load to get this to work, and how do I accomplish it?  I've seen two posts that mention it, but neither have an answer that seems to work.  One says to do: oPaperless = oScript.NewObject("PL_FormCommon_ui", oSS, oPOOrderPrint.ncoPLCommon) retVAL = oPaperless.nSetValue("FormPrintUISelection$", "7") retVAL = oPOOrderPrint.nProcessReport("Print")   And the other one says the following should work:   retVal = oBusObj.GetValue("SalesOrderNo$", SONo) Set oSOPrint = oSession.AsObject(oSession.GetObject("SO_SalesOrde​rPrinting_rpt")) retVal = oSOPrint.SelectReportSetting("STANDARD") oSOPrint.QuickPrint = SONo Set oPaperless = oSession.AsObject(oSOPrint.coPLCommon) oPaperless'FormPrintUISelection="7" retVal = oSOPrint.ProcessReport("PRINT")   Any help would be appreciated.

Viewing all articles
Browse latest Browse all 36993

Trending Articles