 |
| 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 software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
|
|
|
|

January 13th, 2005, 06:17 PM
|
|
Friend of Wrox
|
|
Join Date: Jan 2005
Posts: 108
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
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!!!
|
|

January 13th, 2005, 06:44 PM
|
|
Friend of Wrox
|
|
Join Date: Jan 2004
Posts: 1,870
Thanks: 12
Thanked 20 Times in 20 Posts
|
|
Are you getting an error? Please describe the behaviours
Wind is your friend
Matt
|
|

January 13th, 2005, 11:03 PM
|
|
Friend of Wrox
|
|
Join Date: Jan 2005
Posts: 108
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
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
|
|

January 13th, 2005, 11:38 PM
|
|
Friend of Wrox
|
|
Join Date: Jan 2004
Posts: 1,870
Thanks: 12
Thanked 20 Times in 20 Posts
|
|
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
|
|

January 13th, 2005, 11:58 PM
|
|
Friend of Wrox
|
|
Join Date: Jan 2005
Posts: 108
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
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
|
|

January 14th, 2005, 12:11 AM
|
|
Friend of Wrox
|
|
Join Date: Jan 2004
Posts: 1,870
Thanks: 12
Thanked 20 Times in 20 Posts
|
|
;;;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
|
|

January 14th, 2005, 12:46 AM
|
|
Friend of Wrox
|
|
Join Date: Jan 2005
Posts: 108
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
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
|
|

January 14th, 2005, 01:15 AM
|
|
Friend of Wrox
|
|
Join Date: Jan 2004
Posts: 1,870
Thanks: 12
Thanked 20 Times in 20 Posts
|
|
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
|
|

January 14th, 2005, 02:13 PM
|
|
Friend of Wrox
|
|
Join Date: Jan 2005
Posts: 108
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
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
|
|

January 14th, 2005, 07:56 PM
|
|
Friend of Wrox
|
|
Join Date: Jan 2004
Posts: 1,870
Thanks: 12
Thanked 20 Times in 20 Posts
|
|
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
|
|
 |