Click here to Skip to main content
15,889,096 members
Home / Discussions / C#
   

C#

 
GeneralRe: Rotate printing Pin
damichab21-Apr-09 17:12
damichab21-Apr-09 17:12 
GeneralRe: Rotate printing Pin
Luc Pattyn21-Apr-09 17:42
sitebuilderLuc Pattyn21-Apr-09 17:42 
GeneralRe: Rotate printing Pin
damichab21-Apr-09 17:50
damichab21-Apr-09 17:50 
GeneralRe: Rotate printing Pin
Luc Pattyn21-Apr-09 18:02
sitebuilderLuc Pattyn21-Apr-09 18:02 
GeneralRe: Rotate printing Pin
damichab21-Apr-09 19:15
damichab21-Apr-09 19:15 
GeneralRe: Rotate printing Pin
damichab21-Apr-09 19:18
damichab21-Apr-09 19:18 
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 
Thanks again for all your kind words Smile | :) ...

I am really struggling here with a real prospect of not having a job to goto on Monday and I really appreciate the time you are taking with me. This is my first C# project. I was previously programming in Borland Builder C++. If you have ever use Borland Builder, you might appreciate why I am keen to make a success of this project, least I might be asked to go back to Borland Builder.

By now you would have read my secondary post to the one you replied to. Yes DrawLabel(Artist) would probably would have made a better comment. Artist (the facilitator of drawing I guess) is the Graphics object used for the drawing.

I understand the concept of matching the bitmap resolution to the printer resolution. That is what I thought I had done with the line
bitmap = new Bitmap(width * (int) e.Graphics.DpiX, height * (int) e.Graphics.DpiY);

Obviously I am mistaken in thinking that multiplying the desired inches by the e.Graphics DPI's is doing the trick.

The office printer is 600dpi, and for the moment at least, I am happy to use that to get this up and running. e.Graphics.DpiX and Y certainly returns 600 when hovered over.

As for the code being different, I tried to take onboard your suggestions. Smile | :) I also tried to streamline it a bit to get to the root cause of the problem.

Getting the bitmaps dpi is something I was experimenting with. I thought that maybe I should be using it somewhere.

Something that I do not understand also; the line
bitmap.SetResolution(bitMapDpiX, bitMapDpiY);

gives the same result as not having it. So the bitmap resolution of 96 is used as the default resolution (obviously); Why then if I multiple the bitmap dimentions by 2:
bitmap = new Bitmap(width * (int) e.Graphics.DpiX * 2, height * (int) e.Graphics.DpiY * 2);

should I not also have to multiply the resolution by 2 such that
bitmap.SetResolution(bitMapDpiX * 2, bitMapDpiY * 2);

Doing so makes the resulting image significantly smaller.

-David.
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 
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 

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.