Click here to Skip to main content
15,887,135 members
Home / Discussions / C#
   

C#

 
GeneralRe: Media Player control Pin
blackjack21505-Jun-08 5:04
blackjack21505-Jun-08 5:04 
GeneralRe: Media Player control Pin
Christian Graus5-Jun-08 5:13
protectorChristian Graus5-Jun-08 5:13 
GeneralRe: Media Player control Pin
blackjack21505-Jun-08 7:06
blackjack21505-Jun-08 7:06 
GeneralRe: Media Player control Pin
Anthony Mushrow5-Jun-08 7:33
professionalAnthony Mushrow5-Jun-08 7:33 
QuestionHow to launch another application Pin
KennyODell5-Jun-08 4:24
KennyODell5-Jun-08 4:24 
AnswerRe: How to launch another application Pin
Gareth H5-Jun-08 4:28
Gareth H5-Jun-08 4:28 
AnswerRe: How to launch another application Pin
DaveyM695-Jun-08 8:13
professionalDaveyM695-Jun-08 8:13 
QuestionPrint Pin
Kr_Chandan5-Jun-08 4:10
Kr_Chandan5-Jun-08 4:10 
Hi,

I am working on a windows application using C#.net. In my app I have to allow user to print report. Application should print record and each page must have 86 lines and each line consist of 134 characters. I have more then 86 records but its printing only 1 record. My code is :

PrintDialog printDialog;
PrintDocument printDocument;

printDialog.Document = printDocument;
printDocument.PrintPage += new PrintPageEventHandler(onPrintPage);


private void onPrintPage(object sender, PrintPageEventArgs e)
{
Graphics g = e.Graphics;
int x = e.MarginBounds.Left - 50;
int y = e.MarginBounds.Top - 50;
System.Drawing.Brush brush = new System.Drawing.SolidBrush(Color.Black);

try
{
g.DrawString(strPrint, new System.Drawing.Font("Courier New", 8, System.Drawing.FontStyle.Regular), brush, x, y);
}
catch (Exception ex)
{
}

In this method onPrintPage() we can find whether it has more pages or not but I am unable to solve this issue.

Can you please help me to find the solutions.

Best Regards,
Chandan Kumar

AnswerRe: Print Pin
leppie5-Jun-08 4:50
leppie5-Jun-08 4:50 
AnswerRe: Print Pin
Brady Kelly5-Jun-08 5:38
Brady Kelly5-Jun-08 5:38 
GeneralRe: Print Pin
Kr_Chandan5-Jun-08 19:09
Kr_Chandan5-Jun-08 19:09 
QuestionNMock expectations producing weird results Pin
N a v a n e e t h5-Jun-08 4:09
N a v a n e e t h5-Jun-08 4:09 
AnswerRe: NMock expectations producing weird results Pin
Judah Gabriel Himango5-Jun-08 5:06
sponsorJudah Gabriel Himango5-Jun-08 5:06 
GeneralRe: NMock expectations producing weird results Pin
N a v a n e e t h5-Jun-08 7:04
N a v a n e e t h5-Jun-08 7:04 
GeneralRe: NMock expectations producing weird results Pin
Judah Gabriel Himango5-Jun-08 7:13
sponsorJudah Gabriel Himango5-Jun-08 7:13 
GeneralRe: NMock expectations producing weird results Pin
N a v a n e e t h5-Jun-08 7:21
N a v a n e e t h5-Jun-08 7:21 
GeneralRe: NMock expectations producing weird results Pin
Judah Gabriel Himango6-Jun-08 6:45
sponsorJudah Gabriel Himango6-Jun-08 6:45 
GeneralRe: NMock expectations producing weird results Pin
N a v a n e e t h6-Jun-08 7:37
N a v a n e e t h6-Jun-08 7:37 
QuestionSuspending a process programmatically, How is that? Pin
LordCover5-Jun-08 3:21
LordCover5-Jun-08 3:21 
QuestionRe: Suspending a process programmatically, How is that? Pin
LordCover5-Jun-08 3:25
LordCover5-Jun-08 3:25 
AnswerRe: Suspending a process programmatically, How is that? Pin
CPallini5-Jun-08 3:29
mveCPallini5-Jun-08 3:29 
GeneralRe: Suspending a process programmatically, How is that? Pin
LordCover5-Jun-08 3:47
LordCover5-Jun-08 3:47 
AnswerRe: Suspending a process programmatically, How is that? Pin
Anthony Mushrow5-Jun-08 3:33
professionalAnthony Mushrow5-Jun-08 3:33 
GeneralRe: Suspending a process programmatically, How is that? Pin
LordCover5-Jun-08 4:50
LordCover5-Jun-08 4:50 
QuestionApplicationSettingBAse Issue Pin
AmithaRaghu5-Jun-08 2:46
AmithaRaghu5-Jun-08 2:46 

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.