Click here to Skip to main content
15,892,768 members
Home / Discussions / C#
   

C#

 
GeneralRe: TextBoxes, ListView, DataGrid or something else? Pin
TheBlindWatchmaker23-Jun-11 11:22
TheBlindWatchmaker23-Jun-11 11:22 
GeneralRe: TextBoxes, ListView, DataGrid or something else? Pin
BobJanova23-Jun-11 22:45
BobJanova23-Jun-11 22:45 
AnswerRe: TextBoxes, ListView, DataGrid or something else? Pin
BobJanova23-Jun-11 1:07
BobJanova23-Jun-11 1:07 
QuestionGSM Modem Pin
marshall_donuts22-Jun-11 7:46
marshall_donuts22-Jun-11 7:46 
AnswerRe: GSM Modem Pin
jschell22-Jun-11 9:19
jschell22-Jun-11 9:19 
GeneralRe: GSM Modem Pin
marshall_donuts26-Jun-11 14:46
marshall_donuts26-Jun-11 14:46 
GeneralRe: GSM Modem Pin
Andy41129-Jun-11 2:45
Andy41129-Jun-11 2:45 
Questionitextsharp colums question Pin
cromster22-Jun-11 5:17
cromster22-Jun-11 5:17 
Hi,

I am creating a pdf document using itextsharp and need to output the information into 2 columns. There is a normal paragraph before and after the section that contains the 2 columns. So the pages will look like. header, followed by a normal paragraph, followed by a columns section which is made up from a ordered list and then the final paragraph section. I am running into 2 issues.

1. MultiColumnText seems to take up all the second page even though there are only a few points from the list on it. This causes the final paragraph following the column section to be created on a new page. Is there a way of stopping this happening so the last paragraph sits just under the column

2. When the columns run into the second page I want to split the remaining 4 parts of the list into 2 columns so it only takes up the first half of the page. At present it only runs down one column. Anyone know a way that you can specifically split a column at a certain point to force it into 2 columns.

Below is a rough idea of the code

Paragraph topSection = new Paragraph("information about the points. blah blah blah"\n\n\n", normal);
topSection.SetAlignment("Left");
topSection.IndentationLeft = 40;
doc.Add(topSection);

MultiColumnText columns = new MultiColumnText();

columns.AddRegularColumns(72, 72 * 7.5f, 10, 2);

columns.AddElement(new Paragraph("This Agreement is made and entered into by and among the parties hereto as of the Effective Date with reference to the following facts:\n\n", normal));


columns.AddElement(new Paragraph("\nShort paragraph before adding the list\n\n", normal));
list.Add(new ListItem("lots and lots of text.\n\n", normal));
list.Add(new ListItem("lots and lots of text.\n\n", normal));
list.Add(new ListItem("lots and lots of text.\n\n", normal));
list.Add(new ListItem("lots and lots of text \n\n", normal));
list.Add(new ListItem("lots and lots of text.\n\n", normal));
list.Add(new ListItem("lots and lots of text.\n\n", normal));
list.Add(new ListItem("lots and lots of text.\n\n", normal));
list.Add(new ListItem("lots and lots of text.\n\n", normal));
list.Add(new ListItem("lots and lots of text.\n\n", normal));
list.Add(new ListItem("lots and lots of text.\n\n", normal));
list.Add(new ListItem("lots and lots of text.\n\n", normal));
columns.Alignment = Element.ALIGN_JUSTIFIED;
columns.AddElement(list2);
doc.Add(columns);

Paragraph signatures = new Paragraph("Assignor: <ASSIGNOR>", normal);

doc.Add(signatures);
AnswerRe: itextsharp colums question Pin
cromster11-Jul-11 5:18
cromster11-Jul-11 5:18 
QuestionPassing one of struct (from array) to other method (in different files) Pin
Blubbo22-Jun-11 5:16
Blubbo22-Jun-11 5:16 
QuestionRe: Passing one of struct (from array) to other method (in different files) Pin
MicroVirus22-Jun-11 5:55
MicroVirus22-Jun-11 5:55 
AnswerRe: Passing one of struct (from array) to other method (in different files) Pin
Blubbo22-Jun-11 7:03
Blubbo22-Jun-11 7:03 
AnswerRe: Passing one of struct (from array) to other method (in different files) Pin
MicroVirus22-Jun-11 8:29
MicroVirus22-Jun-11 8:29 
AnswerRe: Passing one of struct (from array) to other method (in different files) Pin
David198722-Jun-11 6:26
David198722-Jun-11 6:26 
QuestionFile copy onto remote server of different domain with credentials. Pin
surender.m22-Jun-11 3:27
surender.m22-Jun-11 3:27 
AnswerRe: File copy onto remote server of different domain with credentials. Pin
Mario Majčica22-Jun-11 4:44
professionalMario Majčica22-Jun-11 4:44 
GeneralRe: File copy onto remote server of different domain with credentials. [modified] Pin
surender.m22-Jun-11 18:38
surender.m22-Jun-11 18:38 
QuestionNeed help with excel and com objects in c sharp Pin
turbosupramk322-Jun-11 3:08
turbosupramk322-Jun-11 3:08 
AnswerRe: Need help with excel and com objects in c sharp Pin
BobJanova22-Jun-11 4:20
BobJanova22-Jun-11 4:20 
GeneralRe: Need help with excel and com objects in c sharp Pin
turbosupramk322-Jun-11 8:09
turbosupramk322-Jun-11 8:09 
GeneralRe: Need help with excel and com objects in c sharp Pin
BobJanova22-Jun-11 8:12
BobJanova22-Jun-11 8:12 
QuestionHow to detect invalid character input in ListView control? Pin
ShadowUz21-Jun-11 20:06
ShadowUz21-Jun-11 20:06 
AnswerRe: How to detect invalid character input in ListView control? Pin
Mario Majčica21-Jun-11 22:26
professionalMario Majčica21-Jun-11 22:26 
GeneralRe: How to detect invalid character input in ListView control? Pin
ShadowUz21-Jun-11 23:40
ShadowUz21-Jun-11 23:40 
AnswerRe: How to detect invalid character input in ListView control? Pin
Mario Majčica21-Jun-11 23:44
professionalMario Majčica21-Jun-11 23:44 

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.