PDFsharp & MigraDoc Foundation http://forum.pdfsharp.de/ |
|
Dynamic margin or spacing between two paragraph in migradoc http://forum.pdfsharp.de/viewtopic.php?f=2&t=4226 |
Page 1 of 1 |
Author: | AnkitB [ Fri Jan 29, 2021 7:00 am ] |
Post subject: | Dynamic margin or spacing between two paragraph in migradoc |
Hi there i have set spacebefore in a paragraph but if there more data in first paragraph then its overlap into second paragraph see the url for the screenshot of my pdf https://lh3.googleusercontent.com/-VQyA ... -01-28.png if u see the above image there are two paragraph first one is interview details and second is Applicant details could you please help? |
Author: | TH-Soft [ Fri Jan 29, 2021 8:17 am ] |
Post subject: | Re: Dynamic margin or spacing between two paragraph in migra |
AnkitB wrote: if u see the above image there are two paragraph first one is interview details and second is Applicant details You do not use MigraDoc as intended.could you please help? Since you do not share any code I cannot point out what the problem is. Do you use TextFrames? |
Author: | AnkitB [ Fri Jan 29, 2021 8:26 am ] | ||
Post subject: | Re: Dynamic margin or spacing between two paragraph in migra | ||
paragraph.AddFormattedText("Interview Instructions : ", TextFormat.Bold); if (applicantRecord.Notes != null) { //paragraph = section.AddParagraph(); paragraph.AddFormattedText(applicantRecord.Notes, TextFormat.NotBold); } paragraph.AddLineBreak(); if (applicantRecord.InterViewStatus == false) { paragraph.AddFormattedText("Interview Status : " + "UnConfirmed", TextFormat.Bold); } else { paragraph.AddFormattedText("Interview Status : " + "Confirmed", TextFormat.Bold); } paragraph.AddLineBreak(); // Add the print date field paragraph = section.AddParagraph(); if (applicantRecord.Notes != null) { paragraph.Format.SpaceBefore = "10cm"; } else { paragraph.Format.SpaceBefore = "6cm"; } paragraph.Style = "Heading3"; paragraph.AddFormattedText("Applicant Details", TextFormat.Bold); paragraph.AddLineBreak(); paragraph.AddLineBreak(); i want dynamic gap between above two paragraph when data eceeds
|
Author: | TH-Soft [ Fri Jan 29, 2021 8:55 am ] |
Post subject: | Re: Dynamic margin or spacing between two paragraph in migra |
I only see code snippets. Could be a bug, could be a feature - cannot tell with just snippets. An MDDDL file could help. Or maybe use the Issue Submission Template. 17000 lines of code in a file? I think my boss wouldn't allow that. |
Author: | AnkitB [ Fri Jan 29, 2021 9:20 am ] |
Post subject: | Re: Dynamic margin or spacing between two paragraph in migra |
im not facing issue i need to know how to apply dnamic spacing between two paragraph in migradoc when data gets exceeded?? |
Author: | TH-Soft [ Fri Jan 29, 2021 9:25 am ] |
Post subject: | Re: Dynamic margin or spacing between two paragraph in migra |
Text should not overlap when MigraDoc is used correctly. I cannot tell where you use MigraDoc in an unintended way because I only see a snippet. Use MigraDoc as intended and text will not overlap. |
Author: | AnkitB [ Fri Jan 29, 2021 9:44 am ] |
Post subject: | Re: Dynamic margin or spacing between two paragraph in migra |
ok but can you atleast tell me how to make a hyperlink in migradoc pdf to open in next tab? var furl = "http://google.com; var h1 = paragraph.AddHyperlink(furl, HyperlinkType.Web); |
Page 1 of 1 | All times are UTC |
Powered by phpBB® Forum Software © phpBB Group https://www.phpbb.com/ |