is this Bug in print dialog?
print dilog uses that code for geting printer type and printer port.
if (FPrinter.PrinterInfo <> nil) then
begin
lblPrinterTypeDesc.Caption := String(FPrinter.PrinterInfo.Port);
lblPrinterWhereDesc.Caption := String(FPrinter.PrinterInfo.Device);
end
else
begin
lblPrinterTypeDesc.Caption := '';
lblPrinterWhereDesc.Caption := '';
end;
but it retrieves wrong info. word print dialog retrieves right info about
printers installed but not ReportBuilder is this a bug?
if (FPrinter.PrinterInfo <> nil) then
begin
lblPrinterTypeDesc.Caption := String(FPrinter.PrinterInfo.Port);
lblPrinterWhereDesc.Caption := String(FPrinter.PrinterInfo.Device);
end
else
begin
lblPrinterTypeDesc.Caption := '';
lblPrinterWhereDesc.Caption := '';
end;
but it retrieves wrong info. word print dialog retrieves right info about
printers installed but not ReportBuilder is this a bug?
This discussion has been closed.
Comments
latest version available. Do you have a default printer installed on the
machine? If you do, then make sure you have the correct and latest printer
driver installed.
Cheers,
Jim Bennett
Digital Metaphors
http://www.digital-metaphors.com
info@digital-metaphors.com
about printer driver i think couse other applications like Word, Excell
retrieves correct info about printer. I ve 4 printers instaled on my machine
it retrieves Type = Printer name, Port = ' ' (none)
Need more info:
1. Are the printers local or network?
2. OS and Delphi version.
3. Specific examples of what is displayed by Word, Excel vs. what is
displayed by RB.
Best regards,
Nard Moseley
Digital Metaphors
www.digital-metaphors.com
OS = Windows2000 Profesional. (All updates are made)
Delphi Versiyon = 6.0 (Update pack installed)
Examples
Local Printer (Default): Name = IBM Proprinter
Word says :
Status : Idle
Type = IBM Proprinter
Where = LPT1:
RB says:
Type = IBM Proprinter
Where =
Network Printer : Name = HP on Cahide
Word says :
Status : Printing 1 documents waiting
Type = Hp Deskjet 1120C
Where = \\cahide\Hp
RB says:
Type = HP on Cahide
Where =
RB retrieves printer name for Type and nothing for Where.
My os is Win2000 (all updates are made)
Using Delphi 6 update pack1.
Here is some examples
Printer : IBM Proprinter (Default)
Word - Excel says
Type : IBM Proprinter
Port : LPT1
RB says
Type : IBM Proprinter
Port :
Printer : \\Cahide\HP
Word - Excel says
Type : HP Deskjet 1120C
Port : \\Cahide\HP
RB says
Type : \\Cahide\HP
Port :
Printer : \\Ali\HP
Word - Excel says
Type : HP Deskjet 690C
Port : \\Ali\HP
RB says
Type : \\Ali\HP
Port :
Looks like on Win9x the port is listed and on WinNT/2K it is not.
We'll have to research it for a future release...
Best regards,
Nard Moseley
Digital Metaphors
www.digital-metaphors.com