.NET Tutorials, Forums, Interview Questions And Answers
Welcome :Guest
Sign In
Register
 
Win Surprise Gifts!!!
Congratulations!!!


Top 5 Contributors of the Month
MarieAdela
Imran Ghani
Post New Web Links

PageSetupDialog does not keep PaperSize

Posted By:      Posted Date: April 10, 2011    Points: 0   Category :Windows Application
 

 

I have a solution in C# and I open PageSetupDialog. No matter what paper size I choose after I close the PageSetupDialog in PageSettings the PaperSize is the default one for the printer. Is this a bug? Can I do something besides creating my own PageSetupDialog?

 

Thanks




View Complete Post


More Related Resource Links

I cant adjust e.pagesetting.papersize

  

In my project there are three options for papersize...

 

first A4

second A5

other: custom...

I set up this  value for A4 option in PrintDoc... like this

if radiobutton_a4.checked=true then

W = 826
H = 1169

 

text to here (for w and h)

text2 to here

end if

 

I tried this one for second option:

if radiobutton_a4.checked=true then

W = 826 / 2
H = 1169 / 2

landscape=true

end if

 

It doesnt not change pagesetting, only printble area changehed and texts are messed up.

How i set up papersize in my project unuse pagesetupdialog?

 

 

 

 

 


Categories: 
ASP.NetWindows Application  .NET Framework  C#  VB.Net  ADO.Net  
Sql Server  SharePoint  Silverlight  Others  All   

Hall of Fame    Twitter   Terms of Service    Privacy Policy    Contact Us    Archives   Tell A Friend