Home General
New Blog Posts: Merging Reports - Part 1 and Part 2

Refresh to enviroment, i.e. new printer

edited April 2002 in General
How can I refresh the printer names in default PrinterSetup dialog? (RB
6.03)
During a program session if new printer is installed or deleted the
PrinterSetup
Dialog doesn't reflect the changes.
I mention that I already find a solution by publishing a new method in
TppPrinterSetup(unit ppPrintr.pas) :

procedure TppPrinterSetup.RefreshPrinterNames;
begin
ppPrinters.Refresh;
end;

but this mean I made my code dependent of this release...
Are the any "buid in" methods for refreshing printer names to reflect the
environment changing?

Thanks,
Dan E. Mincu

Comments

  • edited April 2002
    The method described below start causing me problems(cannot call some
    methods) with some reports because
    I cannot recompile the raCodMod.dcu. (error :compile with a diffrent version
    of ppClass,ppComm...)

    Where can I find the source for raCodMod to be able to recompile this unit?
    Thanks,
    Dan E. Mincu

This discussion has been closed.