Click here to Skip to main content
15,878,231 members
Home / Discussions / C#
   

C#

 
GeneralRe: How to determine exe file size from it's process? Pin
Doan Quynh7-May-07 14:55
Doan Quynh7-May-07 14:55 
GeneralRe: How to determine exe file size from it's process? Pin
Dave Kreskowiak7-May-07 17:42
mveDave Kreskowiak7-May-07 17:42 
QuestionHow to place write to memory rather than hard-disk? Pin
Khoramdin7-May-07 4:34
Khoramdin7-May-07 4:34 
AnswerRe: How to place write to memory rather than hard-disk? Pin
Tarakeshwar Reddy7-May-07 5:10
professionalTarakeshwar Reddy7-May-07 5:10 
QuestionRe: How to place write to memory rather than hard-disk? Pin
Khoramdin7-May-07 7:57
Khoramdin7-May-07 7:57 
AnswerRe: How to place write to memory rather than hard-disk? Pin
Tarakeshwar Reddy7-May-07 9:48
professionalTarakeshwar Reddy7-May-07 9:48 
QuestionPrinting GDI Drawing objects Pin
free_soul4247-May-07 4:25
free_soul4247-May-07 4:25 
AnswerRe: Printing GDI Drawing objects Pin
User 24629919-May-07 1:59
professionalUser 24629919-May-07 1:59 
get size of your drawing. create a bitmap using, then get graphics from the bitmap. Now use that graphics object to draw your objects. After finishing drawing objects, copy image to PrintPage event's
argument's graphics object.

Bitmap bmp=new Bitmap(width,height);<br />
//Now create graphics from this bmp<br />
Graphics g=Graphics.FromImage(bmp);<br />
//draw you objects to this graphics object<br />
//g.DrawRectangle(..)<br />
//finish drawing<br />
<br />
Graphics gr=e.Graphics; //e is PrintPageEventArgs object<br />
//int x,y; declare these two variables at class level so that every time you raise PrintPage event they are available with previous values<br />
//x=y=0; initialize before calling<br />
//Loop to draw all image page by page<br />
RectangleF rf=new RectangleF(0,0,printPageWidth, printPageHeight);<br />
gr.DrawImage(bmp,rf);<br />
//now add width and height of rectangle to start<br />
// to get next page x +=printPageWidth<br />
e.HasMorePages=true; //this will cause the print event handler to be called again<br />


Sorry i'm not very legible. But hope you will get an idea.

Aman Tur

modified 9-Jul-22 21:01pm.

QuestionC# and java Pin
Askalo7-May-07 4:12
Askalo7-May-07 4:12 
AnswerRe: C# and java Pin
Judah Gabriel Himango7-May-07 4:20
sponsorJudah Gabriel Himango7-May-07 4:20 
AnswerRe: C# and java Pin
Luc Pattyn7-May-07 6:42
sitebuilderLuc Pattyn7-May-07 6:42 
NewsRe: C# and java Pin
xuyennk7-May-07 7:59
xuyennk7-May-07 7:59 
AnswerRe: comparing multiples values Pin
szukuro7-May-07 4:13
szukuro7-May-07 4:13 
Questionerer Pin
Paramhans Dubey7-May-07 3:11
professionalParamhans Dubey7-May-07 3:11 
Questioncustom control Pin
D2raghu7-May-07 2:04
D2raghu7-May-07 2:04 
Questioncustom control Pin
D2raghu7-May-07 1:34
D2raghu7-May-07 1:34 
AnswerRe: custom control Pin
Judah Gabriel Himango7-May-07 4:03
sponsorJudah Gabriel Himango7-May-07 4:03 
QuestionPivotTable in C# Pin
phantanagu7-May-07 1:27
phantanagu7-May-07 1:27 
AnswerRe: PivotTable in C# Pin
Seishin#7-May-07 2:44
Seishin#7-May-07 2:44 
QuestionTab Navigation Pin
Geetankit7-May-07 1:08
Geetankit7-May-07 1:08 
AnswerRe: Tab Navigation Pin
Christian Graus7-May-07 1:25
protectorChristian Graus7-May-07 1:25 
Questioncrystal report with Access Pin
merwa6-May-07 23:55
merwa6-May-07 23:55 
AnswerRe: crystal report with Access Pin
Judah Gabriel Himango7-May-07 3:58
sponsorJudah Gabriel Himango7-May-07 3:58 
QuestionDataGridView Pin
sayed836-May-07 23:45
sayed836-May-07 23:45 
AnswerRe: DataGridView Pin
Ch_Shahzad iqbal6-May-07 23:54
Ch_Shahzad iqbal6-May-07 23:54 

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.