473,383 Members | 1,795 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,383 software developers and data experts.

Inserting a value into word doc

Hello

I have a simple problem but I think the solution might be tricky...

I have a word document on the server which people can download.
However, what I would like is to use asp.net to insert a unique serial
number into the word document before it is downloaded. So I need some
way to insert a value into the word document. Is there a simple way of
doing this???

Many thanks....

Flurry

Sep 12 '06 #1
6 1434
Hi Flurry,

You can do this, but you need Visual Studio Tools for Office to modify the
file's content.

http://msdn.microsoft.com/office/tool/vsto/default.aspx

You'd be best to ask in the VSTO newsgroup

microsoft.public.vsnet.vstools.office

Ken
Microsoft MVP [ASP.NET]
"Flurry" <cj******@stmail.staffs.ac.ukwrote in message
news:11**********************@p79g2000cwp.googlegr oups.com...
Hello

I have a simple problem but I think the solution might be tricky...

I have a word document on the server which people can download.
However, what I would like is to use asp.net to insert a unique serial
number into the word document before it is downloaded. So I need some
way to insert a value into the word document. Is there a simple way of
doing this???

Many thanks....

Flurry

Sep 12 '06 #2
Ken,

Just wondering if there are licensing issues involved.

--
Eliyahu Goldin,
Software Developer & Consultant
Microsoft MVP [ASP.NET]
"Ken Cox [Microsoft MVP]" <BA**********@newsgroups.nospamwrote in message
news:un***************@TK2MSFTNGP06.phx.gbl...
Hi Flurry,

You can do this, but you need Visual Studio Tools for Office to modify the
file's content.

http://msdn.microsoft.com/office/tool/vsto/default.aspx

You'd be best to ask in the VSTO newsgroup

microsoft.public.vsnet.vstools.office

Ken
Microsoft MVP [ASP.NET]
"Flurry" <cj******@stmail.staffs.ac.ukwrote in message
news:11**********************@p79g2000cwp.googlegr oups.com...
>Hello

I have a simple problem but I think the solution might be tricky...

I have a word document on the server which people can download.
However, what I would like is to use asp.net to insert a unique serial
number into the word document before it is downloaded. So I need some
way to insert a value into the word document. Is there a simple way of
doing this???

Many thanks....

Flurry


Sep 12 '06 #3
There will likely be performance issues if your doing it ona web server as
Office typically doesn't thread well. What I've done in the past is create
a queuing mechanim to deal with the files individually, but that involved
posting a link to people to enable them to download the file after I'd had
done stuff with it. It got round any licening issues as I was only running
a single instance at any one time.

Regards

John Timney (MVP)
http://www.johntimney.com
"Eliyahu Goldin" <RE**************************@mMvVpPsS.orgwrote in
message news:OV*************@TK2MSFTNGP05.phx.gbl...
Ken,

Just wondering if there are licensing issues involved.

--
Eliyahu Goldin,
Software Developer & Consultant
Microsoft MVP [ASP.NET]
"Ken Cox [Microsoft MVP]" <BA**********@newsgroups.nospamwrote in
message news:un***************@TK2MSFTNGP06.phx.gbl...
>Hi Flurry,

You can do this, but you need Visual Studio Tools for Office to modify
the file's content.

http://msdn.microsoft.com/office/tool/vsto/default.aspx

You'd be best to ask in the VSTO newsgroup

microsoft.public.vsnet.vstools.office

Ken
Microsoft MVP [ASP.NET]
"Flurry" <cj******@stmail.staffs.ac.ukwrote in message
news:11**********************@p79g2000cwp.googleg roups.com...
>>Hello

I have a simple problem but I think the solution might be tricky...

I have a word document on the server which people can download.
However, what I would like is to use asp.net to insert a unique serial
number into the word document before it is downloaded. So I need some
way to insert a value into the word document. Is there a simple way of
doing this???

Many thanks....

Flurry



Sep 12 '06 #4
Yup, VSTO isn't free - it's an add-on to Visual Studio. After that, there
are some runtime redistributables that are required but free to Office
users.

I found the technology very appealing until it came to deployment on the
Internet until I hit a showstopper:

http://weblogs.asp.net/kencox/archiv...eployment.aspx

"Eliyahu Goldin" <RE**************************@mMvVpPsS.orgwrote in
message news:OV*************@TK2MSFTNGP05.phx.gbl...
Ken,

Just wondering if there are licensing issues involved.

--
Eliyahu Goldin,
Software Developer & Consultant
Microsoft MVP [ASP.NET]
"Ken Cox [Microsoft MVP]" <BA**********@newsgroups.nospamwrote in
message news:un***************@TK2MSFTNGP06.phx.gbl...
>Hi Flurry,

You can do this, but you need Visual Studio Tools for Office to modify
the file's content.

http://msdn.microsoft.com/office/tool/vsto/default.aspx

You'd be best to ask in the VSTO newsgroup

microsoft.public.vsnet.vstools.office

Ken
Microsoft MVP [ASP.NET]
"Flurry" <cj******@stmail.staffs.ac.ukwrote in message
news:11**********************@p79g2000cwp.googleg roups.com...
>>Hello

I have a simple problem but I think the solution might be tricky...

I have a word document on the server which people can download.
However, what I would like is to use asp.net to insert a unique serial
number into the word document before it is downloaded. So I need some
way to insert a value into the word document. Is there a simple way of
doing this???

Many thanks....

Flurry



Sep 12 '06 #5
Hi John,

Keep in mind that VSTO exposes the ServerDocument object that doesn't
require the Word to be on the Web server at all.

Ken

