Click here to Skip to main content
15,915,336 members
Home / Discussions / C#
   

C#

 
AnswerRe: Write file to HD and read directly = crach Pin
joon vh.28-Mar-07 3:41
joon vh.28-Mar-07 3:41 
GeneralRe: Write file to HD and read directly = crach Pin
Ollie198628-Mar-07 4:36
Ollie198628-Mar-07 4:36 
QuestionChanging Shape of the Controls C# Windows Pin
satsumatable28-Mar-07 2:45
satsumatable28-Mar-07 2:45 
AnswerRe: Changing Shape of the Controls C# Windows Pin
joon vh.28-Mar-07 3:42
joon vh.28-Mar-07 3:42 
Questioncustom events Pin
upadesh28-Mar-07 2:43
upadesh28-Mar-07 2:43 
AnswerRe: custom events Pin
Judah Gabriel Himango28-Mar-07 4:09
sponsorJudah Gabriel Himango28-Mar-07 4:09 
QuestionHow to use print preview for printing a selected part of the web page using C#.NET Pin
tirumal123128-Mar-07 2:09
tirumal123128-Mar-07 2:09 
AnswerRe: How to use print preview for printing a selected part of the web page using C#.NET Pin
netJP12L28-Mar-07 5:29
netJP12L28-Mar-07 5:29 
There are so many article on how to print you may take a look on them first atleast you will get an overall idea that may also narrow down your likelyhood requirements. Well i try to give you an idea.

PrintDocument is the most important object with that you may write whatever you want to print/printpreview.
e.g
public void printdocuemtn1_PrintPage(object sender, System.Drawing.Printing.PrintPageEventArgs e)
{
e.Graphics.DrawString("Hello World");
}
once you have what you want to print you can pass the printDocument object to the printpreviewDialog object i.e
PrintPreviewDialog ppdObj = new PrintPreviewDialog();
ppdObj.Document=docuement1;
ppdObj.showDialog();//to preview

if you want to print without displaying a preview then apply the print() method on the printDocument object.


Questionabout delegate and event Pin
upadesh28-Mar-07 2:05
upadesh28-Mar-07 2:05 
AnswerRe: about delegate and event Pin
Stefan Troschuetz28-Mar-07 2:18
Stefan Troschuetz28-Mar-07 2:18 
AnswerRe: about delegate and event Pin
rah_sin28-Mar-07 2:23
professionalrah_sin28-Mar-07 2:23 
AnswerRe: about delegate and event Pin
Elina Blank28-Mar-07 4:36
sitebuilderElina Blank28-Mar-07 4:36 
QuestionInherited permissions for a file or directory Pin
Alper Alaca28-Mar-07 2:04
Alper Alaca28-Mar-07 2:04 
AnswerRe: Inherited permissions for a file or directory Pin
Alper Alaca28-Mar-07 4:11
Alper Alaca28-Mar-07 4:11 
QuestionSend ArrayList to ( webMethod) - Web Service Pin
mm31028-Mar-07 1:59
mm31028-Mar-07 1:59 
QuestionIssue with NameValueCollection Pin
SakthiSurya28-Mar-07 1:15
SakthiSurya28-Mar-07 1:15 
AnswerRe: Issue with NameValueCollection Pin
Vikram A Punathambekar28-Mar-07 2:19
Vikram A Punathambekar28-Mar-07 2:19 
GeneralRe: Issue with NameValueCollection Pin
SakthiSurya28-Mar-07 2:28
SakthiSurya28-Mar-07 2:28 
GeneralRe: Issue with NameValueCollection Pin
joon vh.28-Mar-07 3:44
joon vh.28-Mar-07 3:44 
AnswerRe: Issue with NameValueCollection Pin
rah_sin28-Mar-07 2:40
professionalrah_sin28-Mar-07 2:40 
GeneralRe: Issue with NameValueCollection Pin
SakthiSurya28-Mar-07 18:27
SakthiSurya28-Mar-07 18:27 
QuestionHow to read Textfile FAST into memory and then read LINE Pin
error140828-Mar-07 0:52
error140828-Mar-07 0:52 
AnswerRe: How to read Textfile FAST into memory and then read LINE Pin
Pete O'Hanlon28-Mar-07 2:03
mvePete O'Hanlon28-Mar-07 2:03 
AnswerRe: How to read Textfile FAST into memory and then read LINE Pin
woudwijk28-Mar-07 5:18
woudwijk28-Mar-07 5:18 
QuestionAbout MDI applications Pin
Raheem MA28-Mar-07 0:49
Raheem MA28-Mar-07 0:49 

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.