Wrox Programmer Forums

Need to download code?

View our list of code downloads.

Go Back   Wrox Programmer Forums > ASP.NET and ASP > ASP 3 Classic ASP Active Server Pages 3.0 > Classic ASP Basics
Password Reminder
Register
| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read
Classic ASP Basics For beginner programmers starting with "classic" ASP 3, pre-".NET." NOT for ASP.NET 1.0, 1.1, or 2.0
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Classic ASP Basics section of the Wrox Programmer to Programmer discussions. This is a community of tens of thousands of software programmers and website developers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining today you can post your own programming questions, respond to other developers’ questions, and eliminate the ads that are displayed to guests. Registration is fast, simple and absolutely free .
DRM-free e-books 300x50
Reply
 
Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old January 13th, 2005, 06:17 PM
Friend of Wrox
 
Join Date: Jan 2005
Location: Houston, TX, USA.
Posts: 108
Thanks: 0
Thanked 0 Times in 0 Posts
Default use CreateObject("word.application") in ASP

Hi, all,
to use:<%CreateObject("word.application")%>, the server machine must have to install MS word? Because I create a program, I can run it in my local server, but can't run it in our production server. URGENT!!!

Reply With Quote
  #2 (permalink)  
Old January 13th, 2005, 06:44 PM
Friend of Wrox
Points: 6,664, Level: 34
Points: 6,664, Level: 34 Points: 6,664, Level: 34 Points: 6,664, Level: 34
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Jan 2004
Location: Sydney, NSW, Australia.
Posts: 1,870
Thanks: 12
Thanked 20 Times in 20 Posts
Send a message via AIM to mat41
Default

Are you getting an error? Please describe the behaviours

Wind is your friend
Matt
Reply With Quote
  #3 (permalink)  
Old January 13th, 2005, 11:03 PM
Friend of Wrox
 
Join Date: Jan 2005
Location: Houston, TX, USA.
Posts: 108
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Hi, mat41
Yes, I got an error say. I know now. I saw an artical say to create a word.application object, server side machine must install MS word.
Thanks. it is said to create RTF file is much safer and efficient than word file, but the source code is too complex, did you ever do that?

Andraw


Reply With Quote
  #4 (permalink)  
Old January 13th, 2005, 11:38 PM
Friend of Wrox
Points: 6,664, Level: 34
Points: 6,664, Level: 34 Points: 6,664, Level: 34 Points: 6,664, Level: 34
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Jan 2004
Location: Sydney, NSW, Australia.
Posts: 1,870
Thanks: 12
Thanked 20 Times in 20 Posts
Send a message via AIM to mat41
Default

RTF, no

;;;safer
I am not so security savvy, we have NA's for hat sort of thing.

;;;efficient
One of my favourite sayings come to mind 'buy more hardware' easy to say, as a developer it doesnt come out of my pocket.

Wind is your friend
Matt
Reply With Quote
  #5 (permalink)  
Old January 13th, 2005, 11:58 PM
Friend of Wrox
 
Join Date: Jan 2005
Location: Houston, TX, USA.
Posts: 108
Thanks: 0
Thanked 0 Times in 0 Posts
Default

mat41,
How can I create a report that not saved in server side, but client can save it in the client side. Did you ever use CreateObject("word.application"), we can write data to it, but if you want to display it in screen, you have to save it in the server side, is there some good way?

Andraw

Reply With Quote
  #6 (permalink)  
Old January 14th, 2005, 12:11 AM
Friend of Wrox
Points: 6,664, Level: 34
Points: 6,664, Level: 34 Points: 6,664, Level: 34 Points: 6,664, Level: 34
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Jan 2004
Location: Sydney, NSW, Australia.
Posts: 1,870
Thanks: 12
Thanked 20 Times in 20 Posts
Send a message via AIM to mat41
Default

;;;How can I create a report that not saved in server side
To show it we have to save it, I believe saving it on the server is our only option initially.

;;;but client can save it
The client can save it once opened

;;;is there some good way
http://support.microsoft.com/default...b;en-us;301044

Wind is your friend
Matt
Reply With Quote
  #7 (permalink)  
Old January 14th, 2005, 12:46 AM
Friend of Wrox
 
Join Date: Jan 2005
Location: Houston, TX, USA.
Posts: 108
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Matt,
thks for your response. But save files in the server will generate many dummy files in server machine. Another thing if one user is displaying the report, at the same time, aonther user try to save or modify the same file, what will happen? if for different user, same ther rpt as different file, will cause many many files in server. any good way?

Andraw

Reply With Quote
  #8 (permalink)  
Old January 14th, 2005, 01:15 AM
Friend of Wrox
Points: 6,664, Level: 34
Points: 6,664, Level: 34 Points: 6,664, Level: 34 Points: 6,664, Level: 34
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Jan 2004
Location: Sydney, NSW, Australia.
Posts: 1,870
Thanks: 12
Thanked 20 Times in 20 Posts
Send a message via AIM to mat41
Default

The client saves it to his local machine, not to the server (you need to file upload for this). When you write the server side script to create the file, this is when it gets saved to the server. I thought your question seemed a bit weird, I obviously miss understood what you were asking.

What do you want to do, let people upload document to your site?




Wind is your friend
Matt
Reply With Quote
  #9 (permalink)  
Old January 14th, 2005, 02:13 PM
Friend of Wrox
 
Join Date: Jan 2005
Location: Houston, TX, USA.
Posts: 108
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Matt,
I also think the problem is werid. my boss want me to show it on the screen, and also user can save it on the user machine, at the same time, the file is nt save in the server side.
Now I decide to do like this:
Create a report.doc on the server side, then ask the user to save it, after that delete at once. How can I do that? i have following codes:

  strFileName = "reportWord.doc"
  Response.ContentType = "application/msword"
  Response.AddHeader "Content-isposition", "attachement;filename=""" & strFileName & """"

Suppose there is a dialog box appear to ask user to save it, but nothing happen, can anybody give me the completed code to ask user to save the file? tks

Andraw


Reply With Quote
  #10 (permalink)  
Old January 14th, 2005, 07:56 PM
Friend of Wrox
Points: 6,664, Level: 34
Points: 6,664, Level: 34 Points: 6,664, Level: 34 Points: 6,664, Level: 34
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Jan 2004
Location: Sydney, NSW, Australia.
Posts: 1,870
Thanks: 12
Thanked 20 Times in 20 Posts
Send a message via AIM to mat41
Default

Did you have a look at the link I gave you?

http://support.microsoft.com/default...b;en-us;301044

Additionaly:
http://p2p.wrox.com/search.asp?mode=...ment&x=18&y=14

;;;can anybody give me the completed code
This place is all about troubleshooting problematic code. All the code is there (in the link - almost cut n paste), on this forum (use the search) and many other places on the net. Have a go, if you get stuck post specific problems. The more specific the quicker you will get a solution.

Wind is your friend
Matt
Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
ASP & Excel - Permission denied: 'CreateObject' shamigc Classic ASP Components 1 May 9th, 2006 06:58 PM
error when createobject excel.application vovo Classic ASP Professional 0 February 3rd, 2005 12:29 AM
Server.CreateObject("Outlook.Application") Dave Sell Classic ASP Professional 1 September 4th, 2004 01:44 PM
Word application kekohchaa VS.NET 2002/2003 1 July 1st, 2004 07:14 AM



All times are GMT -4. The time now is 01:30 PM.


Powered by vBulletin®
Copyright ©2000 - 2019, Jelsoft Enterprises Ltd.
© 2013 John Wiley & Sons, Inc.