[ ax2012 ] get print management settings from the PO


static void Job2(Args _args)
{

SRSPrintDestinationSettings mSRSPrintDestinationSettings;

FormLetterReport formletterReport;

PrintMgmtPrintSettingDetail settingDetail;

SRSPrintDestinationSettings destination;

VendPurchOrderJour jour;

PurchTable purchTable;

select jour where jour.purchid == 'Purch-000001636';

select purchTable where purchTable.purchid == "Purch-000001636";

formLetterReport = FormLetterReport::Construct(PrintMgmtDocumentType::PurchaseOrderRequisition);

formLetterReport.parmPrintType(PrintCopyOriginal::OriginalPrint);
formLetterReport.parmUsePrintMgmtDestinations(true);
formLetterReport.loadPrintSettings(jour,purchTable,

purchTable.languageId); // jour.LanguageId,

// jour.CollectionLetterNum);

while(formletterReport.moveNextPrintSetting())

{

settingDetail = FormLetterReport.getCurrentPrintSetting();

destination = settingDetail.parmPrintJobSettings();

info( strFmt("%1", destination.printMediumType()));

info( strFmt("%1", destination.emailTo()));

info( strFmt("%1", destination.numberOfCopies()));

mSRSPrintDestinationSettings = settingDetail.parmPrintJobSettings();
}
}
Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s