DotNetInvoice Forums

DotNetInvoice Invoicing Script Discussion Forum
Welcome to DotNetInvoice Forums Sign in | Join | Help
in Search

Line Breaks in Invoice Comments

Last post 10-01-2007, 8:51 AM by support. 0 replies.
Sort Posts: Previous Next
  •  10-01-2007, 8:51 AM 175

    Line Breaks in Invoice Comments

    A customer asks:

    Is there a way to show the comments text on the invoice details with line breaks? It seems all the text becomes one line without line breaks even we type it with line breaks when creating the invoice. The line breaks works only if view as PDF.

    The solution:

    To maintain the line breaks in comments in the read-only view, find line 66 in /controls/invoice.aspx.vb, which reads:

    comments.Text = dr("comments")

    And replace it with:

    comments.Text = dr("comments").Replace(Microsoft.VisualBasic.ControlChars.Lf, "<br />")

    This modification will be included in the next release of DNI.
     


    ---
    Rob
    DotNetInvoice Support
View as RSS news feed in XML
Powered by Community Server (Personal Edition), by Telligent Systems