PDF printing

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • SpaceMarine

    PDF printing

    hello,

    i have an application that builds up a large "incident report" for a
    law enforcement agency. In the end this is represented in a large
    object containing many properties and collections related to the
    incident.

    we now need a way to produce a PDF for printing. what are common ways
    to do this?

    ive seen some organizations use DataDynamic's ActiveReports for this,
    whereby they create an XSL report-pdf template and an XML doc for the
    content, and mash the two.

    ....does anybody have any good recommendations for things that easy to
    work with?


    thanks!
    sm
  • George

    #2
    Re: PDF printing

    There is pretty good free library iTextSharp with a lot of examples.


    George.

    "SpaceMarin e" <spacemarine@ma ilinator.comwro te in message
    news:8bdb9662-d0f3-4ba1-8ed7-28b1b296fed3@c3 6g2000prc.googl egroups.com...
    hello,
    >
    i have an application that builds up a large "incident report" for a
    law enforcement agency. In the end this is represented in a large
    object containing many properties and collections related to the
    incident.
    >
    we now need a way to produce a PDF for printing. what are common ways
    to do this?
    >
    ive seen some organizations use DataDynamic's ActiveReports for this,
    whereby they create an XSL report-pdf template and an XML doc for the
    content, and mash the two.
    >
    ...does anybody have any good recommendations for things that easy to
    work with?
    >
    >
    thanks!
    sm

    Comment

    • Mark Rae [MVP]

      #3
      Re: PDF printing

      "George" <noemail@comcas t.netwrote in message
      news:%233RgT0WO JHA.4092@TK2MSF TNGP06.phx.gbl. ..
      >...does anybody have any good recommendations for things that easy to
      >work with?
      >
      There is pretty good free library iTextSharp with a lot of examples.
      Which, unless it has been updated since I last looked at it, doesn't
      actually support printing.

      And they don't even have a v2.0 version yet...


      --
      Mark Rae
      ASP.NET MVP


      Comment

      • George

        #4
        Re: PDF printing

        Which, unless it has been updated since I last looked at it, doesn't
        actually support printing.
        ????
        it generate PDF.... what do you mean does not support printing? Printig is
        Adobe's jobe once PDF is created...

        George.




        "Mark Rae [MVP]" <mark@markNOSPA Mrae.netwrote in message
        news:%23B%231xO aOJHA.728@TK2MS FTNGP06.phx.gbl ...
        "George" <noemail@comcas t.netwrote in message
        news:%233RgT0WO JHA.4092@TK2MSF TNGP06.phx.gbl. ..
        >
        >>...does anybody have any good recommendations for things that easy to
        >>work with?
        >>
        >There is pretty good free library iTextSharp with a lot of examples.
        >
        >
        And they don't even have a v2.0 version yet...
        >
        >
        --
        Mark Rae
        ASP.NET MVP
        http://www.markrae.net

        Comment

        • Mark Rae [MVP]

          #5
          Re: PDF printing

          "George" <noemail@comcas t.netwrote in message
          news:uPNJEGcOJH A.1160@TK2MSFTN GP02.phx.gbl...
          >Which, unless it has been updated since I last looked at it, doesn't
          >actually support printing.
          ????
          It generates PDF....
          Yes it does, but that's not what the OP asked...
          What do you mean does not support printing?
          By "support printing" I mean "contain the functionality to send a PDF to a
          printer's print queue and kick off that print job automatically" - what on
          earth did you think I meant...?
          Printing is Adobe's jobe once PDF is created...
          LOL! So someone has to constantly monitor a folder for new PDF documents and
          then print them manually? That's not going to help the OP much...

          There are plenty of 3rd-party PDF generation utilities which support
          printing - iTextSharp doesn't...


          --
          Mark Rae
          ASP.NET MVP


          Comment

          • George

            #6
            Re: PDF printing

            "Mark Rae [MVP]" <mark@markNOSPA Mrae.netwrote in message
            news:OPoECOcOJH A.4332@TK2MSFTN GP06.phx.gbl...
            "George" <noemail@comcas t.netwrote in message
            news:uPNJEGcOJH A.1160@TK2MSFTN GP02.phx.gbl...
            >
            >>Which, unless it has been updated since I last looked at it, doesn't
            >>actually support printing.
            >
            >????
            >It generates PDF....
            >
            Yes it does, but that's not what the OP asked...
            >
            >What do you mean does not support printing?
            >
            By "support printing" I mean "contain the functionality to send a PDF to a
            printer's print queue and kick off that print job automatically" - what on
            earth did you think I meant...?
            >
            >Printing is Adobe's jobe once PDF is created...
            >
            LOL! So someone has to constantly monitor a folder for new PDF documents
            and then print them manually? That's not going to help the OP much...
            >
            There are plenty of 3rd-party PDF generation utilities which support
            printing - iTextSharp doesn't...
            >
            >
            --
            Mark Rae
            ASP.NET MVP
            http://www.markrae.net
            Have no idea what are you talking about... What printer's queue. What folder
            to monitor.
            The way i am using it: 1. generate PDF (stream) and 2. output it to
            browser....
            Then user looks at pretty report in PDF format, then prints it if he likes
            it or saves it to his harddrive. And as i understood this is what guy
            asked... how to generate PDF report and (may be i implied since it's ASP.NET
            group) to show it on client side.

            No folders to monitor. Since PDF never actually made into real file. It's
            written into Response stream as it generates.
            Also printing becomes customer's headache. May be he does not even have
            printer and he wants to email it.

            PS: printing PDF is easy use this command AcroRd32.exe /p /h "filename"
            But it needs to be run on client and i do not see how to do it from ASP.NET



            George






            Comment

            • Larry Bud

              #7
              Re: PDF printing

              Printing is Adobe's jobe once PDF is created...
              >
              LOL! So someone has to constantly monitor a folder for new PDF documents and
              then print them manually? That's not going to help the OP much...
              >
              There are plenty of 3rd-party PDF generation utilities which support
              printing - iTextSharp doesn't...
              Create the PDF, output to the browser. Adobe Reader comes up, opens
              the PDF. User clicks PRINT.

              Comment

              • Larry Bud

                #8
                Re: PDF printing

                On Oct 28, 12:54 pm, SpaceMarine <spacemar...@ma ilinator.comwro te:
                hello,
                >
                i have an application that builds up a large "incident report" for a
                law enforcement agency. In the end this is represented in a large
                object containing many properties and collections related to the
                incident.
                >
                we now need a way to produce a PDF for printing. what are common ways
                to do this?
                >
                ive seen some organizations use DataDynamic's ActiveReports for this,
                whereby they create an XSL report-pdf template and an XML doc for the
                content, and mash the two.
                >
                ...does anybody have any good recommendations for things that easy to
                work with?
                Have you tried the Microsoft ReportViewer control?

                While I've only used it for repeating data, no reason that it can't be
                a full form that fields are pulled from a db.

                Comment

                Working...