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 Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Report field flip text 1

Status
Not open for further replies.
Joined
Sep 17, 2001
Messages
673
Location
US
Is there a way to flip the text upside down when printing a report. I have a FoxPro 8 report form with a text field.

The more I learn the more I find I know nothing.

Rob
 
Rob,

I doubt this is possible. I've never heard of any feature like that. The only thing I can think of is to create two graphics containing the information you want to show -- one normal and the other upside down. Place one on top of the other, and set their Print When condition to whatever your criterion is for flipping.

Mike


Mike Lewis
Edinburgh, Scotland

My Visual Foxpro web site: My Crystal Reports web site:
 
It seems to me, some time ago I read (possibly, here) that something like that would be possible in VFP9 (or was it about text and picture on command buttons?). Those who already downloaded the beta, have you seen anything like that in report writer?
 
I just looked at the Beta. It is a property of the label control. Also as Mike mentioned you can rotate an image. But I need to rotate a report label and/or field. I did not see any way to do this in fox 8 or 9. Perhaps I should have spoken up earlier so they could put this in Europa ...

The more I learn the more I find I know nothing.

Rob
 
You could use an 'upside down font'.

Rather like barcodes and soforth - they are available on the net.

You might need to reverse the actual text as well, I'm not sure if you need to make "Page 1" report as "1 egaP" if you follow me!

That's not difficult to code though:

Code:
Function BackWards
Parameters m.String
Private m.String,m.RetString,i
m.RetString = ""
For i = 1 to len(m.String)
  m.RetString = Substr(m.String,i,1)+m.RetString
Next
Return(m.RetString)

And if it's a multiline one, you'll need to take it to pieces line by line!

A good link is:

HTH

Regards

Griff
Keep [Smile]ing
 
Actually, I think you would need a 'mirrored' Upside Down font!

I just tested that one and it looks VERY wierd!

Regards

Griff
Keep [Smile]ing
 
Yes I need a font that the letter is rotated but not flipped left to right after rotation, if that makes senses. This seems to be the path I am going if I cannot send the output rotated to the printer.

The more I learn the more I find I know nothing.

Rob
 
Rob,
For the record, yes you can rotate text in a 9.0 report. While you can't do it in the desigher, you can have a listener do almost anything to the data.

Rick
 
Ok so here is what I have so far. We use a specific true type font called Garamond. We are printing out gift cards on a specially cut paper. The shape of the paper looks like an elongated house. Pointed on top and flat on left right and bottom of paper. Anyway our printer will only take the paper from the flat side not the pointed. So the objective is to rotate the font... (a little info...) So anyway the course I am taking so far is to edit our font with a shareware program at So far so good. The only other thing I have to do is set my printer properties to use 'soft fonts' rather than 'device fonts'. Custom fonts are not in the printer rom. So looks like with some good brainstorming help from my favorite forum I am on the path to glory. Thanks all!

The more I learn the more I find I know nothing.

Rob
 
Rob,

The only other thing I have to do is set my printer properties to use 'soft fonts' rather than 'device fonts'. Custom fonts are not in the printer rom.

Does that shareware editor you mentioned work with TrueType fonts? If so, the issue of "soft fonts" won't be relevant. Windows will simply send the font to the printer.

Mike


Mike Lewis
Edinburgh, Scotland

My Visual Foxpro web site: My Crystal Reports web site:
 
It is a true type font but when I save the after hacking it using a font editor, the printer output looks different than what appears on the screen. Only after setting the printer to use soft fonts will the printer output match the screen output.

The more I learn the more I find I know nothing.

Rob
 
Rob,

, the printer output looks different than what appears on the screen.

That suggests there is somethine wrong with your font-hacking program.

Have you tried searching for a free or shareware version of an existing upside-down font?

Mike


Mike Lewis
Edinburgh, Scotland

My Visual Foxpro web site: My Crystal Reports web site:
 
Rob,

I should have read your previous message more carefully before I posted. You are saying that the upside-down font works, but only if you set the printer to recognise soft fonts, which presumably you know how to do. Is that right?

If so, then you have presumably solved the problem. I was thinking you were saying there was something wrong with the font because it looked different on the screen, but of course that would obviously be the case if the printer was trying to use resident fonts.

Sorry about the confusion.

Mike


Mike Lewis
Edinburgh, Scotland

My Visual Foxpro web site: My Crystal Reports web site:
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top