Announcement

Collapse
No announcement yet.

How print a form with an htlm text field

Collapse
X
  • Filter
  • Time
  • Show
Clear All
new posts

  • How print a form with an htlm text field

    Hi all,

    I got a form that is used to record minutes, texts and other similar stuff.
    More or less there is a kind of title and then the html field text.
    How can I print both in a page like a document without making a specific pdf report ?
    Is it possible ?
    Thanks
    Attached Files

  • #2
    You can consider using javascript, but it will print full html page.

    Javascript : window.print();
    Albert Drent
    aducom software netherlands
    scriptcase partner, reseller, support and (turn-key) development
    www.scriptcase.eu / www.scriptcase.nl

    Comment


    • #3
      Hi, thanks
      Is it the same that you do when from browser you choose print the screen content from menů ?
      I would like to print only all the content of the html field only.
      As you can see on image it could be possible that part of text of htlm files would be hidden and so the Printing would miss a part of it.

      Comment


      • #4
        If you want to print just a html piece then you need to use html2pdf to do so. Otherwise I see no possibilities. With PHP you can intercept output in a variable to be used for printing. See ob_start for that.
        Albert Drent
        aducom software netherlands
        scriptcase partner, reseller, support and (turn-key) development
        www.scriptcase.eu / www.scriptcase.nl

        Comment


        • #5
          Is there a solution for this? If I look at tinymce, I see that it has a print option - which prints what I want to print. But the editor in SC (which is tinymce?) does not have a print option? Am I missing something?

          Comment


          • #6
            El editor HTML tiene la opción print del contenido.
            Attached Files

            Comment


            • #7
              How easy is that. Can't imagine how I missed it! Thank you.

              Comment

              Working...
              X