MigraDoc Table cell text overlap











up vote
0
down vote

favorite












I want PDF with table and I am using MigraDoc.DocumentObjectModel.Tables.Table to create table. Table cell content overlapping when content has "text with no space".
Is there any direct solution rather than manually creating text wrap function?










share|improve this question




























    up vote
    0
    down vote

    favorite












    I want PDF with table and I am using MigraDoc.DocumentObjectModel.Tables.Table to create table. Table cell content overlapping when content has "text with no space".
    Is there any direct solution rather than manually creating text wrap function?










    share|improve this question


























      up vote
      0
      down vote

      favorite









      up vote
      0
      down vote

      favorite











      I want PDF with table and I am using MigraDoc.DocumentObjectModel.Tables.Table to create table. Table cell content overlapping when content has "text with no space".
      Is there any direct solution rather than manually creating text wrap function?










      share|improve this question















      I want PDF with table and I am using MigraDoc.DocumentObjectModel.Tables.Table to create table. Table cell content overlapping when content has "text with no space".
      Is there any direct solution rather than manually creating text wrap function?







      pdf text cell migradoc






      share|improve this question















      share|improve this question













      share|improve this question




      share|improve this question








      edited Nov 20 at 7:52









      Brian Tompsett - 汤莱恩

      4,1631336100




      4,1631336100










      asked Nov 20 at 7:50









      Learner

      11




      11
























          1 Answer
          1






          active

          oldest

          votes

















          up vote
          0
          down vote













          Text will break at spaces, at hyphens, at soft hyphens, and at zero-width non-joiners.



          If you do not care where the linebreak occurs, just insert a zero-width non-joiner between each pair of characters or at suitable locations (e.g. for URLs after each slash or dot).



          Soft hyphens between syllables will look better for human-readable text.






          share|improve this answer





















          • Actually I generate report with datatable which contains thousands of rows. Is it good practice to manipulate datatable data to add add zero-width non-joiner or spae or hyphen?
            – Learner
            Nov 23 at 12:07










          • @Learner MS Word automatically breaks anywhere to avoid overlap, so when generating RTF you do not have to do anything. MigraDoc only breaks at specific characters, so if you want to create nice PDF files you may have to mark locations for linebreaks if the table contains data that is not the normal "human readable" type. Using zero-width non-joiners has no impact on the representation (except the linebreak) and comes closest to the behavior of MS Word. If you insert the non-joiners only at "meaningful locations" it will even look better than with Word.
            – The sky is the limit
            Nov 26 at 9:42










          • Got it. Thanks for your response :)
            – Learner
            Dec 4 at 8:19










          • From SO Help: Please do not add a comment on your question or on an answer to say "Thank you". Comments are meant for requesting clarification, leaving constructive criticism, or adding relevant but minor additional information – not for socializing. If you want to say "thank you," vote on or accept that person's answer, or simply pay it forward by providing a great answer to someone else's question. stackoverflow.com/help/someone-answers
            – The sky is the limit
            Dec 4 at 10:36











          Your Answer






          StackExchange.ifUsing("editor", function () {
          StackExchange.using("externalEditor", function () {
          StackExchange.using("snippets", function () {
          StackExchange.snippets.init();
          });
          });
          }, "code-snippets");

          StackExchange.ready(function() {
          var channelOptions = {
          tags: "".split(" "),
          id: "1"
          };
          initTagRenderer("".split(" "), "".split(" "), channelOptions);

          StackExchange.using("externalEditor", function() {
          // Have to fire editor after snippets, if snippets enabled
          if (StackExchange.settings.snippets.snippetsEnabled) {
          StackExchange.using("snippets", function() {
          createEditor();
          });
          }
          else {
          createEditor();
          }
          });

          function createEditor() {
          StackExchange.prepareEditor({
          heartbeatType: 'answer',
          convertImagesToLinks: true,
          noModals: true,
          showLowRepImageUploadWarning: true,
          reputationToPostImages: 10,
          bindNavPrevention: true,
          postfix: "",
          imageUploader: {
          brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
          contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
          allowUrls: true
          },
          onDemand: true,
          discardSelector: ".discard-answer"
          ,immediatelyShowMarkdownHelp:true
          });


          }
          });














          draft saved

          draft discarded


















          StackExchange.ready(
          function () {
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53388435%2fmigradoc-table-cell-text-overlap%23new-answer', 'question_page');
          }
          );

          Post as a guest















          Required, but never shown

























          1 Answer
          1






          active

          oldest

          votes








          1 Answer
          1






          active

          oldest

          votes









          active

          oldest

          votes






          active

          oldest

          votes








          up vote
          0
          down vote













          Text will break at spaces, at hyphens, at soft hyphens, and at zero-width non-joiners.



          If you do not care where the linebreak occurs, just insert a zero-width non-joiner between each pair of characters or at suitable locations (e.g. for URLs after each slash or dot).



          Soft hyphens between syllables will look better for human-readable text.






          share|improve this answer





















          • Actually I generate report with datatable which contains thousands of rows. Is it good practice to manipulate datatable data to add add zero-width non-joiner or spae or hyphen?
            – Learner
            Nov 23 at 12:07










          • @Learner MS Word automatically breaks anywhere to avoid overlap, so when generating RTF you do not have to do anything. MigraDoc only breaks at specific characters, so if you want to create nice PDF files you may have to mark locations for linebreaks if the table contains data that is not the normal "human readable" type. Using zero-width non-joiners has no impact on the representation (except the linebreak) and comes closest to the behavior of MS Word. If you insert the non-joiners only at "meaningful locations" it will even look better than with Word.
            – The sky is the limit
            Nov 26 at 9:42










          • Got it. Thanks for your response :)
            – Learner
            Dec 4 at 8:19










          • From SO Help: Please do not add a comment on your question or on an answer to say "Thank you". Comments are meant for requesting clarification, leaving constructive criticism, or adding relevant but minor additional information – not for socializing. If you want to say "thank you," vote on or accept that person's answer, or simply pay it forward by providing a great answer to someone else's question. stackoverflow.com/help/someone-answers
            – The sky is the limit
            Dec 4 at 10:36















          up vote
          0
          down vote













          Text will break at spaces, at hyphens, at soft hyphens, and at zero-width non-joiners.



          If you do not care where the linebreak occurs, just insert a zero-width non-joiner between each pair of characters or at suitable locations (e.g. for URLs after each slash or dot).



          Soft hyphens between syllables will look better for human-readable text.






          share|improve this answer





















          • Actually I generate report with datatable which contains thousands of rows. Is it good practice to manipulate datatable data to add add zero-width non-joiner or spae or hyphen?
            – Learner
            Nov 23 at 12:07










          • @Learner MS Word automatically breaks anywhere to avoid overlap, so when generating RTF you do not have to do anything. MigraDoc only breaks at specific characters, so if you want to create nice PDF files you may have to mark locations for linebreaks if the table contains data that is not the normal "human readable" type. Using zero-width non-joiners has no impact on the representation (except the linebreak) and comes closest to the behavior of MS Word. If you insert the non-joiners only at "meaningful locations" it will even look better than with Word.
            – The sky is the limit
            Nov 26 at 9:42










          • Got it. Thanks for your response :)
            – Learner
            Dec 4 at 8:19










          • From SO Help: Please do not add a comment on your question or on an answer to say "Thank you". Comments are meant for requesting clarification, leaving constructive criticism, or adding relevant but minor additional information – not for socializing. If you want to say "thank you," vote on or accept that person's answer, or simply pay it forward by providing a great answer to someone else's question. stackoverflow.com/help/someone-answers
            – The sky is the limit
            Dec 4 at 10:36













          up vote
          0
          down vote










          up vote
          0
          down vote









          Text will break at spaces, at hyphens, at soft hyphens, and at zero-width non-joiners.



          If you do not care where the linebreak occurs, just insert a zero-width non-joiner between each pair of characters or at suitable locations (e.g. for URLs after each slash or dot).



          Soft hyphens between syllables will look better for human-readable text.






          share|improve this answer












          Text will break at spaces, at hyphens, at soft hyphens, and at zero-width non-joiners.



          If you do not care where the linebreak occurs, just insert a zero-width non-joiner between each pair of characters or at suitable locations (e.g. for URLs after each slash or dot).



          Soft hyphens between syllables will look better for human-readable text.







          share|improve this answer












          share|improve this answer



          share|improve this answer










          answered Nov 20 at 8:57









          The sky is the limit

          9,54024083




          9,54024083












          • Actually I generate report with datatable which contains thousands of rows. Is it good practice to manipulate datatable data to add add zero-width non-joiner or spae or hyphen?
            – Learner
            Nov 23 at 12:07










          • @Learner MS Word automatically breaks anywhere to avoid overlap, so when generating RTF you do not have to do anything. MigraDoc only breaks at specific characters, so if you want to create nice PDF files you may have to mark locations for linebreaks if the table contains data that is not the normal "human readable" type. Using zero-width non-joiners has no impact on the representation (except the linebreak) and comes closest to the behavior of MS Word. If you insert the non-joiners only at "meaningful locations" it will even look better than with Word.
            – The sky is the limit
            Nov 26 at 9:42










          • Got it. Thanks for your response :)
            – Learner
            Dec 4 at 8:19










          • From SO Help: Please do not add a comment on your question or on an answer to say "Thank you". Comments are meant for requesting clarification, leaving constructive criticism, or adding relevant but minor additional information – not for socializing. If you want to say "thank you," vote on or accept that person's answer, or simply pay it forward by providing a great answer to someone else's question. stackoverflow.com/help/someone-answers
            – The sky is the limit
            Dec 4 at 10:36


















          • Actually I generate report with datatable which contains thousands of rows. Is it good practice to manipulate datatable data to add add zero-width non-joiner or spae or hyphen?
            – Learner
            Nov 23 at 12:07










          • @Learner MS Word automatically breaks anywhere to avoid overlap, so when generating RTF you do not have to do anything. MigraDoc only breaks at specific characters, so if you want to create nice PDF files you may have to mark locations for linebreaks if the table contains data that is not the normal "human readable" type. Using zero-width non-joiners has no impact on the representation (except the linebreak) and comes closest to the behavior of MS Word. If you insert the non-joiners only at "meaningful locations" it will even look better than with Word.
            – The sky is the limit
            Nov 26 at 9:42










          • Got it. Thanks for your response :)
            – Learner
            Dec 4 at 8:19










          • From SO Help: Please do not add a comment on your question or on an answer to say "Thank you". Comments are meant for requesting clarification, leaving constructive criticism, or adding relevant but minor additional information – not for socializing. If you want to say "thank you," vote on or accept that person's answer, or simply pay it forward by providing a great answer to someone else's question. stackoverflow.com/help/someone-answers
            – The sky is the limit
            Dec 4 at 10:36
















          Actually I generate report with datatable which contains thousands of rows. Is it good practice to manipulate datatable data to add add zero-width non-joiner or spae or hyphen?
          – Learner
          Nov 23 at 12:07




          Actually I generate report with datatable which contains thousands of rows. Is it good practice to manipulate datatable data to add add zero-width non-joiner or spae or hyphen?
          – Learner
          Nov 23 at 12:07












          @Learner MS Word automatically breaks anywhere to avoid overlap, so when generating RTF you do not have to do anything. MigraDoc only breaks at specific characters, so if you want to create nice PDF files you may have to mark locations for linebreaks if the table contains data that is not the normal "human readable" type. Using zero-width non-joiners has no impact on the representation (except the linebreak) and comes closest to the behavior of MS Word. If you insert the non-joiners only at "meaningful locations" it will even look better than with Word.
          – The sky is the limit
          Nov 26 at 9:42




          @Learner MS Word automatically breaks anywhere to avoid overlap, so when generating RTF you do not have to do anything. MigraDoc only breaks at specific characters, so if you want to create nice PDF files you may have to mark locations for linebreaks if the table contains data that is not the normal "human readable" type. Using zero-width non-joiners has no impact on the representation (except the linebreak) and comes closest to the behavior of MS Word. If you insert the non-joiners only at "meaningful locations" it will even look better than with Word.
          – The sky is the limit
          Nov 26 at 9:42












          Got it. Thanks for your response :)
          – Learner
          Dec 4 at 8:19




          Got it. Thanks for your response :)
          – Learner
          Dec 4 at 8:19












          From SO Help: Please do not add a comment on your question or on an answer to say "Thank you". Comments are meant for requesting clarification, leaving constructive criticism, or adding relevant but minor additional information – not for socializing. If you want to say "thank you," vote on or accept that person's answer, or simply pay it forward by providing a great answer to someone else's question. stackoverflow.com/help/someone-answers
          – The sky is the limit
          Dec 4 at 10:36




          From SO Help: Please do not add a comment on your question or on an answer to say "Thank you". Comments are meant for requesting clarification, leaving constructive criticism, or adding relevant but minor additional information – not for socializing. If you want to say "thank you," vote on or accept that person's answer, or simply pay it forward by providing a great answer to someone else's question. stackoverflow.com/help/someone-answers
          – The sky is the limit
          Dec 4 at 10:36


















          draft saved

          draft discarded




















































          Thanks for contributing an answer to Stack Overflow!


          • Please be sure to answer the question. Provide details and share your research!

          But avoid



          • Asking for help, clarification, or responding to other answers.

          • Making statements based on opinion; back them up with references or personal experience.


          To learn more, see our tips on writing great answers.





          Some of your past answers have not been well-received, and you're in danger of being blocked from answering.


          Please pay close attention to the following guidance:


          • Please be sure to answer the question. Provide details and share your research!

          But avoid



          • Asking for help, clarification, or responding to other answers.

          • Making statements based on opinion; back them up with references or personal experience.


          To learn more, see our tips on writing great answers.




          draft saved


          draft discarded














          StackExchange.ready(
          function () {
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53388435%2fmigradoc-table-cell-text-overlap%23new-answer', 'question_page');
          }
          );

          Post as a guest















          Required, but never shown





















































          Required, but never shown














          Required, but never shown












          Required, but never shown







          Required, but never shown

































          Required, but never shown














          Required, but never shown












          Required, but never shown







          Required, but never shown







          Popular posts from this blog

          Wiesbaden

          Marschland

          Dieringhausen