Printing Incorrectly Opens 'Start Appliction' when disabled

Document Imaging SDK,
Image SDK,
Annotation SDK,
Cover Page Generator

Moderator: Technical Support Team

Post Reply
Posts: 1
Joined: Tue Aug 17, 2010 8:17 pm

Printing Incorrectly Opens 'Start Appliction' when disabled

Post by mnrroux » Tue Aug 17, 2010 8:25 pm

Hi there,

Our black ice printer opens our start application, even though we disabled it by code. When we inspect the printer preferences, it is disabled as well. However, executing a print function from within delphi It is using the same settings as when you would click 'Restore Defaults' and opens up the 'Start Application'.

BlackIceDEVMODE.SetApplicationPath('', iDevModeID);
sOutPutDir := BlackIceDEVMODE.GetOutPutDirectory(iDevModeID);
iFileFormat := BlackIceDEVMODE.GetFileFormat(iDevModeID);
if iFileFormat <> iFileType then
BlackIceDEVMODE.SetFileFormat(iFileType, iDevModeID);
BlackIceDEVMODE.SetFileGenerationMethod(ciExactFileName, iDevModeID);
BlackIceDEVMODE.SetOutPutDirectory(ExtractFilePath(Result), iDevModeID);
BlackIceDEVMODE.SetImageFileName(ExtractFileName(Result), iDevModeID);
BlackIceDEVMODE.SaveBlackIceDEVMODE(csConverterName, iDevModeID);
if not VarIsEmpty(ExcelApp) then
for I := 0 to clWorksheets.Count - 1 do
if clWorkSheets.Checked[I] then


Your assistance is sincerely appreciated.

Posts: 1005
Joined: Sat Mar 20, 2004 11:50 am

Re: Printing Incorrectly Opens 'Start Appliction' when disabled

Post by TechnicalSupportTeam » Thu Aug 19, 2010 3:51 am


Please clarify this issue. We want to be sure we understand your problem:

- If you open the printing preferences the start application feature is disabled at Start Application tab.
- If you open an excel document and print, the document will be printed correctly and the start application wont be started.
- But if you print from your Delphi sample the start application is opened after printing.

If the sentences above are correct your Delphi sample enables the start application option somewhere. Please check your source code.
Note: We cant see where your code loads the DEVMODE. You should loads the DEVMODE (using LoadBlackIceDEVMODE method) before setting the properties of the printer. After the properties were changed you should save the DEVMODE (SaveBlackIceDEVMODE) and release the memory (ReleaseBlackIceDEVMODE).

Post Reply