473,383 Members | 1,885 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,383 software developers and data experts.

Print Text Maintaining Tab Stops

I can locate tab stops in a RichTextBox but have not found a way to
maintain that positioning when I print. At the Knowledge Discovery
Keys Site (http://www.kdkeys.net/forums/3122/ShowPost.aspx) Baily
explains that character printing isn't really supported in VB .Net,
the TAB method does not apply. The DrawString method is used to send
strings to the printer. He notes a workaround is to write out the
content to a file (where the TAB method is sill supported) in the same
fashion as it would have been sent to the printer, and then stream
this to the printer.

I have tried this using his code attempting to take a simple text file
with some tabs, read it into a stream and then print - but the tabs
are gone. Appreciate a pointer to any code that might accomplish.

Ed
Nov 21 '05 #1
2 1914
Hi,

http://msdn.microsoft.com/library/de...ichTextBox.asp

Ken
-------------------
"Ed Bitzer" <ed******@yahoo.com> wrote in message
news:%2****************@TK2MSFTNGP14.phx.gbl...
I can locate tab stops in a RichTextBox but have not found a way to
maintain that positioning when I print. At the Knowledge Discovery
Keys Site (http://www.kdkeys.net/forums/3122/ShowPost.aspx) Baily
explains that character printing isn't really supported in VB .Net,
the TAB method does not apply. The DrawString method is used to send
strings to the printer. He notes a workaround is to write out the
content to a file (where the TAB method is sill supported) in the same
fashion as it would have been sent to the printer, and then stream
this to the printer.

I have tried this using his code attempting to take a simple text file
with some tabs, read it into a stream and then print - but the tabs
are gone. Appreciate a pointer to any code that might accomplish.

Ed

Nov 21 '05 #2
Ken,

Heavy.... looks like the answer but wonder if this old retired guy and
learn some new tricks. Thanks - I'll start studying

Ed

"Ken Tucker [MVP]" <vb***@bellsouth.net> wrote in message
news:uH**************@TK2MSFTNGP10.phx.gbl...
Hi,

http://msdn.microsoft.com/library/de...ichTextBox.asp

Ken
-------------------
"Ed Bitzer" <ed******@yahoo.com> wrote in message
news:%2****************@TK2MSFTNGP14.phx.gbl...
I can locate tab stops in a RichTextBox but have not found a way to
maintain that positioning when I print. At the Knowledge Discovery
Keys Site (http://www.kdkeys.net/forums/3122/ShowPost.aspx) Baily
explains that character printing isn't really supported in VB .Net,
the TAB method does not apply. The DrawString method is used to
send
strings to the printer. He notes a workaround is to write out the
content to a file (where the TAB method is sill supported) in the
same
fashion as it would have been sent to the printer, and then stream
this to the printer.

I have tried this using his code attempting to take a simple text
file
with some tabs, read it into a stream and then print - but the tabs
are gone. Appreciate a pointer to any code that might accomplish.

Ed

Nov 21 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

21
by: Steel | last post by:
Hi at all, I have a very long html page with many photo. Therefore the best to print this page is to print the some page as PDF. Therefore I maked a PDF file like my page to print best. I'ld want...
1
by: RK | last post by:
Our Application solution consists Web Service and 3 other C# class libraries. We added Trace Listener to the application and writing log information in all our components. Since multiple...
1
by: Mickey | last post by:
Hi, I have a script which works in both IE but is sluggish in Firefox. The script is a simple text scroller. It works perfectly in IE however in Firefox, the text scroll slower and eventually...
2
by: mordac | last post by:
Hello, I was wondering if I could get some opinions on how best to handle printing in a max heap data structure. Right now my heap struct looks as thus: typedef struct heapStruct { int*...
6
by: moondaddy | last post by:
I have an application where I need to print images where the size has been reduced down to a fraction of a thumbnail and the original image is several inches high and wide. We're using a special...
0
by: sanjay.hurryup | last post by:
I have a problem with printing . I want to print on a roll paper, a long list, should stop the paper whenever the printing stops. In normal case single paper is used even if it has less to print....
1
by: Xah Lee | last post by:
Text Processing with Emacs Lisp Xah Lee, 2007-10-29 This page gives a outline of how to use emacs lisp to do text processing, using a specific real-world problem as example. If you don't know...
3
by: rohitscripts | last post by:
hi everyone.. My web application contains a login module in which i need to maintain the session of the user 1) for an unlimited period if the user is using the website 2) for 30 minutes from the...
1
by: cryogeneric | last post by:
Hi, I'm writing an ASP application that can display PDF files in a frame. The user can save or download the PDF, but I need to know when they do this so I can add an activity record to my...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...

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.