Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 372
  • Last Modified:

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

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
mertero
Asked:
mertero
  • 5
  • 4
1 Solution
 
DragonSlayerCommented:
One workaround would be to choose fonts that are monospaced (Courier, Lucida Console, Miriam Fixed, etc).



DragonSlayer.
0
 
merteroAuthor Commented:
Dragonslayer,

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

R.
0
 
ChadakCommented:
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
Technology Partners: 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!

 
DragonSlayerCommented:
or separate a and b on different textlabels, align b to the right, hehe.
0
 
merteroAuthor Commented:
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
 
DragonSlayerCommented:
in the case of a RichEdit, what about using Tab stops instead?
0
 
merteroAuthor Commented:
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
 
DragonSlayerCommented:
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
 
merteroAuthor Commented:
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
 
merteroAuthor Commented:
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

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!

  • 5
  • 4
Tackle projects and never again get stuck behind a technical roadblock.
Join Now