Go Back  Xtreme Visual Basic Talk > Legacy Visual Basic (VB 4/5/6) > General > Printing Multiple Text boxes with word wrap?


Reply
 
Thread Tools Display Modes
  #1  
Old 09-25-2003, 09:08 PM
reeves122 reeves122 is offline
Newcomer
 
Join Date: Sep 2003
Posts: 9
Unhappy Printing Multiple Text boxes with word wrap?


Hello everyone
Ive been working on this for a while now and ive had no luck. Im going to try to explain what i want to do to make it easier to help so bear with me please. Thanks. I want to print 6 text boxes in order on the printer with the printer dilog so the user can select a printer and such. The only problem is the text boxes have to be word wrapped (when printing) and I cant seem to figure out how to get 6 text boxes with word wrap to look good. Ive tried microsofts thread on richtextboxes but it will only print one box. This is what i have right now

On Error GoTo HellandBack



With CommonDialog1
.CancelError = True
.ShowPrinter

Printer.FontSize = 16
Printer.FontBold = True
Printer.Print "NAME:"
Printer.FontBold = False
Printer.Print nametxt.Text

Printer.Print ""

Printer.FontBold = True
Printer.Print "DATE:"
Printer.FontBold = False
Printer.Print datetxt.Text

Printer.Print ""

Printer.FontBold = True
Printer.Print Label5
Printer.FontBold = False
PrintRTF RichTextBox1, AnInch, AnInch, AnInch, AnInch

Printer.FontBold = True
Printer.Print Label6
Printer.FontBold = False
PrintRTF RichTextBox2, AnInch, AnInch, AnInch, AnInch

End With

Printer.EndDoc

HellandBack:
If Err.Number = cdlCancel Then Printer.KillDoc 'checks that the error was the one from the print dialog, then kills it


End Sub




Thanks so very much for any help as this is a school project and I need it tomorrow!
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
one Vscroll control multiple text boxes? fluxer API 7 08-07-2003 09:39 AM
Printing multiple rich text boxes jennifer General 1 07-11-2003 10:32 AM
Adding text boxes to MS word document skaranam Word, PowerPoint, Outlook, and Other Office Products 2 07-01-2003 12:48 PM
Adding text boxes MS Word document skaranam Interface and Graphics 1 07-03-2001 01:41 AM
saving and opening from multiple text boxes matthewbeetle General 2 06-08-2001 06:50 AM

Advertisement:





Free Publications
The ASP.NET 2.0 Anthology
101 Essential Tips, Tricks & Hacks - Free 156 Page Preview. Learn the most practical features and best approaches for ASP.NET.
subscribe
Programmers Heaven C# School Book -Free 338 Page eBook
The Programmers Heaven C# School book covers the .NET framework and the C# language.
subscribe
Build Your Own ASP.NET 3.5 Web Site Using C# & VB, 3rd Edition - Free 219 Page Preview!
This comprehensive step-by-step guide will help get your database-driven ASP.NET web site up and running in no time..
subscribe
 
 
-->