Solved

QuickReport in DELPHI3

Posted on 1997-12-21
7
739 Views
Last Modified: 2013-11-22
So, the problem is that I just get "Printer selected is not
valid!" message! ;) You won't be right if you'll tell me to
adjuct my printer carefullier, for it's all ok with the adjuctements, but that QuickRep have started to throw out
such a message to me after I've done something to my program, but I still can't find what exactly... Nothing seems to be wrong! If you've experienced such a trouble, please answer _ASAP_, for it's VERY URGENT. You'll get LOTS'a points! :P

 Thanks in advance, Wizzard.
0
Comment
Question by:wizzard
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 3
  • 3
7 Comments
 
LVL 8

Expert Comment

by:ZifNab
ID: 1354342
Such question are really difficult to answer. But I have to ask, sorry, how do you select your printer and how do you configure it to QR. After what changing did this error occure?
0
 

Author Comment

by:wizzard
ID: 1354343
Well, I knew it WILL be hard, so, that's why the "price" is so HIGH! 8P Actually, I thought that all the main printer's options used in QR are Windows's native. And I'm right, if I've not gone
nuts... So, my printer is working Nice with the rest of the applications, including Delphi 3 too. All I know is that I've not changed any of QR's options concerning the Very PRINTING.
 But talking about your second question and continuing first I can only say, that I've got LOTS of Objects in that QR's Form, about 300! Maybe that's the problem, but is "Printer selected in not valid" the best QR could have answered? >:)
0
 
LVL 2

Accepted Solution

by:
mvz121697 earned 340 total points
ID: 1354344
Hello, wizzard,

The message is not coming from QR, it's coming from Delphi.
Copy PRINTERS.PAS from the Delphi\Source\Vcl directory into your project-dir, and look for the 'sInvalidPrinter' Exceptions.
Maybe you can find whats wrong when debugging this file.

 
0
Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 

Author Comment

by:wizzard
ID: 1354345
Ok, mvz, but the problem is that the Printer's Features worked just Nice with all my other applications made using the same DELPHI 3 version. But still I'll doubtlessly check that hint you
gave me! If it'll work, I'll give you an "A" grade for sure! :P
 Otherwise you'll get a lower one - "B", if someone will not give a better answer wile I'll check.
0
 
LVL 2

Expert Comment

by:mvz121697
ID: 1354346
I think you are using up all available resources with your QR.
When Delphi wants to create some more (in Tprinters.Setstate)
it can't allocate it.
(OK, the message's should have been something like:
"Can't allocate resources ... ")

0
 
LVL 2

Expert Comment

by:mvz121697
ID: 1354347
(With "message's" i meant the Exception message, which is generated.)
0
 

Author Comment

by:wizzard
ID: 1354348
Well, I've thought of that... But I was in doubt, for 32Mb and P166 should have worked... ;) Eh-khm... about 300 QRLabels are too much for DELPHI, I'll have to think of something else... :(

 I'll give you an excellent grade as I promised, for there's no other answer perhaps and all seems to be as I have thought recently. :-| So, I'll also give you my e-mail:   mers@mailbox.riga.lv for you could write if you'll get any other ideas.

   So long,
         WizzarD.
0

Featured Post

Enroll in June's Course of the Month

June’s Course of the Month is now available! Experts Exchange’s Premium Members, Team Accounts, and Qualified Experts have access to a complimentary course each month as part of their membership—an extra way to sharpen your skills and increase training.

Question has a verified solution.

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

This article explains how to create forms/units independent of other forms/units object names in a delphi project. Have you ever created a form for user input in a Delphi project and then had the need to have that same form in a other Delphi proj…
Creating an auto free TStringList The TStringList is a basic and frequently used object in Delphi. On many occasions, you may want to create a temporary list, process some items in the list and be done with the list. In such cases, you have to…
In this brief tutorial Pawel from AdRem Software explains how you can quickly find out which services are running on your network, or what are the IP addresses of servers responsible for each service. Software used is freeware NetCrunch Tools (https…
Add bar graphs to Access queries using Unicode block characters. Graphs appear on every record in the color you want. Give life to numbers. Hopes this gives you ideas on visualizing your data in new ways ~ Create a calculated field in a query: …

717 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