Similar Threads:
1.Using ClipBoard With Rich Text Box
I find the use of the ClipBoard in conjunction with a Rich Text Box to
be elusive.
If I use the following instruction to perform a Copy function it will
paste properly into the same or another Rich Text Box and MS Word.
But, it won't paste into Notepad (or another text editor), and the
ClipBoard Viewer reports, "ClipBook Viewer cannot display the
information in its current format."
Clipboard.SetText rtxtDoc.SelRTF, vbCFRTF
On the other hand if I use the following instruction to do the Copy it
pastes into all locations and is displayed in the ClipBoard Viewer
but, naturally, all the rich formatting is lost. That is, it pastes
as plain text.
Clipboard.SetText rtxtDoc.SelText
If I use Ctrl-C to do the copy it works properly under all conditions.
How do I Copy to the ClipBoard from a Rich Text Box such that it works
under all conditions like Ctrl-C?
jim
using VB5
2.Rich Text Box - Pasting
I'm using the Rich Text Box control because I want to allow the user to use
Bold font, Italics, underlines etc. However, I would like to prevent the
user from changing the font and font size. At the moment the user an Paste
in some text by doing Ctrl+V which can have a mixture of fonts.
Is is possible without seeing any flickering on the screen to be able to set
the font and font size of whatever is pasted in to be the font and size I
require?
Thanks
Chris
3.Printing Rich Text from Rich Text Box v6.0
This is supposed to work but it doesn't:
RichTextBox.SelPrint (Printer.hDC)
Yes, I've initialized the printer. Yes, I've experimented
with selecting none, all and some of the rich text. Yes,
I've made a simple experimental program to see if the
problem was coming from elsewhere.
As soon as the command to print the rich text executes it
creates a printer error that crashes SPOOLSV.EXE requiring
a reboot to get the printers back. I've tried this to
different printers (parallel & USB) and while the sequence
of errors is a bit different, all wind up with the same
final result of crashing SPOOLSV.EXE
No problem printing the "plain" text from the rich text
box--no problem printing the rich text encoding (.textRTF)-
-no problem printing anything else by other methods to the
4 different printers on this system.
Printer to be used for this function is an HP Laserjet
(parallel connection). Other sections of my program have
no problem controlling the printer to include duplexing,
text justification, envelopes, etc.
It seems senseless for me to have to write code to print
actual rich text coding when the function is supposed to
be built-in!!!!!
No, I don't want to output this to Word. It is for form
letters in my database (NOT a commercial database--I don't
like them as their verification and security are
lacking). I have no problem printing the letterhead (text
& graphics) portion of the letter through other means--I
just want the Rich Text to print like it is supposed to
print!
EXTREMELY FRUSTRATED.
Thanks!!!
4.Formatting Text in Rich Text Box Control
I have a rich textbox control and a long string of characters that I
will assign to it's .text property. How can I bold some characters and
apply italics to others?
5.Remote control excel - copy range of cells to clipboard for pasting into a text form
I have written an application that remotely controls Microsoft Excel
2000 from VB .NET
I can successfully update cells, formulas etc. I can also select a
range of cells on the spreadsheet from Excel.
The one problem I am having is actually getting Excel to copy the
cells to the clipboard for repasting into Notepad.
Whenever I attempt to do the copy I end up with a new worksheet which
is NOT what I want.
The last piece is that when closing down the program I will want to
clear the clipboard as well before telling Excel to exit.
Does anyone have any ideas on how I can automate this? Ideas are
appreciated. Sample code is even more appreciated.
~Jamie N
6. Embedding file in Rich Text Box control
7. Set Rich Text Box Control Margin
8. Left and Right margine in Rich Text Box control