|
-
Jun 15th, 2001, 09:25 AM
#1
Thread Starter
Hyperactive Member
RichTexBox
hi,
I have 6 rich text box'es. In all of them are inserted text and ole objects. How to print all data from these rich text box'es like this:
"My text"
richtextbox1 content
"My text"
richtextbox2 content
richtextbox3 content
richtextbox4 content
richtextbox5 content
richtextbox6 content
I suggest to copy richtextbox1 content to memmory and then paste to new richtextbox, then copy other richtextbox's content and then paste.
Any idies?
-
Jun 15th, 2001, 09:50 AM
#2
Frenzied Member
Your idea is the easiest. There are (MORE COMPLICATED) ways dealing with GDC and Bliting, but../
VB Code:
Dim MemVar As String
MemVar = RichTextBox1.TextRTF
RichTextBox1.TextRTF = RichTextBox1.TextRTF & RichTextBox2.TextRTF
RichTextBox1.TextRTF = RichTextBox1.TextRTF & RichTextBox3.TextRTF
RichTextBox1.TextRTF = RichTextBox1.TextRTF & RichTextBox4.TextRTF
RichTextBox1.TextRTF = RichTextBox1.TextRTF & RichTextBox5.TextRTF
RichTextBox1.TextRTF = RichTextBox1.TextRTF & RichTextBox6.TextRTF
RichTextBox1.SelLength = 0
RichTextBox1.SelPrint (Printer.hDC)
RichTextBox1.TextRTF = MemVar
MicroBasic
Dragon Shadow Trainer
There is no good or evil in the world...only programmers and fools .
-
Jun 15th, 2001, 02:54 PM
#3
Thread Starter
Hyperactive Member
This works only with plain text. With ole object it not works...
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|