Solved

Quickrpt 2.0i setting the output bin in program

Posted on 1997-11-11
11
738 Views
Last Modified: 2012-06-22
How do I set the output bin in the program.

Like:
qrInvoice.PrinterSettings.OutputBin := ?;

I've tried a lot, but this one has me stumped... I don't have the source code so that might make it impossible?

Please no...
--Jason
0
Comment
Question by:loucks
  • 5
  • 5
11 Comments
 

Expert Comment

by:MAXcom
ID: 1350071
Hi,
There can be:
Auto
Casette
Envelope
EnvManual
First
LargeCapacity
LargeFormat
Last
Lower
Manual
Middle
SmallFormat
Tractor
Upper

Is this your report form you are editing? If so, there is an option in the Object Inspector - Printer Settings -Output Bin.
Hope this helps.
MAXcom
0
 

Author Comment

by:loucks
ID: 1350072
I need for the operator to be able to choose "Manual Feed", "Lower Tray" etc while RUNNING the form.  Thus, any answer which includes the object inspector will not work.

I need to know what goes in the ? above.
0
 
LVL 8

Expert Comment

by:ZifNab
ID: 1350073
What MaxCom said is correct : OutputBin property is of type TQRBin and TQRBin is a set of the ones MaxCom said. So if you want to use the Middle outputbin, you write :

 qrInvoice.PrinterSettings.OutputBin := Middle;

Though, if the printer doesn't support this property, the default (first) output bin will be used. LOOK OUT! : YOU CAN'T CHANGE OUTPUT BIN DURING A REPORT!!
0
Is Your AD Toolbox Looking More Like a Toybox?

Managing Active Directory can get complicated.  Often, the native tools for managing AD are just not up to the task.  The largest Active Directory installations in the world have relied on one tool to manage their day-to-day administration tasks: Hyena. Start your trial today.

 

Author Comment

by:loucks
ID: 1350074
if (fMainRepMenu.rgPrintTo.ItemIndex = 0) then
   qrLOInvoice.PrinterSettings.OutputBin := Upper;
if (fMainRepMenu.rgPrintTo.ItemIndex = 1) then
   qrLOInvoice.PrinterSettings.OutputBin := Lower;
if (fMainRepMenu.rgPrintTo.ItemIndex = 2) then
   qrLOInvoice.PrinterSettings.OutputBin := Manual;

This code does not compile.  What do I need to include to make it compile?  

The compiler returns a message stating: Undeclared Identifier: 'Upper'.  Undeclared Identifier: 'Lower'. etc...

If I try to give it a numeric value it says that integer is not compatible with TQRBin type.  
0
 
LVL 8

Expert Comment

by:ZifNab
ID: 1350075
Hi Loucks,

I see your problem, try it this way, it doesn't gives a compile error, but I can't try it out on a printer. Give me a sign if it works.

 qrLOInvoice.QRPrinter.OutputBin := Manual;

Have fun,
c.u. ZifNab;
0
 

Author Comment

by:loucks
ID: 1350076
nope, still doesn't work...   it seems like I should have to use another unit or something where TQRBin is declared, but I can't find anything like that...  Please keep trying
0
 
LVL 8

Expert Comment

by:ZifNab
ID: 1350077
Strange, it compiles when I use that code, here is the form code.
I'll try to find another solution.


unit Unit1;

interface

uses
  Windows, Messages, SysUtils, Classes, Graphics, Controls, Forms, Dialogs,
  StdCtrls, Buttons, ExtCtrls, quickrpt;

type
  TForm1 = class(TForm)
    QuickRep1: TQuickRep;
    BitBtn1: TBitBtn;
    procedure BitBtn1Click(Sender: TObject);
  private
    { Private declarations }
  public
    { Public declarations }
  end;

var
  Form1: TForm1;

implementation

{$R *.DFM}

procedure TForm1.BitBtn1Click(Sender: TObject);
begin
 Quickrep1.QRPrinter.OutputBin := Last;
end;

Have you put in fMainRepMenu the quickrpt unit?
end.

0
 

Author Comment

by:loucks
ID: 1350078
created a new project and tried it your way but it still didn't work...  I have "used" the quickrpt unit and still not working...

Do you have the full product from qusoft or just the standard?

I am using quickrpt 2.0i and delphi 3.0.

--Jason
0
 
LVL 8

Expert Comment

by:ZifNab
ID: 1350079
Hi Jason,

I'm using a registered version of QR 2.0i, with Delphi 2.0.

Try it like the first way :

 qrLOInvoice.PrinterSettings.OutputBin := Upper;

but add unit qrprntr to your unit.

Have fun! Hope this works,
c.u. ZifNab;

 

0
 

Author Comment

by:loucks
ID: 1350080
Guess what!?!!!  It worked!!!! That was exactly what I needed... 225 points goes to you for sticking with me...  Submit that as the answer and you will be graded A.  Thanks AGAIN!!!!

--Jason
0
 
LVL 8

Accepted Solution

by:
ZifNab earned 220 total points
ID: 1350081
Hi Jason,

Use following code example to change outputbin :

  qrLOInvoice.PrinterSettings.OutputBin := Upper;

BUT ADD ----> UNIT QRPRNTR <---- to your unit.

Well, it toke some time, but I'm glad it works now.

Have fun with your program,
c.u. ZifNab;

                         Have fun! Hope this works,
                         c.u. ZifNab;
0

Featured Post

Netscaler Common Configuration How To guides

If you use NetScaler you will want to see these guides. The NetScaler How To Guides show administrators how to get NetScaler up and configured by providing instructions for common scenarios and some not so common ones.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Delphi cmd execution 6 62
Magic Software info 18 132
How to convert memory stream to PDF file 6 62
Twebbrowser add css to the header 3 25
Introduction The parallel port is a very commonly known port, it was widely used to connect a printer to the PC, if you look at the back of your computer, for those who don't have newer computers, there will be a port with 25 pins and a small print…
Introduction I have seen many questions in this Delphi topic area where queries in threads are needed or suggested. I know bumped into a similar need. This article will address some of the concepts when dealing with a multithreaded delphi database…
In a recent question (https://www.experts-exchange.com/questions/28997919/Pagination-in-Adobe-Acrobat.html) here at Experts Exchange, a member asked how to add page numbers to a PDF file using Adobe Acrobat XI Pro. This short video Micro Tutorial sh…

825 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question