Solved

QuickReport in DELPHI3

Posted on 1997-12-21
7
731 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
Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

 

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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Filemaker 14 vs Delphi Embarcadero 7 186
delphi prevent click fast 2 189
Simple Delphi Question 9 83
Installshield for Embarcadero EX 10.1 Berlin 4 18
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…
Hello everybody This Article will show you how to validate number with TEdit control, What's the TEdit control? TEdit is a standard Windows edit control on a form, it allows to user to write, read and copy/paste single line of text. Usua…
This Micro Tutorial demonstrates using Microsoft Excel pivot tables, how to reverse engineer competitors' marketing strategies through backlinks.
Many functions in Excel can make decisions. The most simple of these is the IF function: it returns a value depending on whether a condition you describe is true or false. Once you get the hang of using the IF function, you will find it easier to us…

911 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

Need Help in Real-Time?

Connect with top rated Experts

16 Experts available now in Live!

Get 1:1 Help Now