This is a discussion on "ASP to MS Word!" within the Classic ASP section. This forum, and the thread "ASP to MS Word! are both part of the Program Your Website category.
|
|
|
|
|
![]() |
||
ASP to MS Word!
|
||
| Notices |
![]() |
|
|
LinkBack | Thread Tools |
|
#1
|
|||
|
|||
|
ASP to MS Word!
Is it posible that i can send a specific recordset from my asp form to the ms word word processor?
Can any body teach me how?
Last Blog Entry: ASP Programming Tips and Technique (Oct 26th, 2007)
|
|
|
|
#2
|
|||
|
|||
|
Hi Monie,
I may be totally way off here but it may be worth a go. I don't do asp but jsp and php so I can't tell you the syntax. Never tried this before so you could be my lil' guinea-pig here :wink:. Have you tried writing your data to a .doc in the same way you would to a .txt file? I'm sure Rob will get back to you with a more appropriate and explanative way of doing this, as soon as he's finished doing his nails |
|
#3
|
||||
|
||||
|
Hi monie.... My nails are dry now, so here you go:-
http://www.serverwatch.com/tutorials...le.php/1493361 This should help you in what you are trying to do. If you get stuck, post back here so I can help you further. :wink:
__________________
Click the 'Thanks!' button if this post has helped you Rob - Webforumz Founder
Last Blog Entry: Creative Labs threaten developer over home made drivers.... (Apr 1st, 2008)
|
|
#4
|
|||
|
|||
|
Hai rob,
Well, actually thats not what i want to do Ok... I have a Search Page in asp that will search something in my database and displays it in my Display page In this Display page, there will be a button(generate report)! When the user click it, all the result that is currently displayed in the Display page will be transfer or coppied to microsoft word page! I just can print it out from the asp page by providing the javascript print function...but i wantet to try new ways of doing this things Can you help me Thanx Rob.
Last Blog Entry: ASP Programming Tips and Technique (Oct 26th, 2007)
|
|
#5
|
||||
|
||||
|
monie...
After hearing exactly what you are trying to do, I'll refer you again back to the link I gave you above. It is what you are looking for. You will have to fire information at the MS word page, in exactly the same way explained at that link above. Sorry if my advice does not seem helpful to you, but I suggest you go back to the link above and use that method. If you get stuck with it, come back to this thread.
__________________
Click the 'Thanks!' button if this post has helped you Rob - Webforumz Founder
Last Blog Entry: Creative Labs threaten developer over home made drivers.... (Apr 1st, 2008)
|
|
#6
|
|||
|
|||
|
Actually i dont really understand what to do from that link that you gave me
It's very complicated... can you teach me how to do it instead, please
Last Blog Entry: ASP Programming Tips and Technique (Oct 26th, 2007)
|
|
#7
|
||||
|
||||
|
Basically Monie, make a copy of the DISPLAY page you have that brings you the results.... rename it to WordPage.asp.... or something.
Now, instead of writing the results like it were a webpage, send the content to the MS word document in the manner described in the resource I pointed you to. Hope that makes sense.
__________________
Click the 'Thanks!' button if this post has helped you Rob - Webforumz Founder
Last Blog Entry: Creative Labs threaten developer over home made drivers.... (Apr 1st, 2008)
|
|
#8
|
|||
|
|||
|
ok...
Where should i put the code? does it send everything in my display to ms word? how does the ms word opens, by button? can i post my code to you?
Last Blog Entry: ASP Programming Tips and Technique (Oct 26th, 2007)
|
|
#9
|
||||
|
||||
|
Hi Monie.... post your display code in this thread, and I'll see what I can do. bear with me though... the next 2 days are pretty hectic for me.
__________________
Click the 'Thanks!' button if this post has helped you Rob - Webforumz Founder
Last Blog Entry: Creative Labs threaten developer over home made drivers.... (Apr 1st, 2008)
|
|
#10
|
|||
|
|||
|
This is my display page which displays three things that is: User Name, User Comment and the comment date.
Last Blog Entry: ASP Programming Tips and Technique (Oct 26th, 2007)
|
|
#11
|
||||
|
||||
|
I'll help you, but for the life of me, I cant see the benefit of sending this to a word document.
__________________
Click the 'Thanks!' button if this post has helped you Rob - Webforumz Founder
Last Blog Entry: Creative Labs threaten developer over home made drivers.... (Apr 1st, 2008)
|
|
#12
|
|||
|
|||
|
I just want to get the idea...
If i know how to code it, i can use it in my real page. Sorry, this is the only page that available to me right now All my files is in my home So..can you show me step by step Rob? Please...i'll wait for your reply Thanx again..
Last Blog Entry: ASP Programming Tips and Technique (Oct 26th, 2007)
|
|
#13
|
|||
|
|||
|
Hai Rob...
So did you manage to go through my code I really need your help on this... Please..
Last Blog Entry: ASP Programming Tips and Technique (Oct 26th, 2007)
|
|
#14
|
||||
|
||||
|
Can I ask you to bear with me? I have already said the next few days are hectic.
Please be patient monie.
__________________
Click the 'Thanks!' button if this post has helped you Rob - Webforumz Founder
Last Blog Entry: Creative Labs threaten developer over home made drivers.... (Apr 1st, 2008)
|
|
#15
|
|||
|
|||
|
Ok Rob...
I'll wait for ya! Thanx anywhere, for helping me! I have gone through the link site that you gave me but still I dont understand! Good luck with your "hetic day"
Last Blog Entry: ASP Programming Tips and Technique (Oct 26th, 2007)
|
|
#16
|
|||
|
|||
|
Hai Rob...
I have tried to use this code on the top of my page but when the page load, it will directly ask the user to save the page or not. What i want to do is to open ms word with a button! so...hows your hetic day going on
Last Blog Entry: ASP Programming Tips and Technique (Oct 26th, 2007)
|
|
#17
|
|||
|
|||
|
<font size="2"><span style="font-family:Verdana">Hai Rob...
I have found a simple solution for the ASP TO WORD problem! Check this out: ASP TO WORD It almost the same as your approach: YOUR ASP TO WORD, but this approach: MY ASP TO WORD, is more easier to be understand especially me. Actually there is a bit difference between the code, Your method will ask the user to save the page as word! The method that I found will open a word inside a browser... The user can edit the page in word before saving them as .doc page!
Last Blog Entry: ASP Programming Tips and Technique (Oct 26th, 2007)
|
|
#18
|
||||
|
||||
|
I'm glad you found a solution.... although I am still puzzled by why you needed to do this.
Maybe now you have solved this monie, you could write a tutorial for others to follow?
__________________
Click the 'Thanks!' button if this post has helped you Rob - Webforumz Founder
Last Blog Entry: Creative Labs threaten developer over home made drivers.... (Apr 1st, 2008)
|
![]() |
| Tags |
| asp, word |
| Thread Tools | |