Quantcast
Viewing all articles
Browse latest Browse all 72043

while posting Packing slip -- Cannot render the report to the screen when running in non-client mode

Cannot render the report to the screen when running in non-client mode (for example, in batch or in IL). Change the print destination to a location other than the screen. For example, a printer, file, or email.

here is my logic please update me thanks in advance

AxdSalesPackingSlip SalesPackingSlip = new AxdSalesPackingSlip();
AxdEntity_SalesParmTable SalesParmTable = new AxdEntity_SalesParmTable();
SalesParmTable.SalesName = "Pelican Wholesales";
SalesParmTable.SalesId = orderId;
SalesParmTable.DeliveryName = "Pelican Wholesales";
SalesParmTable.CustAccount = "903742";
SalesParmTable.DlvMode = "11";
SalesParmTable.InvoiceAccount = "903742";
SalesParmTable.CurrencyCode = "USD";
SalesParmTable.TransdateSpecified = true;
SalesParmTable.ParmId = "000232_205";
SalesParmTable.InventSiteId = "1";
SalesParmTable.Ordering = AxdEnum_DocumentStatus.PackingSlip;

AxdEntity_SalesShippingStat SalesShippingStat = new AxdEntity_SalesShippingStat();
SalesShippingStat.Quantity = 3;
SalesShippingStat.SalesId = orderId;

SalesParmTable.SalesShippingStat = new AxdEntity_SalesShippingStat[] { SalesShippingStat };
AxdEntity_SalesParmLine SalesParmLine = new AxdEntity_SalesParmLine();
SalesParmLine.DeliveryName = "Pelican Wholesales";
SalesParmLine.LineNum = 1;
SalesParmLine.LineNumSpecified = true;
SalesParmLine.ItemId = "taskId";
SalesParmLine.LineAmount = 31;
SalesParmLine.CustAccount = "903742";
SalesParmLine.InvoiceAccount = "903742";
SalesParmLine.OrigSalesId = orderId;
SalesParmLine.DlvMode = "10";

SalesParmLine.InventTransId = "00172220_068";

SalesParmLine.PackingUnitQty = 1;
SalesParmLine.PackingUnitQtySpecified = true;
SalesParmLine.ParmId = "000232_205";
SalesParmLine.LineAmountSpecified = true;
SalesParmLine.DeliverNow = 1;
SalesParmLine.DeliverNowSpecified = true;
SalesParmLine.InventNow = 1;

SalesParmTable.SalesParmLine = new AxdEntity_SalesParmLine[] { SalesParmLine };

SalesPackingSlip.SalesParmTable = new AxdEntity_SalesParmTable[] { SalesParmTable };


CallContext callContext = new CallContext();
callContext.Company = "ceu";


SalesPackingSlipServiceClient proxy = new SalesPackingSlipServiceClient();

EntityKey[] entityKey = proxy.create(callContext, SalesPackingSlip);

if (entityKey.Length > 0)
{
return true;
}
return false;


Viewing all articles
Browse latest Browse all 72043

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>