473,493 Members | 4,147 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

How to print a RichTextBox or Any thing with a horizontal lines?

7 New Member
Hi,

I am into a trouble since 1 week and unable to find the solution from any community or site. I have created a small program that i want to print along with horizontal lines (like a notebook lined paper) . I have each line with 3 mixed fonts randomly generated so i have used RichTextBox control. everything is working fine.

Now i want to know how do i add a line into the RichTextBox or How do i Print along with Lines. the purpose is to take a printout along with lines.

If it is not possible what should i do to take print out along with lines?

I have tried to implement PDF file and tried to process with it but i was unable.




Regards,
Kaushal
Jun 10 '08 #1
3 1451
Plater
7,872 Recognized Expert Expert
How about a whole line of -? or _?
Or just set the font to Underline?
Jun 10 '08 #2
r035198x
13,262 MVP
Perhaps you are using a wrong control.
@.NET Experts
Isn't there a control that displays HTML?
Jun 10 '08 #3
Plater
7,872 Recognized Expert Expert
Perhaps you are using a wrong control.
@.NET Experts
Isn't there a control that displays HTML?
The webbrowser control does. But it's sketchy. Its a wrapped ActiveX instance of IE.
Jun 10 '08 #4

Sign in to post your reply or Sign up for a free account.

Similar topics

1
3845
by: Thomas Kehl | last post by:
Hi! I have a RichTextBox. I set the Property RightMargin of this Box to a value, that i will not show the horizontal scrollbar. Now, the RichTextBox Wrap the Lines automatically. Now I would...
2
2686
by: JRB | last post by:
I have a thread adding lines of text to a richtextbox on my windows form about every 1 second. I want the last line of text to always be visible, which it is until the box gets filled up. The last...
1
2059
by: Rachel Suddeth | last post by:
I would like to load a file to the .Rtf property of a RichTextBox, and then set the containing form (if possible, depending on screen resolution) to the smallest width that will not cause the...
10
11599
by: D Steward | last post by:
I can't seem to add a newline (/n) to get a richtextbox control to display text on successive lines. The text that I type is overwritten. How do I remedy this My example richTextBox->Multiline...
1
1526
by: Sam | last post by:
I need some help...pleas Can someone tell me how, using the richtextbox's Lines\StringArray property, I can add text, line after individual line, at run time, to a richtextbox I have search all of...
3
3071
by: vooose | last post by:
Consider a RichTextBox which is say 200 pixels wide and you do: richTextBox.WordWrap = false; richTextBox.Rtf = <lots of text> Assume the width of the rendered text is wider than 200 pixels so...
6
2229
by: mike w. | last post by:
I'm trying to get a char when a user right cliks in a RichTextBox, but I keep geting "An unhandled exception of type 'System.NullReferenceException' occurred in system.windows.forms.dll ...
9
4835
by: James Wong | last post by:
Hi, I use the RichTextBox in my program. It will use different language in this RichTextBox (chinese and english characters), and it set the "DualFont" and use different fonts. By the way, how...
4
1715
by: kaushalgajjar | last post by:
Hi, I am into a trouble since 1 week and unable to find the solution from any community or site. I have created a small program that i want to print along with horizontal lines (like a notebook...
0
7119
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
6989
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
7195
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
1
6873
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
7367
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
4579
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
3088
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
1400
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
0
285
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.