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

C#

 
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 
AnswerRe: glitches in my generic printengine class! Pin
Robert Rohde9-Jun-07 0:14
Robert Rohde9-Jun-07 0:14 
Hi,

Hard to say what to change without having more detailed requirements. It would be interesting to know if you need to print one large table spread over several tables.
First of all you will by sure need one PrintableSection for a whole table. Like you already noticed you will need this to calculate proper widths for all the table entries. I also think this makes it easier and provides better variability than trying to make one section for each row. Surely ot needs the Graphics to determine its size, but you already have the GetSize function which should be sufficient also for the TableSection.
Personally I would change the IPrintableDocument.SetPage call to something like PrintablePage[] GetPages(Graphics g, Rectangle pageBounds). This way IPrintableDocument implementations can straight away return any number of pages with its own page break logic. As you already have a return value in the AddSection function the IPrintableDocument would even have an easy hint when it needs to create a new page. With the array of pages your PrintEngine could than easily print page by page until done.

Robert



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 
QuestionHow To Check Form Exist Or Not...? Pin
Pankaj - Joshi8-Jun-07 19:10
Pankaj - Joshi8-Jun-07 19:10 

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.