Solved

Preview and real printout is different, using QReport and a RichEdit field

Posted on 2004-08-13
12
322 Views
Last Modified: 2013-11-22
Hi Guys.

I have a RichEdit control, that I wish to print. I use QReport (Delphi 7). I've put it on a form, and put the data in the RichEdit control, then preview it, and looks great. When I print, however, it looks differnet. I think the main problem is that the spaces are of differenet length. So if I have two lines -

a         b
aaaaaab

Then the top b won't be aligned to the bottom one (even though on preview it looks fine). Any ideas what is causing this? what can i do?

Thanks,

R.
0
Comment
Question by:mertero
  • 5
  • 4
12 Comments
 
LVL 14

Expert Comment

by:DragonSlayer
ID: 11795052
One workaround would be to choose fonts that are monospaced (Courier, Lucida Console, Miriam Fixed, etc).



DragonSlayer.
0
 

Author Comment

by:mertero
ID: 11795103
Dragonslayer,

true, but the user can change his fonts in my application, so it doesn't help ;-(

R.
0
 
LVL 1

Expert Comment

by:Chadak
ID: 11796243
On what kind of printer are you trying to print? a post-script one or non-postscript one?
If it's on a Post-script one, does the font u are using really exist on your printer, or it is being substituted( which could cause your problem )
0
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.

 
LVL 14

Expert Comment

by:DragonSlayer
ID: 11797356
or separate a and b on different textlabels, align b to the right, hehe.
0
 

Author Comment

by:mertero
ID: 11798923
I'm using an HP printer, but this problem happens on my clients also, and I certainly can't make them change printers...

It has to stay a RichEdit, no use in putting textlabels - and this was just an example of course, real prints are more complicated.

R.
0
 
LVL 14

Expert Comment

by:DragonSlayer
ID: 11799373
in the case of a RichEdit, what about using Tab stops instead?
0
 

Author Comment

by:mertero
ID: 11799394
Dragon,

Tab stops is the same problem - because I can't "MAKE" the user do this. Is this a common problem? anyone noticed this too? seemed just like a bug in QReport ;-(

R.
0
 
LVL 14

Accepted Solution

by:
DragonSlayer earned 500 total points
ID: 11800551
It is not a bug. You can't really expect to align characters of unequal width this way. For a test, you can try zooming in and out, and u will see that even visually, they do not align well.
0
 

Author Comment

by:mertero
ID: 13363041
Dan,

I didn't get any answer that is satisfying to me. Can't I keep this Q alive? or get a refund?

Ron.
0
 

Author Comment

by:mertero
ID: 13383990
Dan,

Okay, I agree that DragonSlayer at least gave good comments and some good information. I gave him the points.

Thanks,

M.
0

Featured Post

ScreenConnect 6.0 Free Trial

Explore all the enhancements in one game-changing release, ScreenConnect 6.0, based on partner feedback. New features include a redesigned UI, app configurations and chat acknowledgement to improve customer engagement!

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
How to fill array with TArray.Create? 14 90
Delphi 2 59
delphi parse string to params 3 122
Tvertscrollbox like a whatsapp layout delete messages 1 16
Objective: - This article will help user in how to convert their numeric value become words. How to use 1. You can copy this code in your Unit as function 2. than you can perform your function by type this code The Code   (CODE) The Im…
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 tutorial gives a high-level tour of the interface of Marketo (a marketing automation tool to help businesses track and engage prospective customers and drive them to purchase). You will see the main areas including Marketing Activities, Design …
Finds all prime numbers in a range requested and places them in a public primes() array. I've demostrated a template size of 30 (2 * 3 * 5) but larger templates can be built such 210  (2 * 3 * 5 * 7) or 2310  (2 * 3 * 5 * 7 * 11). The larger templa…

772 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