Excel and Word

Results 1 to 2 of 2

Thread: Excel and Word

  1. #1
    Join Date
    Dec 1969

    Default Excel and Word

    I would like to create a page that will can be used as word or excel..Depending on the report type I would like to display either word or excel..I have tried to do the following at th etop of my page, but even if I pass in REPORT1, it still appears as a word doc...Any ideas? <BR><BR><BR>&#060;%@ Language=&#039;VBScript&#039; %&#062;<BR>&#060;% Option Explicit %&#062;<BR><BR>&#060;!-- #include file="../library/adovbs.inc"--&#062;<BR><BR>If SearchType = "REPORT1" Then<BR> Response.ContentType = "application/vnd.ms-excel"<BR>Else<BR> Response.ContentType = "application/msword"<BR>End If<BR><BR>.........<BR><BR>Thanks

  2. #2
    Join Date
    Dec 1969

    Default RE: Excel and Word

    What you need to look at is FSO (FileSystemObject) actually this link may be what you are looking for. There is more if you search<BR>http://www.4guysfromrolla.com/webtech/faq/FileSystemObject/faq1.shtml

Posting Permissions

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