Click here to Skip to main content
15,913,467 members
Home / Discussions / C#
   

C#

 
GeneralRe: Rotate printing Pin
Luc Pattyn22-Apr-09 0:31
sitebuilderLuc Pattyn22-Apr-09 0:31 
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 
Hi Luc,

All good points.

You are right about the rectangle. I added the remarks so that you could more see what coordinates is supposed to be passed in. That is all handled by other methods Typo - sorry, should have read taken more care and yes, it is supposed to be a RectangleF.

I think I am now close to a solution. After spending all day on it, the light went off in the head and I now think I understand what I am doing. Partly in thanks to your previous posts.

I am working on increasing the rtf (same as you have suggested) by manipulating it directly. The edit box provides a handle to push the output into a DC. I have the edit box into a loop getting setting edit.SelectionStart=i, edit.SelectionLength=1 and increasing the edit.SelectionFont by an as yet undetermined factor. Everything else will be an adaption of more or less the like the sample code you kindly provided yesterday. I will look into the viewscale command. I am still finding my way around C# a bit.

The office laser printer is 600dpi. The Label printer is 191dpi or 203dpi depending on model. The labels themselves are those 2*3 inch or so labels you find stuck onto packets of fresh meat and the like and can be fairly simple to quite complex depending on whether they contain a barcode, Useby dates, net weights various descriptions in various sizes of the product, contents and tags. The differing label elements have their own methods and looked good when printed directly to the printer DC. But then the device contexts used in the rich text stuffed it all up. Even then I was totally oblivious to the pixelation problems until I finally started testing on the label printer. On the Laser, they were not perfect, but were good enough to put on a salable item. Out of the label printer, they look like someone just used a fine felt tip pen and dotted all the numbers.

The RTF is generated in our backoffice program and loaded into the scales database using a WYSIWYG'ish editor. It is proper RTF (open-able in wordpad) it that is what you wanted to know.

-David.
GeneralRe: Rotate printing Pin
Luc Pattyn23-Apr-09 2:44
sitebuilderLuc Pattyn23-Apr-09 2:44 
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 

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.