Solved

QuickReport in DELPHI3

Posted on 1997-12-21
7
735 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
  • 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
Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

 

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

Active Directory Webinar

We all know we need to protect and secure our privileges, but where to start? Join Experts Exchange and ManageEngine on Tuesday, April 11, 2017 10:00 AM PDT to learn how to track and secure privileged users in Active Directory.

Question has a verified solution.

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

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…
Have you ever had your Delphi form/application just hanging while waiting for data to load? This is the article to read if you want to learn some things about adding threads for data loading in the background. First, I'll setup a general applica…
This video shows how to quickly and easily add an email signature for all users on Exchange 2016. The resulting signature is applied on a server level by Exchange Online. The email signature template has been downloaded from: www.mail-signatures…

820 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