(Have moved this topic from business objects forums)
Hi Gents,
Firstly I hope am I posting in the right place.
My Company recently upgrade our Jiwa Financial software package and part of this package includes a new version of Crystal Reports viewer, install folder says "BusinessObjects Enterprise 11"
Previously when we generated a report with the older viewer it automatically printed based on the printer setup from our program settings
The new version however does not, i have been in contact with Jiwa and they have stated its a change to the new viewer and they cannot help.
So essentially I'm looking to find a way to suppress the printer selection dialog box
I have hunted around and I found the following code for the report and printer generation.
<Resources>
<Printers>
<Printer Key="1" Default="False">
<LogicalName>Default</LogicalName>
<DeviceName>infotec 2122 tray 2</DeviceName>
<DriverName>winspool</DriverName>
<Port>Ne02:</Port>
</Printer>
<Printer Default="True" Key="k2"><LogicalName>InvoicePrinter</LogicalName><DeviceName>AL-C1100 (Front counter)</DeviceName><DriverName>winspool</DriverName><Port>Ne05:</Port></Printer></Printers>
</Resources>
<SalesOrderReports LastKey="7">
<ShipAndBill>
<Report Key="7">
<Name>Tax Invoice (Office)</Name><TradingCategory>Any</TradingCategory>
<Path>J:\JiwaShared\Reports</Path>
<File>NS_SALES INVOICE OFFICE.RPT</File>
<Type>Invoice</Type>
<LogicalPrinterName>InvoicePrinter,winspool,Ne05:,1,0,0,0,0</LogicalPrinterName>
<NumberOfCopies>1</NumberOfCopies>
<UseRange>False</UseRange>
<RangeType>Cubic</RangeType>
<MinRange>0</MinRange>
<MaxRange>0</MaxRange>
<BackorderStatus>Any</BackorderStatus>
</Report>
<Report Key="2">
<Name>Tax Invoice</Name>
<TradingCategory>Any</TradingCategory>
<Path>J:\JiwaShared\Reports</Path>
<File>NS_Sales Invoice.rpt</File>
<Type>Invoice</Type>
<LogicalPrinterName>InvoicePrinter</LogicalPrinterName>
<NumberOfCopies>1</NumberOfCopies>
<UseRange>False</UseRange>
<RangeType/>
<MinRange>0</MinRange>
<MaxRange>0</MaxRange>
<BackorderStatus>Any</BackorderStatus>
</Report>
<Report Key="1">
<Name>Picking Slip</Name>
<TradingCategory>Any</TradingCategory>
<Path>J:\JiwaShared\Reports</Path>
<File>NS_PICKING SLIP.RPT</File>
<Type>Picking Sheet</Type>
<LogicalPrinterName>InvoicePrinter</LogicalPrinterName>
<NumberOfCopies>1</NumberOfCopies>
<UseRange>False</UseRange>
<RangeType/>
<MinRange>0</MinRange>
<MaxRange>0</MaxRange>
<BackorderStatus>Any</BackorderStatus>
</Report>
</ShipAndBill>
Is there anything I can do in this code that may allow me to just use the printer settings rather then asking for a dialog box to select the printer each time?
Thanks in advance
Robin