Scaling Printed Text 
Author Message
 Scaling Printed Text

Hello,

Is there a way, when printing with VB, that I can scale/resize text in one
direction.

The exact application I'm thinking about is this.

I have written a class module for printing out reports in a tabular format.
But every now and then, the user is bound to submit pieces of text which are
slightly larger than the 'cell' will hold. Therefore, I would like to be
able to scale that particular text so it will fit within the 'cell'.

I could print that text in a smaller font size, but that's not really what
I'm looking for. I basically want to squash the text horizontally.

Any ideas...

TIA

Steven Palmer.



Sun, 25 Nov 2001 03:00:00 GMT  
 Scaling Printed Text
You could set a variable Squash = width of cell / width of text and, if
Squash is less than 1 then loop through the text string printing one
character at a time (with CrLf suppressed) and after each character move the
CurrentX value back by an amount equal to Squash * width of character just
printed. I've seen dafter things in my time ;-)

Mike


Quote:
> Hello,

> Is there a way, when printing with VB, that I can scale/resize text in one
> direction.

> The exact application I'm thinking about is this.

> I have written a class module for printing out reports in a tabular
format.
> But every now and then, the user is bound to submit pieces of text which
are
> slightly larger than the 'cell' will hold. Therefore, I would like to be
> able to scale that particular text so it will fit within the 'cell'.

> I could print that text in a smaller font size, but that's not really what
> I'm looking for. I basically want to squash the text horizontally.

> Any ideas...

> TIA

> Steven Palmer.



Tue, 27 Nov 2001 03:00:00 GMT  
 
 [ 2 post ] 

 Relevant Pages 

1. Scale prints in Access 97

2. PLEASE HELP: Scaling Forms for Printing

3. Scaling size of form while printing

4. The Richedit WYSIWYG printing has a scaling problem.

5. Printing jpeg files to scale

6. PLEASE HELP: Scaling Forms for Printing

7. Printing Gray-Scales on a color printer

8. Printing a Form with the ability to scale the size

9. Controlling printed grey scale of color BMPs?

10. scaling an image and then printing it - PLEASE HELP

11. The Richedit WYSIWYG printing has a scaling problem.

12. Scale printing from PC browser

 

 
Powered by phpBB® Forum Software