-
September 15th, 2010, 02:36 AM
#1
how to print rich textBox Formatted text
Hi,
I have some text in rich text box format in a table.The data is like
{\rtf1\ansi\ansicpg1252\deff0\deflang16393{\fonttbl{\f0\fnil\fcharset0 NSimSun;}{\f1\fnil\fcharset0 Microsoft Tai Le;}{\f2\fnil\fcharset0 MingLiU_HKSCS;}{\f3\fnil\fcharset0 Palace Script MT;}{\f4\fnil\fcharset0 Microsoft Sans Serif;}} {\colortbl ;\red0\green192\blue0;} \viewkind4\uc1\pard\cf1\b\f0\fs44 hello hi\par \lang1033\f1 hi i am fine\par \f2 about u?\lang16393\b0\i\f3\par \par \par \cf0\i0\f4\fs17\par }
Now,I want to print the data in corresponding format.can u please Help me.....
-
September 16th, 2010, 12:59 AM
#2
Re: how to print rich textBox Formatted text
I don't believe this is straightforward. this link may help you, in fact it may be more than you need.
http://www.codeproject.com/KB/printi...xDocument.aspx
Rob
-
Ohhhhh.... Old McDonald was dyslexic, E O I O EEEEEEEEEE.......
-
September 16th, 2010, 01:10 AM
#3
Re: how to print rich textBox Formatted text
Or, just save it as .RTB, and SHELL() the Print Command.
Windows can print it directly. (it may flash Wordpad for a second, though)
If you shell WP, you can hide it, and print using it.
-
September 16th, 2010, 06:25 AM
#4
Re: how to print rich textBox Formatted text
i know this ........
but,my problem is that i want to print this data at the end of page( like a NOTE in specified location.i
-
September 21st, 2010, 01:45 AM
#5
Re: how to print rich textBox Formatted text
I don't think this is easy. Elements in the main body of the RTF refer to identifiers, usually at the top of the RTF.
When you say you want to print it at the end of a page... In what format is the rest of the data on the page?
Please give all of the information, then it will be easier to provide an answer.
Rob
-
Ohhhhh.... Old McDonald was dyslexic, E O I O EEEEEEEEEE.......
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
|