Click here to Skip to main content
15,903,362 members
Home / Discussions / C#
   

C#

 
GeneralRe: CD OPEN Pin
Anonymous26-Feb-04 9:09
Anonymous26-Feb-04 9:09 
GeneralTransact-SQL calls from within C# Pin
betterc26-Feb-04 7:59
betterc26-Feb-04 7:59 
GeneralRe: Transact-SQL calls from within C# Pin
Mazdak26-Feb-04 8:13
Mazdak26-Feb-04 8:13 
GeneralRe: Transact-SQL calls from within C# Pin
turbochimp26-Feb-04 8:39
turbochimp26-Feb-04 8:39 
GeneralRe: Transact-SQL calls from within C# Pin
betterc26-Feb-04 9:37
betterc26-Feb-04 9:37 
GeneralRe: Transact-SQL calls from within C# Pin
turbochimp26-Feb-04 10:03
turbochimp26-Feb-04 10:03 
GeneralRe: Transact-SQL calls from within C# Pin
betterc26-Feb-04 10:14
betterc26-Feb-04 10:14 
GeneralPrinting and DpiX/DpiY Pin
duncanmeech26-Feb-04 7:48
duncanmeech26-Feb-04 7:48 
Printing within C#/.NET seems pretty easy. At least it did until I tried to draw some objects with specific sizes.

During a print page event I try to draw a rectangle 1" x 1". I calculate the size as:

RectangleF r = new RectangleF( 0,0,g.DpiX,g.DpiY );

The rectangle is grossly over sized.

The DpiXY of the graphics is typically 600x600...seems right.

However, I do notice that the page units of the graphics are GraphicsUnit.Display which is not what I was expecting for a print event.

Transform of the Graphics is identity.

Any ideas ?

-Duncan


GeneralRe: Printing and DpiX/DpiY Pin
duncanmeech26-Feb-04 8:10
duncanmeech26-Feb-04 8:10 
GeneralDirectX Window Pin
SherKar26-Feb-04 6:23
SherKar26-Feb-04 6:23 
GeneralRe: DirectX Window Pin
Dave Kreskowiak26-Feb-04 8:37
mveDave Kreskowiak26-Feb-04 8:37 
GeneralRe: DirectX Window Pin
SherKar26-Feb-04 15:29
SherKar26-Feb-04 15:29 
GeneralRe: DirectX Window Pin
Dave Kreskowiak26-Feb-04 16:40
mveDave Kreskowiak26-Feb-04 16:40 
GeneralRe: DirectX Window Pin
SherKar27-Feb-04 3:15
SherKar27-Feb-04 3:15 
GeneralRe: DirectX Window Pin
Dave Kreskowiak27-Feb-04 4:02
mveDave Kreskowiak27-Feb-04 4:02 
GeneralRe: DirectX Window Pin
SherKar27-Feb-04 5:03
SherKar27-Feb-04 5:03 
GeneralRe: DirectX Window Pin
Dave Kreskowiak27-Feb-04 7:48
mveDave Kreskowiak27-Feb-04 7:48 
QuestionHow to count the running applications? Pin
yyf26-Feb-04 5:55
yyf26-Feb-04 5:55 
AnswerRe: How to count the running applications? Pin
SherKar26-Feb-04 6:19
SherKar26-Feb-04 6:19 
AnswerRe: How to count the running applications? Pin
Nick Parker26-Feb-04 6:56
protectorNick Parker26-Feb-04 6:56 
AnswerRe: How to count the running applications? Pin
turbochimp26-Feb-04 6:57
turbochimp26-Feb-04 6:57 
GeneralRe: How to count the running applications? Pin
yyf26-Feb-04 8:35
yyf26-Feb-04 8:35 
GeneralRe: How to count the running applications? Pin
Nick Parker26-Feb-04 8:45
protectorNick Parker26-Feb-04 8:45 
GeneralRe: How to count the running applications? Pin
yyf26-Feb-04 9:53
yyf26-Feb-04 9:53 
GeneralTreeView ToolTip Pin
Guinness4Strength26-Feb-04 4:40
Guinness4Strength26-Feb-04 4:40 

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.