Closed Thread
Results 1 to 6 of 6

Thread: Create/Print Form data

  1. #1
    Barn Legend Rebelle will become famous soon enough Rebelle's Avatar
    Join Date
    Mar 2008
    Posts
    1,522
    Rep Power
    5

    Create/Print Form data

    Ok, this post could go here but probably somewhere else….what I want to know what is the best way to do the following…..

    I have a web form users fill in and upload files…when submitted this go to database/server. Currently, they can search the records in the database but no form output for a record. I want to know what is the best tool/way to create/print out the form data in a form report output?

    I have crystal reports 8.5 on my server but never have had to use it. Although a few years ago, I use to create the layout of the reports but just sent them to someone else to place on the server/connect.

    Would crystal reports be the best option? Or is there something else I should use? I've exported to data to excel before..using Response.ContentType = "application/vnd.ms-excel"...wonder if its ok to use this with word?
    Last edited by Rebelle; December 5th, 2008 at 10:51 AM. Reason: added last line.

  2. #2
    Barn Legend Rebelle will become famous soon enough Rebelle's Avatar
    Join Date
    Mar 2008
    Posts
    1,522
    Rep Power
    5

    Ok...I started on something but not sure I'm heading in the right direction....I tried to use : Response.ContentType = "application/vnd.ms-word" but didn't know how/where to place it and have it come up...so I started on an asp page that layouts out the form data in a more form like looking document...but only thing is when I print it, it prints the page name at the top and the url info/date at the bottom, anyway to not have this print? when i'm viewing the asp page in IE, I just hit the IE printer button.

  3. #3
    The Barnfather jmurrayhead has much to be proud of jmurrayhead has much to be proud of jmurrayhead has much to be proud of jmurrayhead has much to be proud of jmurrayhead has much to be proud of jmurrayhead has much to be proud of jmurrayhead has much to be proud of jmurrayhead has much to be proud of jmurrayhead has much to be proud of jmurrayhead has much to be proud of jmurrayhead's Avatar
    Join Date
    Mar 2008
    Location
    Reston, VA
    Posts
    4,533
    Blog Entries
    9
    Real Name
    Jason
    Rep Power
    22

    What would be best to use depends on the requirement. Crystal Reports allows you to do things like graphs, charts, export to desired file, etc.

    If you don't need any of this, then it may be better to export to Word, Excel or another file type.

    You need to make this decision first.
    jmurrayhead
    If you agree, give me rep.
    If you like it here...throw us a few bones to help support us.


  4. #4
    Barn Legend Rebelle will become famous soon enough Rebelle's Avatar
    Join Date
    Mar 2008
    Posts
    1,522
    Rep Power
    5

    Hiya JMH,

    Okie dokie, think I'm going to just try the export to word, using:

    Response.ContentType = "application/vnd.ms-word"

    I'll give it a try again...I have a file but need to test it..and hope it works. will let ya know.

    Thankies!

  5. #5
    Barn Legend Rebelle will become famous soon enough Rebelle's Avatar
    Join Date
    Mar 2008
    Posts
    1,522
    Rep Power
    5

    hey,

    is export to word the same as excel? using the

    Response.ContentType = "application/vnd.ms-word"

    for some reason, if get my prompt, do you want to export? then click ok to open or save to save file...but keeps trying to come across as ...

    MyForm.asp?FormID="122"....instead of MyForm.doc?FormID="122"...I know I had this issue with excel before but I've checked those issues so its not any of those.

  6. #6
    Barn Legend Rebelle will become famous soon enough Rebelle's Avatar
    Join Date
    Mar 2008
    Posts
    1,522
    Rep Power
    5

    Got it! didn't think i need the extra line because i don't use one for excel...but looks like that was the trick.

    needed line in blue:

    Code:
    <%
    Response.ContentType = "application/vnd.ms-word"
    Response.AddHeader "Content-Disposition","inline;filename=Myword.doc"
    %>
    

Closed Thread

Similar Threads

  1. print option
    By todd2006 in forum ASP Development
    Replies: 6
    Last Post: September 12th, 2008, 12:37 PM
  2. print problem
    By todd2006 in forum JavaScript Programming
    Replies: 5
    Last Post: June 25th, 2008, 02:36 PM
  3. Replies: 5
    Last Post: June 25th, 2008, 09:07 AM
  4. Print out data on a letterhead format
    By Shem in forum .NET Development
    Replies: 3
    Last Post: May 22nd, 2008, 10:15 AM
  5. Maintaining Form Data after forms authentication timeout
    By richyrich in forum .NET Development
    Replies: 13
    Last Post: April 17th, 2008, 02:28 AM

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

SEO by vBSEO