Click here to Skip to main content
15,922,419 members
Home / Discussions / C#
   

C#

 
GeneralRe: telnet server in c# Pin
Abhishek Sur1-Jan-10 9:58
professionalAbhishek Sur1-Jan-10 9:58 
GeneralRe: telnet server in c# Pin
Abhijit Jana1-Jan-10 21:28
professionalAbhijit Jana1-Jan-10 21:28 
AnswerRe: telnet server in c# Pin
rjs1 420-Jan-10 16:57
rjs1 420-Jan-10 16:57 
Question[Message Deleted] Pin
THE SK1-Jan-10 5:34
THE SK1-Jan-10 5:34 
AnswerRe: How to catch RequestValidationException Pin
AhsanS1-Jan-10 5:43
AhsanS1-Jan-10 5:43 
AnswerRe: [Message Deleted] Pin
Abhijit Jana1-Jan-10 9:41
professionalAbhijit Jana1-Jan-10 9:41 
Questionsp.net c# search function? add friend function? Pin
go90901-Jan-10 4:34
go90901-Jan-10 4:34 
GeneralRe: sp.net c# search function? add friend function? Pin
harold aptroot1-Jan-10 4:52
harold aptroot1-Jan-10 4:52 
QuestionShortened version of setting and getting properties Pin
Brendan Vogt1-Jan-10 3:50
Brendan Vogt1-Jan-10 3:50 
AnswerRe: Shortened version of setting and getting properties Pin
N a v a n e e t h1-Jan-10 4:02
N a v a n e e t h1-Jan-10 4:02 
GeneralRe: Shortened version of setting and getting properties Pin
Brendan Vogt1-Jan-10 9:29
Brendan Vogt1-Jan-10 9:29 
AnswerRe: Shortened version of setting and getting properties Pin
DaveyM691-Jan-10 5:14
professionalDaveyM691-Jan-10 5:14 
QuestionAXmediaplayer under Vis2008 Pin
electriac1-Jan-10 3:36
electriac1-Jan-10 3:36 
AnswerRe: AXmediaplayer under Vis2008 Pin
electriac1-Jan-10 4:38
electriac1-Jan-10 4:38 
Questionreporting issue Pin
mjawadkhatri1-Jan-10 0:19
mjawadkhatri1-Jan-10 0:19 
QuestionI have a problem setting paper size for printing a page Pin
Alex Manolescu31-Dec-09 23:10
Alex Manolescu31-Dec-09 23:10 
Hello again,
my problem is: I have a printPreviewDialog control and I want to print: a bitmap (dimensions: 650x500, as a background), and some dynamic text (added afther the bitmap, to be visible).
My application is working perfect, but I experience a wierd thing: I want to set my printPreviewDialog to print on A4 paper size.

I've configure this as below:
PrintDocument pd = new PrintDocument();
            pd.DocumentName = "Doc1";
            pd.PrintPage += new PrintPageEventHandler(pd_PrintPage);
            pd.DefaultPageSettings.PaperSize = new PaperSize("PaperA4", 826, 1169);
            
            printPreviewDialog1.Document = pd;




On pd_PrintPage method I've write the code of what I want to print.
Now the wierd thing: when I start the app and open the printPreviewDialog, it seems ok! Paper size = A4, all is right!
But when printing the paper size is Letter!!!!!!! Only 90% of my print document is printed! It seems the page I want to print is to big for A4 size!

Why is that? I'm missing something? How can I right configure this for A4 paper size?

Cheer's,
Alex Manolescu.
AnswerRe: I have a problem setting paper size for printing a page Pin
Mohammad Motealleh1-Jan-10 2:38
Mohammad Motealleh1-Jan-10 2:38 
GeneralRe: I have a problem setting paper size for printing a page Pin
Alex Manolescu1-Jan-10 6:59
Alex Manolescu1-Jan-10 6:59 
QuestionUser Control Question - Changing Location and Size Pin
Roger Wright31-Dec-09 21:34
professionalRoger Wright31-Dec-09 21:34 
AnswerRe: User Control Question - Changing Location and Size Pin
Rob Philpott31-Dec-09 22:26
Rob Philpott31-Dec-09 22:26 
GeneralRe: User Control Question - Changing Location and Size Pin
Roger Wright1-Jan-10 4:36
professionalRoger Wright1-Jan-10 4:36 
QuestionRe: User Control Question - Changing Location and Size Pin
Eric Dahlvang31-Dec-09 23:01
Eric Dahlvang31-Dec-09 23:01 
AnswerRe: User Control Question - Changing Location and Size Pin
Roger Wright1-Jan-10 4:33
professionalRoger Wright1-Jan-10 4:33 
GeneralRe: User Control Question - Changing Location and Size Pin
DaveyM691-Jan-10 5:10
professionalDaveyM691-Jan-10 5:10 
GeneralRe: User Control Question - Changing Location and Size Pin
Roger Wright1-Jan-10 22:06
professionalRoger Wright1-Jan-10 22:06 

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.