Changing Driver Default from BMP to TIFF

Raster-XChange SDK (all versions)
This Forum is for the use of Software Developers requiring help and assistance for Tracker Software's Raster-XChange Printer Drivers SDK (only).

Moderators: Tracker Support, TrackerSupp-Daniel, Chris - Tracker Supp, Vasyl-Tracker Dev Team, Sean - Tracker, Tracker Supp-Stefan, Ivan - Tracker Software

Post Reply
71SoCal
User
Posts: 35
Joined: Fri Jul 31, 2009 9:50 pm

Changing Driver Default from BMP to TIFF

Post by 71SoCal » Mon Jan 11, 2010 10:37 pm

When I install the Raster XChange driver, it defaults to BMP. How can I ideally, at installation time, or programmatically, change this to default to TIFF? Can it be done in the code snippet below?

bool TrackerTiffImageDriver::InitializeDriver()
{
RXC::IPrinterFactoryPtr factory(__uuidof(RXC::PrinterFactory));
printer_ = factory->Printer[L"", L""];
printer_->ProtectionKey = m_strRegKey;
printer_->ProtectionDevCode = m_strDevCode;

devMode_ = printer_->DevMode;
devMode_->Format = RXC::format_TIFF;
devMode_->FormatParameter[L"Image Type"] = L"BW:1";
devMode_->FormatParameter[L"Compression"] = L"CCITTFax4";
devMode_->PostPrintApplication = L"*";

return true;
}


Thanks for any help...

User avatar
Roman - Tracker Supp
Power User
Posts: 264
Joined: Sun Nov 21, 2004 3:19 pm

Re: Changing Driver Default from BMP to TIFF

Post by Roman - Tracker Supp » Tue Jan 12, 2010 8:34 am

I'm afraid it's impossible at the moment. The temporary printer created when you instantiate RXC::Printer object (through factory->Printer in the sample code) starts with hard-coded settings.
May I know why do you need this?
Tracker Software Products

Please ZIP any files uploaded to this forum or they will not be posted !
You may also use a RAR or 7Z archive format

71SoCal
User
Posts: 35
Joined: Fri Jul 31, 2009 9:50 pm

Re: Changing Driver Default from BMP to TIFF

Post by 71SoCal » Tue Jan 12, 2010 6:31 pm

We only want to print TIFF images from the Raster XChange product. With the code I showed in the previous post, we get a .bmp file output. We need it to be TIFF. How can we do this?

User avatar
Roman - Tracker Supp
Power User
Posts: 264
Joined: Sun Nov 21, 2004 3:19 pm

Re: Changing Driver Default from BMP to TIFF

Post by Roman - Tracker Supp » Thu Jan 14, 2010 9:20 am

Most probably you missed devMode_->Set() call. This actually applies your devmode to the printer.
Please see Raster-XChnage SDK help and C++ examples.
Tracker Software Products

Please ZIP any files uploaded to this forum or they will not be posted !
You may also use a RAR or 7Z archive format

Post Reply