"John Timney (MVP)" <x_****@timney.eclipse.co.ukwrote in message
news:4e******************************@eclipse.net. uk...
There will likely be performance issues if your doing it ona web server
as Office typically doesn't thread well. What I've done in the past is
create a queuing mechanim to deal with the files individually, but that
involved posting a link to people to enable them to download the file
after I'd had done stuff with it. It got round any licening issues as I
was only running a single instance at any one time.

Regards

John Timney (MVP)
http://www.johntimney.com
"Eliyahu Goldin" <RE**************************@mMvVpPsS.orgwrote in
message news:OV*************@TK2MSFTNGP05.phx.gbl...
>Ken,

Just wondering if there are licensing issues involved.

--
Eliyahu Goldin,
Software Developer & Consultant
Microsoft MVP [ASP.NET]
"Ken Cox [Microsoft MVP]" <BA**********@newsgroups.nospamwrote in
message news:un***************@TK2MSFTNGP06.phx.gbl...
>>Hi Flurry,

You can do this, but you need Visual Studio Tools for Office to modify
the file's content.

http://msdn.microsoft.com/office/tool/vsto/default.aspx

You'd be best to ask in the VSTO newsgroup

microsoft.public.vsnet.vstools.office

Ken
Microsoft MVP [ASP.NET]
"Flurry" <cj******@stmail.staffs.ac.ukwrote in message
news:11**********************@p79g2000cwp.google groups.com...
Hello

I have a simple problem but I think the solution might be tricky...

I have a word document on the server which people can download.
However, what I would like is to use asp.net to insert a unique serial
number into the word document before it is downloaded. So I need some
way to insert a value into the word document. Is there a simple way of
doing this???

Many thanks....

Flurry



Sep 12 '06 #6
I was more alluding to only using Office on the webserver Ken and the
problems it can create if Eliyahu decided not to use VSTO.

--
Regards

John Timney (MVP)
http://www.johntimney.com
"Ken Cox [Microsoft MVP]" <BA**********@newsgroups.nospamwrote in message
news:uN**************@TK2MSFTNGP03.phx.gbl...
Hi John,

Keep in mind that VSTO exposes the ServerDocument object that doesn't
require the Word to be on the Web server at all.

Ken

"John Timney (MVP)" <x_****@timney.eclipse.co.ukwrote in message
news:4e******************************@eclipse.net. uk...
>There will likely be performance issues if your doing it ona web server
as Office typically doesn't thread well. What I've done in the past is
create a queuing mechanim to deal with the files individually, but that
involved posting a link to people to enable them to download the file
after I'd had done stuff with it. It got round any licening issues as I
was only running a single instance at any one time.

Regards

John Timney (MVP)
http://www.johntimney.com
"Eliyahu Goldin" <RE**************************@mMvVpPsS.orgwrote in
message news:OV*************@TK2MSFTNGP05.phx.gbl...
>>Ken,

Just wondering if there are licensing issues involved.

--
Eliyahu Goldin,
Software Developer & Consultant
Microsoft MVP [ASP.NET]
"Ken Cox [Microsoft MVP]" <BA**********@newsgroups.nospamwrote in
message news:un***************@TK2MSFTNGP06.phx.gbl...
Hi Flurry,

You can do this, but you need Visual Studio Tools for Office to modify
the file's content.

http://msdn.microsoft.com/office/tool/vsto/default.aspx

You'd be best to ask in the VSTO newsgroup

microsoft.public.vsnet.vstools.office

Ken
Microsoft MVP [ASP.NET]
"Flurry" <cj******@stmail.staffs.ac.ukwrote in message
news:11**********************@p79g2000cwp.googl egroups.com...
Hello
>
I have a simple problem but I think the solution might be tricky...
>
I have a word document on the server which people can download.
However, what I would like is to use asp.net to insert a unique serial
number into the word document before it is downloaded. So I need some
way to insert a value into the word document. Is there a simple way of
doing this???
>
Many thanks....
>
Flurry
>




Sep 12 '06 #7

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: spacecake | last post by:
I'm using office web control to use a pivot table. I want to change dynamicly the rows, colums and totals. I'm having a problem with the totals: I want to generate the total dynamicly static it...
2
by: Royse | last post by:
Hi Group I'm trying to get the value from a select and place it into some text fields. all these fields have the same name. when a user enters the page all fields are empty Then, when they click...
8
by: Evan | last post by:
If there are any enlightend souls out there that can help me, I would greatly appreciate it. I would like to use a macro to take a value and add it to an access database. I am having a problem...
1
by: Jim | last post by:
I have a datagrid on a windows form that is filled using a data adapter and dataset created in code. I have mapped columns to the various fields. The user enters new infromation into the grid and...
3
by: nagen | last post by:
I have an existing excel file & i would like to enter a specific value at cell A1 in Excel2003 using asp.net 2.0 how can i do this?
1
AllusiveKitten
by: AllusiveKitten | last post by:
Hi Is there a possible way to insert a record that includes an Apostrophe? At the moment it is splitting the field into two as it see's the apostrophe as a separator. Thank you for your...
4
by: Stale | last post by:
When you insert value to an empty span in IE, the browser will not add the needed space between spans. Example: <script> function btnclick() { document.getElementById("sp2").innerHTML="KING"...
1
by: Mike Fellows | last post by:
I have some images stored locally that i retrieve and insert into a word document that is programatically created im using the following code If File.Exists("C:\Pic2.jpg") Then...
10
by: sam.barker0 | last post by:
Hi there, I am trying to develop a compressed suffix trie. But first I want to get the trie working. The structure of the trie is like class trie { private: bool last_node; map<char,...
1
by: rajujrk | last post by:
Hai All, I am new JBoss Seam, but i executes the Seam Application.. But now My Problem is to insert the values from JSF based registration from.. How to insert the values using seam? ...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.