PDFsharp & MigraDoc Foundation https://forum.pdfsharp.net/ |
|
Shading problems / error https://forum.pdfsharp.net/viewtopic.php?f=2&t=1237 |
Page 1 of 1 |
Author: | dupont2br [ Tue Jul 06, 2010 6:52 pm ] |
Post subject: | Shading problems / error |
If I use this function with the row.shading.color line, I get a row with a shaded line but the cells do not have any text in them (1, 2, 3, 4). If I comment out the row.shading.color line, the cells have the correct text. I put it in a Try/Catch block but no error is thrown, so I am not sure what to do? Thanks for your help, Eric Public Function CreateRow() As Row Dim row As Row = New Row row.Shading.Color = MigraDoc.DocumentObjectModel.Colors.Beige row.Cells(0).AddParagraph("1") row.Cells(0).Style = "UL" row.Cells(1).AddParagraph("2") row.Cells(1).Style = "TextBox" row.Cells(3).AddParagraph("3") row.Cells(3).Style = "UL" row.Cells(4).AddParagraph("4") row.Cells(4).Style = "TextBox" Return row End Function |
Author: | Thomas Hoevel [ Wed Jul 07, 2010 7:13 am ] |
Post subject: | Re: Shading problems / error |
It should work. We use similar code, but create rows using Code: row = table.AddRow(); Which version are you using? Are you rendering to PDF or RTF? If the problem persists, please send us a MDDDL file. |
Author: | dupont2br [ Wed Jul 07, 2010 6:10 pm ] |
Post subject: | Re: Shading problems / error |
I figured out the problem when I tried to save the MDDL document -- it appears there was a conflict between a style I had defined as "Normal" and the default style "Normal" so I renamed by style and the shading now works properly. Thanks, Eric |
Page 1 of 1 | All times are UTC |
Powered by phpBB® Forum Software © phpBB Group https://www.phpbb.com/ |