Click here to Skip to main content
15,891,423 members
Home / Discussions / C#
   

C#

 
GeneralRe: Visual C# database? Pin
scandysmyle18-Jun-07 10:16
scandysmyle18-Jun-07 10:16 
QuestionHow to consume the web service if only WSDL file is exposed. Pin
AmarjeetSinghMatharu8-Jun-07 23:43
AmarjeetSinghMatharu8-Jun-07 23:43 
QuestionPoint in Polygon? Pin
Don Rolando8-Jun-07 23:35
Don Rolando8-Jun-07 23:35 
AnswerRe: Point in Polygon? Pin
Christian Graus8-Jun-07 23:46
protectorChristian Graus8-Jun-07 23:46 
GeneralRe: Point in Polygon? Pin
Don Rolando9-Jun-07 0:15
Don Rolando9-Jun-07 0:15 
AnswerRe: Point in Polygon? Pin
AikinX9-Jun-07 0:20
AikinX9-Jun-07 0:20 
GeneralRe: Point in Polygon? Pin
Don Rolando9-Jun-07 0:28
Don Rolando9-Jun-07 0:28 
Questionglitches in my generic printengine class! Pin
giddy_guitarist8-Jun-07 22:14
giddy_guitarist8-Jun-07 22:14 
hi ,

After reading a few articles , i made this printEngine class that
derives from PrintDocument. The print engine takes any class that
exposes the IPrintableDocument interface. This interface defines a
method that supplies a PrintablePage to the exposing class which
should fill the page with classes that expose IPrintableSection.

Its not very complicated but it does have a few flaws. Like although it
_can_ handle pagination , it does'nt do it very well. The class that exposes IPrintableDocument has to return true/false depending on whether it need to add another page! Also , the TableRowSection does'nt work very well. Obviously , i have to make a whole table class because there needs to be column sizes added. The TableRowSection draws cells according to its own cell text sizes. To make a whole Table class i need to have the graphics class to calculate the sizes of largest text and the whole table. Should i have the PrintablePage send a graphics to the Table class?


Also Could someone please check the code and tell me if the design is ok?

I should mention that i'm a self taught newbie!

Heres the code:
http://gidsfiles.googlepages.com/PrintingCore.cs
http://gidsfiles.googlepages.com/PrintableSections.cs
http://gidsfiles.googlepages.com/PrintTest.cs

This is how the print engine is used with the printTest class:
PrintEngine pDoc = new PrintEngine();<br />
pDoc.PrintableDocument = new PrintTest();<br />
PrintDialog prt = new PrintDialog();<br />
prt.Document = pDoc;<br />
prt.ShowDialog();<br />
PrintPreviewDialog prev = new PrintPreviewDialog();<br />
prev.Document = pDoc;<br />
prev.ShowDialog();<br />
<br />
Thanks so much

Gideon
AnswerRe: glitches in my generic printengine class! Pin
Robert Rohde9-Jun-07 0:14
Robert Rohde9-Jun-07 0:14 
GeneralRe: glitches in my generic printengine class! Pin
giddy_guitarist11-Jun-07 4:50
giddy_guitarist11-Jun-07 4:50 
GeneralRe: glitches in my generic printengine class! Pin
Robert Rohde11-Jun-07 10:06
Robert Rohde11-Jun-07 10:06 
QuestionNested DataGrid Pin
Muammar©8-Jun-07 20:51
Muammar©8-Jun-07 20:51 
AnswerRe: Nested DataGrid Pin
danish_ara11-Jun-07 0:56
danish_ara11-Jun-07 0:56 
Questionxml datagrid Pin
Mohammad Daba'an8-Jun-07 20:47
Mohammad Daba'an8-Jun-07 20:47 
AnswerRe: xml datagrid Pin
M. J. Jaya Chitra8-Jun-07 22:42
M. J. Jaya Chitra8-Jun-07 22:42 
GeneralRe: xml datagrid [modified] Pin
Mohammad Daba'an9-Jun-07 0:16
Mohammad Daba'an9-Jun-07 0:16 
GeneralRe: xml datagrid Pin
M. J. Jaya Chitra10-Jun-07 16:53
M. J. Jaya Chitra10-Jun-07 16:53 
GeneralRe: xml datagrid Pin
Mohammad Daba'an10-Jun-07 21:24
Mohammad Daba'an10-Jun-07 21:24 
GeneralRe: xml datagrid [modified] Pin
M. J. Jaya Chitra10-Jun-07 23:05
M. J. Jaya Chitra10-Jun-07 23:05 
QuestionWPF relative grid layout help :confused: Pin
ti4n848-Jun-07 19:54
ti4n848-Jun-07 19:54 
QuestionWhich one Is Better...? Pin
Pankaj - Joshi8-Jun-07 19:50
Pankaj - Joshi8-Jun-07 19:50 
AnswerRe: Which one Is Better...? Pin
Muammar©8-Jun-07 20:53
Muammar©8-Jun-07 20:53 
AnswerRe: Which one Is Better...? Pin
Sonia Gupta8-Jun-07 21:01
Sonia Gupta8-Jun-07 21:01 
AnswerRe: Which one Is Better...? Pin
Robert Rohde8-Jun-07 21:56
Robert Rohde8-Jun-07 21:56 
AnswerRe: Which one Is Better...? Pin
Christian Graus8-Jun-07 23:50
protectorChristian Graus8-Jun-07 23:50 

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.