Wrox Programmer Forums
Go Back   Wrox Programmer Forums > Visual Basic > VB 6 Visual Basic 6 > Pro VB 6
|
Pro VB 6 For advanced Visual Basic coders working in version 6 (not .NET). Beginning-level questions will be redirected to other forums, including Beginning VB 6.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Pro VB 6 section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old February 5th, 2004, 08:31 PM
Registered User
 
Join Date: Jul 2003
Posts: 6
Thanks: 0
Thanked 0 Times in 0 Posts
Default Rich Text Files -Output on Landscape on 8.5 x 11

I need to save a file in .rtf format but in landscape. I am able to create the .rtf file and to save it but don't know how to create the .rtf so that the output will print landscape (ie. 90 degree rotation) on an 8.5 x 11 paper.

 
Old February 6th, 2004, 11:56 AM
Friend of Wrox
 
Join Date: Jun 2003
Posts: 101
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to jlick
Default

I don't know how helpful this is, but I created a simple RTF file in MS-Word, and then looked at it. I found the following in some of the formatting:

\paperw15840\paperh12240

15840 is 1440 * 11
12240 is 1440 * 8.5

A twip is a unit of measurement that is 1440 per inch. I would expect that paperw is paper width, and paperh is paper height. And that the number is the number of twips.

I don't know enough about RTF to know exactly where this plugs into the formatting. I also don't know if it is truely part of RTF. I took the same RTF document and opened it in Word Pad. Word Pad did not support the paperw and paperh.

None of this information may be useful to you if you are using a stock API for creating RTF files.

John R Lick
JohnRLick@hotmail.com
 
Old February 6th, 2004, 12:24 PM
Friend of Wrox
 
Join Date: Jun 2003
Posts: 101
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to jlick
Default

You can search the microsoft web page for "RTF Specification", and it will give you the verion 1.7 spec for RTF. This defines more than you probably want to know about RTF. Again this will only be helpful if you have control of the code that actually writes the file.

John R Lick
JohnRLick@hotmail.com
 
Old February 9th, 2004, 10:06 AM
Registered User
 
Join Date: Jul 2003
Posts: 6
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Thanks for the advice. I also found a description "The_RTF_Cookbook" in search.cpan.org, and tried some examples and they worked.

 
Old February 17th, 2004, 12:14 PM
Authorized User
 
Join Date: Jun 2003
Posts: 77
Thanks: 0
Thanked 0 Times in 0 Posts
Default

I'm curios: do you print the rtf file from your app?

defiant
 
Old February 18th, 2004, 12:06 PM
Registered User
 
Join Date: Jul 2003
Posts: 6
Thanks: 0
Thanked 0 Times in 0 Posts
Default

regarding printing from my app.
So far I've figured out that I'll create an .rtf file from my app, and then pop that file up using a shell command and Word. The user will then decide what to do with the report.






Similar Threads
Thread Thread Starter Forum Replies Last Post
Rich Text Features austinf Pro JSP 1 December 20th, 2006 03:47 AM
Rich Text Boxes speedlearner Pro VB 6 2 July 2nd, 2006 09:02 AM
rich text editor anshul Pro PHP 4 April 6th, 2005 09:24 AM
Rich Text Box spike010101 Pro VB 6 1 September 29th, 2004 02:37 AM
Rich Text Editor PC User Access 0 June 5th, 2004 04:04 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.