borderAndreaVB free resources for Visual Basic developersborder

borderAndreaVB Visual Basic and VB.NET source code resources - Copyright © 1999-2007 Andrea Tincaniborder

AndreaVB | Forum | News | Downloads | Register | Help | Member List | Statistics | Search | PM | Profile

Print This Topic
Previous Topic (printing RichTextBox Formatted text)Next Topic (Print method is not avaliable) New Topic New Poll Post Reply
AndreaVB Forum : Printing : vb file print
Poster Message
srivaths
Level: Guest


icon vb file print

I am doing a project in which the reports are generated to a file.  This txt file has to be printed with page breaks.   Please helf me out in this.  

10-01-2004 at 04:45 PM
| Quote Reply
stickleprojects
Level: Moderator


Registered: 09-09-2002
Posts: 891
icon Re: vb file print

Hi,
Text files do not support page-breaks, however, if you output the files as RTF files, then the /page RTF command will output a page-break.
I suggest searching the internet for the RTF fle format and commands, note, however, that the complete file-format is complicated.. maybe create the report, import it into word then save as RTF to see the commands you might need.

Hope this helps,
Kieron


____________________________
Build it better, faster, quicker, easier.. then fix it (non-offical MS mission statement)

15-01-2004 at 05:26 PM
View Profile Send Email to User Show All Posts | Quote Reply
steve_w
Level: Moderator


Registered: 18-04-2003
Posts: 1156
icon Re: vb file print

You could try putting in a formfeed character. Chr(12)


Steve

16-01-2004 at 11:32 AM
View Profile Send Email to User Show All Posts | Quote Reply
AndreaVB Forum : Printing : vb file print
Previous Topic (printing RichTextBox Formatted text)Next Topic (Print method is not avaliable) New Topic New Poll Post Reply
Surf To:


Not Logged In? Username: Password: Lost your password?
Partners: Download Actual Software | Free Software Download
borderAndreaVB free resources for Visual Basic developersborder

borderAndreaVB Visual Basic and VB.NET source code resources - Copyright © 1999-2007 Andrea Tincaniborder