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

is this Bug in print dialog?

edited November 2001 in General
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?

Comments

  • edited November 2001
    It works for us here. What version of RB are you using? RB 6.03 is our
    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


  • edited November 2001
    I ve RB 6.02 and i ve a default printer instaled on my machine. It is not
    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)


  • edited November 2001

    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
  • edited November 2001
    There is both local and network drivers installed.
    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.
  • edited November 2001
    I ve both local and network printers installed on my computer
    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 :
  • edited November 2001

    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
This discussion has been closed.