Printing Incorrectly Opens 'Start Appliction' when disabled

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

Moderator: Technical Support Team

Printing Incorrectly Opens 'Start Appliction' when disabled

Postby 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);
BlackIceDEVMODE.DisableStartApplication(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.DisableGroupFile(iDevModeID);
BlackIceDEVMODE.SaveBlackIceDEVMODE(csConverterName, iDevModeID);
...
if not VarIsEmpty(ExcelApp) then
try
for I := 0 to clWorksheets.Count - 1 do
begin
if clWorkSheets.Checked[I] then
ExcelApp.Workbooks[1].Worksheets.Item[clWorkSheets.Items.Strings[I]].PrintOut;
end;
finally

end;

Your assistance is sincerely appreciated.
mnrroux
 
Posts: 1
Joined: Tue Aug 17, 2010 8:17 pm

Re: Printing Incorrectly Opens 'Start Appliction' when disabled

Postby TechnicalSupportTeam » Thu Aug 19, 2010 3:51 am

Hello,

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).
TechnicalSupportTeam
 
Posts: 1005
Joined: Sat Mar 20, 2004 11:50 am


Return to Imaging Toolkits



Who is online

Users browsing this forum: No registered users and 3 guests

cron