Click here to Skip to main content
15,886,963 members
Home / Discussions / C#
   

C#

 
GeneralRe: Sending E mail using C# Pin
Richard Deeming13-Nov-14 3:55
mveRichard Deeming13-Nov-14 3:55 
AnswerRe: Sending E mail using C# Pin
Richard Deeming13-Nov-14 3:29
mveRichard Deeming13-Nov-14 3:29 
AnswerRe: Sending E mail using C# Pin
BillWoodruff13-Nov-14 3:37
professionalBillWoodruff13-Nov-14 3:37 
GeneralRe: Sending E mail using C# Pin
jschell13-Nov-14 11:27
jschell13-Nov-14 11:27 
AnswerRe: Sending E mail using C# Pin
Marco Bertschi13-Nov-14 23:01
protectorMarco Bertschi13-Nov-14 23:01 
QuestionHow To Create Data Recovery in C#.net Pin
Srikanth5913-Nov-14 1:51
Srikanth5913-Nov-14 1:51 
AnswerRe: How To Create Data Recovery in C#.net Pin
Dave Kreskowiak13-Nov-14 2:08
mveDave Kreskowiak13-Nov-14 2:08 
QuestionPDFSHARP - table page break Pin
Mol4ok12-Nov-14 22:19
Mol4ok12-Nov-14 22:19 
Hi to everyone.
I know that there are a lot of articles in the internet about this problem. I know that there is KeepWith property and i read here http://forum.pdfsharp.net/viewtopic.php?f=2&t=679[^]
http://forum.pdfsharp.net/viewtopic.php?p=6852#p7408[^]
that it should work if i install assemblies http://www.pakeha_by.my-webs.org/MigraDocFastTableRender.html[^]
I installed and there is no effect, anyway i try to use it - my table is cut on one page((( and other rows do not go to the next page....
My way coding tables

   PdfDocument outputDocument = new PdfDocument();
        PdfPage editablePage = outputDocument.AddPage();
        editablePage.Size = PageSize.A4;
        XGraphics gfx = XGraphics.FromPdfPage(editablePage);

       MigraDoc.DocumentObjectModel.Document doc3 = new          MigraDoc.DocumentObjectModel.Document();
        MigraDoc.DocumentObjectModel.Tables.Table table3 = new MigraDoc.DocumentObjectModel.Tables.Table();

            Column column3 = table3.AddColumn(70);
            column3.Format.Alignment = ParagraphAlignment.Left;
            column3.Format.Font.Bold = false;

            column3 = table3.AddColumn(50);
            column3.Format.Alignment = ParagraphAlignment.Center;
            column3.Format.Font.Bold = false;

            Row row3 = table3.AddRow();
            row3.Format.Alignment = ParagraphAlignment.Center;
            row3.Format.Font.Bold = true;
            row3.Format.Font.Size = 9;

            row3[0].AddParagraph("Serial");
            row3[1].AddParagraph("Time");
...............................................................

...............................................................
while (reader1.Read())
{
 row3 = table3.AddRow();
 row3[0].AddParagraph(Convert.ToString(reader1.GetValue(0)));
row3[1].AddParagraph(Convert.ToString(reader1.GetValue(1)));
}
...............................................................

...............................................................
table3.Rows[0].KeepWith = table3.Rows.Count-1;
doc3.AddSection().Add(table3);
       
DocumentRenderer docRenderer3 = new DocumentRenderer(doc3);
docRenderer3.PrepareDocument();
docRenderer3.RenderObject(gfx, 50, 0, 0, table3);


May be this way of constructing tables does not provide my requirements?

I will appreciate any help, thank you.

modified 13-Nov-14 12:30pm.

AnswerRe: PDFSHARP - table page break Pin
Mol4ok16-Nov-14 15:57
Mol4ok16-Nov-14 15:57 
GeneralRe: PDFSHARP - table page break Pin
Mycroft Holmes16-Nov-14 18:32
professionalMycroft Holmes16-Nov-14 18:32 
GeneralRe: PDFSHARP - table page break Pin
Mol4ok16-Nov-14 21:03
Mol4ok16-Nov-14 21:03 
QuestionCannot access a disposed object. Object name : System.Net.Mail.MailMessage Pin
Jassim Rahma12-Nov-14 20:35
Jassim Rahma12-Nov-14 20:35 
AnswerRe: Cannot access a disposed object. Object name : System.Net.Mail.MailMessage Pin
BillWoodruff12-Nov-14 21:04
professionalBillWoodruff12-Nov-14 21:04 
AnswerRe: Cannot access a disposed object. Object name : System.Net.Mail.MailMessage PinPopular
Bernhard Hiller12-Nov-14 21:10
Bernhard Hiller12-Nov-14 21:10 
AnswerRe: Cannot access a disposed object. Object name : System.Net.Mail.MailMessage Pin
Marco Bertschi13-Nov-14 23:05
protectorMarco Bertschi13-Nov-14 23:05 
QuestionAsk Pin
kavnico12-Nov-14 16:50
kavnico12-Nov-14 16:50 
AnswerRe: Ask Pin
BillWoodruff12-Nov-14 20:30
professionalBillWoodruff12-Nov-14 20:30 
AnswerRe: Ask Pin
Richard MacCutchan12-Nov-14 21:22
mveRichard MacCutchan12-Nov-14 21:22 
GeneralRe: Ask Pin
ZurdoDev13-Nov-14 3:07
professionalZurdoDev13-Nov-14 3:07 
GeneralRe: Ask Pin
Richard MacCutchan13-Nov-14 3:10
mveRichard MacCutchan13-Nov-14 3:10 
GeneralRe: Ask Pin
ZurdoDev13-Nov-14 3:19
professionalZurdoDev13-Nov-14 3:19 
QuestionC# FormatCurrency(VB) to ToString Pin
Member 876492812-Nov-14 10:23
Member 876492812-Nov-14 10:23 
AnswerRe: C# FormatCurrency(VB) to ToString Pin
Eddy Vluggen12-Nov-14 10:47
professionalEddy Vluggen12-Nov-14 10:47 
AnswerRe: C# FormatCurrency(VB) to ToString Pin
Pete O'Hanlon12-Nov-14 10:58
mvePete O'Hanlon12-Nov-14 10:58 
GeneralRe: C# FormatCurrency(VB) to ToString Pin
Dominic Burford13-Nov-14 4:25
professionalDominic Burford13-Nov-14 4:25 

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.