Click here to Skip to main content
15,890,946 members
Home / Discussions / C#
   

C#

 
GeneralRe: Rotate printing Pin
damichab22-Apr-09 1:23
damichab22-Apr-09 1:23 
GeneralRe: Rotate printing Pin
Luc Pattyn22-Apr-09 2:08
sitebuilderLuc Pattyn22-Apr-09 2:08 
GeneralRe: Rotate printing Pin
damichab22-Apr-09 4:18
damichab22-Apr-09 4:18 
GeneralRe: Rotate printing Pin
Luc Pattyn22-Apr-09 5:36
sitebuilderLuc Pattyn22-Apr-09 5:36 
GeneralRe: Rotate printing Pin
damichab22-Apr-09 21:01
damichab22-Apr-09 21:01 
GeneralRe: Rotate printing Pin
Luc Pattyn23-Apr-09 1:19
sitebuilderLuc Pattyn23-Apr-09 1:19 
GeneralRe: Rotate printing Pin
damichab23-Apr-09 2:06
damichab23-Apr-09 2:06 
GeneralRe: Rotate printing Pin
Luc Pattyn23-Apr-09 2:44
sitebuilderLuc Pattyn23-Apr-09 2:44 
OK, the picture is getting clearer now. Thanks.

I am not sure about the viewscale command, I just browsed through the RTF specification looking for some general scaling command, I haven't actually used it.

FYI: RTF is just plain text, you can deal with it outside a RichTextBox and outside Word/Wordpad,
just read the text file as text (Notepad can do that), it is all ASCII, mostly commands, lots of backslashes, and pretty complex. One of the nice things is all font families to be used must be listed at the beginning of the RTF, and all font sizes are set with an \fs command where the parameter is in half-points.
Editing the fs commands may be easier and certainly lots faster than iterating through an RTF by selecting each individual letter rendered (which might result in a much larger file too).
You can take the RTF from RichTextBox.Rtf then modify it and assign it again to RTB.Rtf


Here is a - rather weird - idea that should work and may provide an emergency solution or not be acceptable at all:

- connect a second monitor to your PC, size does not matter much
- set its resolution to 200 dpi (you can choose what Windows thinks the resolution of a monitor is,
it always starts at a default of 96dpi although a lot of monitors nowadays are 120 dpi; it is
hidden in "Display Settings" under a couple of "Advanced" buttons and probably works in percents,
relative to 96 dpi, so try 200% for starters; your setting will eventually be reflected in the
Graphics.Dpix/Dpiy of your screen (BTW: I know of no way to get them set differently))
since content is texts + bar code, no images, it does not have to be exact I guess.
- create/modify app showing a form on that "high-res" monitor with an RTB at correct label size
- text should show as good as it can get on the label printer
- use Control.DrawToBitmap to get the bitmap

Smile | :)

Luc Pattyn [Forum Guidelines] [My Articles]

Avoiding unwanted divs (as in "articles needing approval") with the help of this FireFox add-in


GeneralRe: Rotate printing Pin
damichab23-Apr-09 3:31
damichab23-Apr-09 3:31 
GeneralRe: Rotate printing Pin
Luc Pattyn23-Apr-09 3:36
sitebuilderLuc Pattyn23-Apr-09 3:36 
GeneralRe: Rotate printing Pin
Luc Pattyn23-Apr-09 5:01
sitebuilderLuc Pattyn23-Apr-09 5:01 
GeneralRe: Rotate printing Pin
damichab22-Apr-09 21:15
damichab22-Apr-09 21:15 
QuestionWebBrowser.ScriptErrorsSuppressed = true and self signed certifcates Pin
jo H21-Apr-09 13:52
jo H21-Apr-09 13:52 
Questionanyone has any problem with Milestone 4 Cosmos? Pin
john231321-Apr-09 11:51
john231321-Apr-09 11:51 
AnswerRe: anyone has any problem with Milestone 4 Cosmos? Pin
Christian Graus21-Apr-09 14:04
protectorChristian Graus21-Apr-09 14:04 
Questionconvert time and minutes Pin
onetreeup21-Apr-09 8:58
onetreeup21-Apr-09 8:58 
AnswerRe: convert time and minutes Pin
PIEBALDconsult21-Apr-09 9:08
mvePIEBALDconsult21-Apr-09 9:08 
GeneralRe: convert time and minutes Pin
onetreeup21-Apr-09 9:21
onetreeup21-Apr-09 9:21 
AnswerRe: convert time and minutes Pin
Edwin Brunner21-Apr-09 9:23
Edwin Brunner21-Apr-09 9:23 
GeneralRe: convert time and minutes Pin
onetreeup21-Apr-09 9:36
onetreeup21-Apr-09 9:36 
GeneralRe: convert time and minutes Pin
Edwin Brunner21-Apr-09 9:50
Edwin Brunner21-Apr-09 9:50 
Questionhow to change property of form in an other started thread? Pin
Sajjad Izadi21-Apr-09 8:08
Sajjad Izadi21-Apr-09 8:08 
AnswerRe: how to change property of form in an other started thread? Pin
Henry Minute21-Apr-09 8:16
Henry Minute21-Apr-09 8:16 
GeneralRe: how to change property of form in an other started thread? [modified] Pin
Sajjad Izadi21-Apr-09 9:03
Sajjad Izadi21-Apr-09 9:03 
AnswerRe: how to change property of form in an other started thread? [modified] Pin
DaveyM6921-Apr-09 10:44
professionalDaveyM6921-Apr-09 10:44 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.