SitePoint Sponsor

User Tag List

Results 1 to 4 of 4
  1. #1
    SitePoint Member
    Join Date
    Feb 2012
    Posts
    5
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    ASP > Report Output

    Hi All

    I know this might sound strange, but I'm in the process of doing an ASP page that will output a report in a particular format. Think of it as an ASP form that generates a certificate or an invoice.

    Now the quickest and cheapest option seems to be to output this to a HTML-created page, but is this the accepted norm to generate a new page/tab as a HTML-generated report? I just think it should be outputting to something like PDF or Word, but I think techie-peers are clouding my judgement when I should look to offer HTML, PDF or RTF(??) as an option.

    Does anybody else generate a report as a new page/tab? Any probs with this?

    Thanks Mojo

  2. #2
    SitePoint Guru
    Join Date
    Jun 2007
    Posts
    689
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    You can make it anything you like....

  3. #3
    SitePoint Zealot gidday's Avatar
    Join Date
    Jan 2007
    Posts
    191
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Hi Mojo

    I output heaps of reports as html but then they are primarily used for immediate use rather than for detailed interrogation. My reports are all tabular so that if the viewer wishes to they can copy and paste the results.

    My 2 cents
    Joe
    "All that is necessary for the triumph of evil
    is that good men do nothing."

  4. #4
    SitePoint Member
    Join Date
    Jan 2012
    Location
    Philippines
    Posts
    19
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    If you wanted to print "selected contents" of the page into the printer... you could use these following techniques;

    a. display a pop-up window and putting a PDF formatted report "as you formatted", then the PDF utility will allow print automatically
    b. create your own ActiveX if it is in IE... and using client-side vbscript (as below) to extract the data one-by-one and printing it

    Code:
    <script language="vbscript" for="btnPrint" event="onClick">
    'your printing code here
    
    
    </script>


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •