| | |
Replicating Screen textbox.text to defined printed area
Please support our VB.NET advertiser: Intel Parallel Studio Home
![]() |
•
•
Join Date: May 2004
Posts: 16
Reputation:
Solved Threads: 0
I have an app that requires text which is typed into a text box which is then placed in an access database, later retrieved then printed in a defined area
the problem is that on the screen near the end of the 1st line when the user types the word "word" and there is not enough room, the textbox places the word on the next line which leaves psuedo spaces on the line above
the user sees this:
This is sample demo of what happens when There is not enough room for the xxx
word which has just been typed
xxx is the psuedo spaces that are not in the text string
So when it is printed in the defined area I get this:
This is sample demo of what happens when There is not enough room for the wor
d which has just been typed
I have a max length for the text which is determined by the number of characters allowed for the line, eg the max number ends at wor
How do I get the printing to replicate what the user sees, the defined space for printing is fixed by number of char per line (using fixed space font Courier New or Lucida Console) and a defined number of rows of print
Don't forget that the text box has a limited number of char, and therefore each time this happens the text when printed exceeds the defined area
Can I retrieve the text from the database and place it in a container & print the container with the text, and how do I limit the defined area of the screen container for the text to match the defined print area
Any help or suggestions most appreciated
the problem is that on the screen near the end of the 1st line when the user types the word "word" and there is not enough room, the textbox places the word on the next line which leaves psuedo spaces on the line above
the user sees this:
This is sample demo of what happens when There is not enough room for the xxx
word which has just been typed
xxx is the psuedo spaces that are not in the text string
So when it is printed in the defined area I get this:
This is sample demo of what happens when There is not enough room for the wor
d which has just been typed
I have a max length for the text which is determined by the number of characters allowed for the line, eg the max number ends at wor
How do I get the printing to replicate what the user sees, the defined space for printing is fixed by number of char per line (using fixed space font Courier New or Lucida Console) and a defined number of rows of print
Don't forget that the text box has a limited number of char, and therefore each time this happens the text when printed exceeds the defined area
Can I retrieve the text from the database and place it in a container & print the container with the text, and how do I limit the defined area of the screen container for the text to match the defined print area
Any help or suggestions most appreciated
Last edited by x38class; Nov 13th, 2007 at 1:57 am. Reason: spelling error
![]() |
Similar Threads
- textbox.text not showing up (VB.NET)
- .:: URGENT Help : Touch Screen Project (Visual Basic 4 / 5 / 6)
- help for auto complete text box (ASP.NET)
- passing parameter to Store Procedure in SqlDataAdapter (VB.NET)
- on-screen keyboard (Pascal and Delphi)
- View text as smaller (Web Browsers)
- How to send text to a text file using j2me through http connection? (Java)
- Store Bluetooth remote address to a text file (C++)
- colored text (C++)
Other Threads in the VB.NET Forum
- Previous Thread: PictureBox Changing colors
- Next Thread: Plz Help me very urgent
| Thread Tools | Search this Thread |
Tag cloud for VB.NET
.net 2005 2008 access account application arithmetic array arrays basic bing button buttons c# center check checkbox code combobox component convert crystalreport data database datagrid datagridview date design dissertation dissertations dropdownlist excel fade file-dialog ftp generatetags google gridview hardcopy images inline input insert intel internet listview mobile monitor ms net networking objects output passingparameters picturebox picturebox1 plugin port print printing problem problemwithinstallation project remove save searchbox searchvb.net select serial server shutdown soap sorting survey table tcp temperature text textbox timer toolbox trim update updown user validation vb vb.net vb.netformclosing()eventpictureboxmessagebox vb2008 vbnet view visual visualbasic visualbasic.net visualstudio visualstudio2008 web winforms wpf





