We help IT Professionals succeed at work.

Can a quick report label be printed with vertical text easily?

Mike Littlewood
Last Modified: 2016-09-17
I am trying to print some text in a TQRLabel vertically. Does anyone have an example of this?
Watch Question

This one is on us!
(Get your first solution completely free - no credit card required)

oops,  first line must be onPrint event of the label

procedure TForm1.QRLabel1Print(sender: TObject; var Value: String);
Mike LittlewoodEngineer


Excellent thanks.
Mike LittlewoodEngineer


A quick add on to this question bokist.
This solution works fine on screen but when I send it to the printer the text does not seem to stay vertical. Have you had this issue too?

Hi mike!

Unfortunately yes.
I have no explanation for this behaviour.
I find solution for this problem - little bit dirty - but it works.
Usually I have a button(btnReport) and two checkboxes(cbox_print, cbox_preview) on the main form.
In my solution I can print the report directly(without preview),
  or I can have preview -
but then I can print the report only in second step(NOT FROM PREVIEW !) - clicking on btnReport when cbox_Print is checked.
Here is my solution:

procedure TForm1.btnReportClick(Sender: TObject);
   Page_cnt : integer;
   Report_file : string;
     Application.CreateForm(TForm2, Form2);
     Report_file := 'c:\Reports\' + Form2.QuickRep1.ReportTitle + '.Qrp';
     Page_cnt := Form2.QuickRep1.QRPrinter.PageCount;
     if cbox_preview.checked   then  Form2.QuickRep1.Preview;
     if cbox_print.checked    then  Form2.QuickRep1.QRPrinter.PrintMetafileDirect(Report_file,1,Page_cnt);

I hope the explanation is not too confused, and you can get it work.

P.S. Excuse me on my poor English.

Almost forget - if you have better solution, please let me know.
Mike LittlewoodEngineer


Ok thanks bokist, I'll let you know if I come up with something a bit more elegant, but in the mean time I will tailor the code you have provided.
Mike LittlewoodEngineer


Just to let you know bokist, I am about to purchase Quick Reports 5 Pro.
This has standard components to work with rotated labels.
Marwan AlmukhProgrammer

I have tried it into delphi 10.1 with quick report 6, not working, the result is like attached pictures.
1.png - the result of quick report.
2.png - the needed one.the resultthe needed

Gain unlimited access to on-demand training courses with an Experts Exchange subscription.

Get Access
Why Experts Exchange?

Experts Exchange always has the answer, or at the least points me in the correct direction! It is like having another employee that is extremely experienced.

Jim Murphy
Programmer at Smart IT Solutions

When asked, what has been your best career decision?

Deciding to stick with EE.

Mohamed Asif
Technical Department Head

Being involved with EE helped me to grow personally and professionally.

Carl Webster
CTP, Sr Infrastructure Consultant
Empower Your Career
Did You Know?

We've partnered with two important charities to provide clean water and computer science education to those who need it most. READ MORE

Ask ANY Question

Connect with Certified Experts to gain insight and support on specific technology challenges including:

  • Troubleshooting
  • Research
  • Professional Opinions
Unlock the solution to this question.
Join our community and discover your potential

Experts Exchange is the only place where you can interact directly with leading experts in the technology field. Become a member today and access the collective knowledge of thousands of technology experts.

*This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.


Please enter a first name

Please enter a last name

8+ characters (letters, numbers, and a symbol)

By clicking, you agree to the Terms of Use and Privacy Policy.