Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

VFP9 Report "Rotation of Text" 2

Status
Not open for further replies.

Asif Ali

IS-IT--Management
Jun 27, 2019
6
PK
I have VFP7 & VFP9 installed on my PC. Mostly I work on VFP7 because all my applications are there. But today I design a report in which I need a rotation text, so I designed it in VFP9. After building application (.exe) it is not showing rotation. It is opening it as VFP7.

This is calling my report from Designing Form
vfp9_controls_zbstyo.jpg

This is after Building Application
vfp7_controls_b4mot7.jpg


I think I am doing something wrong.
Please help.
 
 https://files.engineering.com/getfile.aspx?folder=b14e24e6-901b-4a03-b19d-662c33ba1f13&file=vfp9_controls.jpg
Hi Asif Ali,

the only thing you're doing wrong is using a VFP version that can't work with such reports.
Rotation of text was made available with VFP9s new reporting apps.

BUT!!!!!

in your case there isn't any text rotation needed. What you are trying to achieve is to rotate the complete report and THAT is done by changing the reports layout from PORTRAIT to LANDDSCAPE.
BTW, this can be done interactively within the reporting interface or programmatically.
Just do a little search for "VFP report landscape" and you will find lots of example on how to do it. You can start the search right here in TekTips as this has been asked for many times over the years and it can be done in VFP9 as well as in VFP7 :)

HTH

-Tom
 
Thankyou for reply Tom. Actually you can see in the Image Report Preview controls are changed in both the reports. It is actually a wrist band of width 1" and I am using Label. I need to rotate the text as it is showing in Image One. I think there is something to do with Environment Setting of report or something else.
 
It's difficult to know what you are doing wrong without knowing what you are actually doing. In general, the steps to show rotated text are as follows:

1. Go to the object's properties in the report designer.

2. Go to the Advanced tab.

4. Use the Angle control to specify the angle of rotation (normally 90 or 270 degrees).

As far as I know, this feature is only available in VPP 9 SP2. That is presumably the version you are using, otherwise you wouldn't have been able to get as far as you have.

Mike

__________________________________
Mike Lewis (Edinburgh, Scotland)

Visual FoxPro articles, tips and downloads
 
You have to provide the report apps with your EXE additional to the usual runtimes, also set _REPORTOUTPUT and _REPORTPREVIEW to the files and make the setting for reportbehavior 90.

Chriss
 
Thanks Chris It worked. I just set reportbehavior 90 and I got my result.
Also thanks Mike for support and reply.
 
Well, if you install your EXE on a computer without VFP, you'll see the report apps have to be present there, too. On your development computer they are known, but you have to think about that more general about all necessary VFP and C++ runtimes (as the VFP runtime is written in C++).


Chriss
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top