Hi,
We installed windows 7 connected to a windows 2008 64 bit server and connected a HP2205DN network printer. For some reason I cannot print anymore and if I post directly a packing slip either through the SBS print server the output is distorted and not oke, if I print directly to the printer which has always been present I also do not get a print.
I get on both sides the message "Printer not installed" although they are there. Looking up the packing slip and then printing from the screen the packing slip works on both printers.
J.
===>
/// <remarks>
/// This method should be called in the print method of the report using the print
/// setting, directly before the call to the super method. If printing in batch mode,
/// exceptions will be thrown to indicate errors. If printing in client mode, errors
/// will be added to the infolog and false will be returned.
/// </remarks>
/// <exception cref="Exception::Error">
/// The AOS instance does not have access to the selected printer.
/// </exception>
/// <exception cref="Exception::Error">
/// The printer is not accessible.
/// </exception>
public boolean validatePrinterDestination()
{
boolean result = true;
// Handle validation errors uniquely based on the presence of a client
void handleValidationErrors(str _errorMessage)
{
if (xGlobal::hasClient())
{
// Client available so don't throw an exception so processing can continue
error(_errorMessage);
}
else
{
// In batch, throw an exception since it will continue to process
throw error(_errorMessage);
}
}
;
if (printJobSettings != null)
{
if (printJobSettings.getTarget() == PrintMedium::Printer
&& printJobSettings.requestedDeviceName() != printJobSettings.deviceName())
{
// Warn the user when the requested printer is not used
result = false;
if (!xGlobal::hasClient() && printJobSettings.requestedRunOn() == ClassRunMode::Client)
{
// The AOS does not have access to the selected printer
handleValidationErrors("@SYS118708");
}
else
{
// The printer is not installed on the Client / AOS any longer
handleValidationErrors("@SYS123696");
}
}
}
return result;
}