Search:
Namespaces
Discussions
.NET v1.1
Feedback
Word Automation.
Messages
Related Types
This message was discovered on
ASPFriends.com 'winforms-cs' list
.
Stephen Rees
Hi all ...
What I'm after is this ::
I can make an app to automate Word ( though the VB macros created in Word
are not as useful as I had hoped).
My question is this ::
What I want to do is convert that app to a control and run it client side in
a web page - i.e. a dotNEt applet.
Now - I have been playing and have got dll's that reference other dll's that
reference other dll's to download into the cache.
With the Word app I have made it ref's Interop.Word.dll, which refs
Interop.Office.dll and Interop.VBIDE.dll, and Interop.VBIDE.dll refs
Interop.Office.dll. All standard stuff - just use the VS.NET examples.
But when I convert to a control and try to get it all working as an applet
then ONLY Interop.Office and my app dll download - I cannot for the life of
me get Interop.Office.dll and Interop.VBIDE.dll into the cache - no matter
what security I use.
Why ?
Is it the way that VS.NET compiles the referenced dll's ?
I have got "one.dll that refs two.dll that refs three.dll" working and all
are downloaded.
But this is different because a refs b, b refs c and d, c refs d.
Normally the drop out answer is to shove all the code into a single .cs and
make a single dll from it, that always works.
But we can't here 'cos we haven't got the code.
Is it to do with the compilation of it all ?
Or is there something I am missing - can I even expect to access Word(on the
client) from a client control downloaded from the web ? Even with no
security ? If not, why not ?
It should work shouldn't it ?
Regards
Steve.
Reply to this message...
Dody Gunawinata
This might be the solution.
http://radio.aiesec.ws/users/0000001/categories/internetGuideToDotnet/20
02/06/03.html
Dody Gunawinata
Are You Experienced? |
http://us.aieseconline.net
Personal Weblog |
http://dodyg.org
-----Original Message-----
From: Stephen Rees [mailto:
Click here to reveal e-mail address
]
Sent: Monday, June 10, 2002 3:44 PM
To: winforms-cs
Subject: [winforms-cs] Word Automation.
Importance: High
Sensitivity: Confidential
Hi all ...
What I'm after is this ::
I can make an app to automate Word ( though the VB macros created in
Word are not as useful as I had hoped).
My question is this ::
What I want to do is convert that app to a control and run it client
side in a web page - i.e. a dotNEt applet.
Now - I have been playing and have got dll's that reference other dll's
that reference other dll's to download into the cache.
With the Word app I have made it ref's Interop.Word.dll, which refs
Interop.Office.dll and Interop.VBIDE.dll, and Interop.VBIDE.dll refs
Interop.Office.dll. All standard stuff - just use the VS.NET examples.
But when I convert to a control and try to get it all working as an
applet then ONLY Interop.Office and my app dll download - I cannot for
the life of me get Interop.Office.dll and Interop.VBIDE.dll into the
cache - no matter what security I use.
Why ?
Is it the way that VS.NET compiles the referenced dll's ?
I have got "one.dll that refs two.dll that refs three.dll" working and
all are downloaded.
But this is different because a refs b, b refs c and d, c refs d.
Normally the drop out answer is to shove all the code into a single .cs
and make a single dll from it, that always works.
But we can't here 'cos we haven't got the code.
Is it to do with the compilation of it all ?
Or is there something I am missing - can I even expect to access Word(on
the client) from a client control downloaded from the web ? Even with no
security ? If not, why not ?
It should work shouldn't it ?
Regards
Steve.
| [winforms-cs] member
Click here to reveal e-mail address
= YOUR ID |
http://www.asplists.com/asplists/winforms-cs.asp
= JOIN/QUIT
Reply to this message...
Stephen Rees
Thanx Dody ...
I'll check it out. As it happens it's for a CV anyway ! Just so I can put a
link on my cv where they can update the cv, and I don't have to worry about
re-doing/updating/uploading it all the time; that and simply exploring.
Maybe even give them a choice of what categories they want to include, all
I'll have to do is update a web form.
I have thouigh about making a service out of it but doing a single format
was a pain, the VB macro I made was pretty much useless, I really can't be
bothered to do loads of them and give people a choice.
If I did - I'd probs look at XML -> rtf, I have just downloaded the rtf
spec.
I have a VB proggy that does rtf -> XML - even that doesn't work properly.
But is it really worth it ? I just wanna get the applet working, as I'm half
way there !
Why oh why can't Microsoft just play ball and give us a xml <-> rtf, one
that works, every one gonna wanna play with it and use it.
Cheers
Steve.
(will post you my findings if and when)
-----Original Message-----
From: Dody Gunawinata [mailto:
Click here to reveal e-mail address
]
Sent: 10 June 2002 20:54
To: winforms-cs
Subject: [winforms-cs] RE: Word Automation.
Sensitivity: Confidential
This might be the solution.
http://radio.aiesec.ws/users/0000001/categories/internetGuideToDotnet/2002/0
6/03.html
Dody Gunawinata
Are You Experienced? |
http://us.aieseconline.net
Personal Weblog |
http://dodyg.org
-----Original Message-----
From: Stephen Rees [mailto:
Click here to reveal e-mail address
]
Sent: Monday, June 10, 2002 3:44 PM
To: winforms-cs
Subject: [winforms-cs] Word Automation.
Importance: High
Sensitivity: Confidential
Hi all ...
What I'm after is this ::
I can make an app to automate Word ( though the VB macros created in Word
are not as useful as I had hoped).
My question is this ::
What I want to do is convert that app to a control and run it client side
in a web page - i.e. a dotNEt applet.
Now - I have been playing and have got dll's that reference other dll's
that reference other dll's to download into the cache.
With the Word app I have made it ref's Interop.Word.dll, which refs
Interop.Office.dll and Interop.VBIDE.dll, and Interop.VBIDE.dll refs
Interop.Office.dll. All standard stuff - just use the VS.NET examples.
But when I convert to a control and try to get it all working as an applet
then ONLY Interop.Office and my app dll download - I cannot for the life of
me get Interop.Office.dll and Interop.VBIDE.dll into the cache - no matter
what security I use.
Why ?
Is it the way that VS.NET compiles the referenced dll's ?
I have got "one.dll that refs two.dll that refs three.dll" working and all
are downloaded.
But this is different because a refs b, b refs c and d, c refs d.
Normally the drop out answer is to shove all the code into a single .cs
and make a single dll from it, that always works.
But we can't here 'cos we haven't got the code.
Is it to do with the compilation of it all ?
Or is there something I am missing - can I even expect to access Word(on
the client) from a client control downloaded from the web ? Even with no
security ? If not, why not ?
It should work shouldn't it ?
Regards
Steve.
| [winforms-cs] member
Click here to reveal e-mail address
= YOUR ID |
http://www.asplists.com/asplists/winforms-cs.asp
= JOIN/QUIT
| [winforms-cs] member
Click here to reveal e-mail address
= YOUR ID |
http://www.asplists.com/asplists/winforms-cs.asp
= JOIN/QUIT
Reply to this message...
Stephen Rees
Dody ...
I don't think that's it ?
I haven't any problem opening Word form the app, I can't get the dll's
downloaded in the cache; perhaps that article could come in handy as and
when I do and it still doesn't work !
(That's concievable as I'm trying to get to Word from the cache)
But first things first.
Dody ... paid traineeships in USA ??? yes please !
I can't get work over here (UK) since I didn't get my degree 'cause I
dropped out because I got into computers too much and couldn't concentrate
oin the Maths !
That was a few years ago now, now I would consider myself a burden to
Microsoft but a Godsend to 70% of web companies.
A paid traineeship would be fab - seeing as I'd probably know most of it
anyway and could even become productive and actually make money for them.
Any advice welcome, I'd be over there yesterday.
Steve.
-----Original Message-----
From: Dody Gunawinata [mailto:
Click here to reveal e-mail address
]
Sent: 10 June 2002 20:54
To: winforms-cs
Subject: [winforms-cs] RE: Word Automation.
Sensitivity: Confidential
This might be the solution.
http://radio.aiesec.ws/users/0000001/categories/internetGuideToDotnet/2002/0
6/03.html
Dody Gunawinata
Are You Experienced? |
http://us.aieseconline.net
Personal Weblog |
http://dodyg.org
-----Original Message-----
From: Stephen Rees [mailto:
Click here to reveal e-mail address
]
Sent: Monday, June 10, 2002 3:44 PM
To: winforms-cs
Subject: [winforms-cs] Word Automation.
Importance: High
Sensitivity: Confidential
Hi all ...
What I'm after is this ::
I can make an app to automate Word ( though the VB macros created in Word
are not as useful as I had hoped).
My question is this ::
What I want to do is convert that app to a control and run it client side
in a web page - i.e. a dotNEt applet.
Now - I have been playing and have got dll's that reference other dll's
that reference other dll's to download into the cache.
With the Word app I have made it ref's Interop.Word.dll, which refs
Interop.Office.dll and Interop.VBIDE.dll, and Interop.VBIDE.dll refs
Interop.Office.dll. All standard stuff - just use the VS.NET examples.
But when I convert to a control and try to get it all working as an applet
then ONLY Interop.Office and my app dll download - I cannot for the life of
me get Interop.Office.dll and Interop.VBIDE.dll into the cache - no matter
what security I use.
Why ?
Is it the way that VS.NET compiles the referenced dll's ?
I have got "one.dll that refs two.dll that refs three.dll" working and all
are downloaded.
But this is different because a refs b, b refs c and d, c refs d.
Normally the drop out answer is to shove all the code into a single .cs
and make a single dll from it, that always works.
But we can't here 'cos we haven't got the code.
Is it to do with the compilation of it all ?
Or is there something I am missing - can I even expect to access Word(on
the client) from a client control downloaded from the web ? Even with no
security ? If not, why not ?
It should work shouldn't it ?
Regards
Steve.
| [winforms-cs] member
Click here to reveal e-mail address
= YOUR ID |
http://www.asplists.com/asplists/winforms-cs.asp
= JOIN/QUIT
| [winforms-cs] member
Click here to reveal e-mail address
= YOUR ID |
http://www.asplists.com/asplists/winforms-cs.asp
= JOIN/QUIT
Reply to this message...
Dody Gunawinata
I'm actually building a similar stuff (producing CV online and get it as
Word document). I'm taking the Format Builder -> XML Format -> Word
Printer approach. It'll be good enough to enter Beta test in two days
for our international internship program (I'll post it to this link).
XML Format <-> Printer pattern can be used for many application like
this.
The Format Builder can be in a form of a website or a desktop
application. It doesn't really matter.
The Printer would be a web service that read the XML doc, create an X
format file, store the file in the server temporarily, and return a
unique link for the caller application to download the file.
Regards,
Dody Gunawinata
Are You Experienced? |
http://us.aieseconline.net
Personal Weblog |
http://dodyg.org
-----Original Message-----
From: Stephen Rees [mailto:
Click here to reveal e-mail address
]
Sent: Monday, June 10, 2002 5:04 PM
To: winforms-cs
Subject: [winforms-cs] RE: Word Automation.
Importance: High
Sensitivity: Confidential
Thanx Dody ...
I'll check it out. As it happens it's for a CV anyway ! Just so I can
put a link on my cv where they can update the cv, and I don't have to
worry about re-doing/updating/uploading it all the time; that and simply
exploring.
Maybe even give them a choice of what categories they want to include,
all I'll have to do is update a web form.
I have thouigh about making a service out of it but doing a single
format was a pain, the VB macro I made was pretty much useless, I really
can't be bothered to do loads of them and give people a choice.
If I did - I'd probs look at XML -> rtf, I have just downloaded the rtf
spec.
I have a VB proggy that does rtf -> XML - even that doesn't work
properly.
But is it really worth it ? I just wanna get the applet working, as I'm
half way there !
Why oh why can't Microsoft just play ball and give us a xml <-> rtf, one
that works, every one gonna wanna play with it and use it.
Cheers
Steve.
(will post you my findings if and when)
-----Original Message-----
From: Dody Gunawinata [mailto:
Click here to reveal e-mail address
]
Sent: 10 June 2002 20:54
To: winforms-cs
Subject: [winforms-cs] RE: Word Automation.
Sensitivity: Confidential
This might be the solution.
http://radio.aiesec.ws/users/0000001/categories/internetGuideToDotnet/20
02/06/03.html
Dody Gunawinata
Are You Experienced? |
http://us.aieseconline.net
Personal Weblog |
http://dodyg.org
-----Original Message-----
From: Stephen Rees [mailto:
Click here to reveal e-mail address
]
Sent: Monday, June 10, 2002 3:44 PM
To: winforms-cs
Subject: [winforms-cs] Word Automation.
Importance: High
Sensitivity: Confidential
Hi all ...
What I'm after is this ::
I can make an app to automate Word ( though the VB macros
created in Word are not as useful as I had hoped).
My question is this ::
What I want to do is convert that app to a control and run it
client side in a web page - i.e. a dotNEt applet.
Now - I have been playing and have got dll's that reference
other dll's that reference other dll's to download into the cache.
With the Word app I have made it ref's Interop.Word.dll, which
refs Interop.Office.dll and Interop.VBIDE.dll, and Interop.VBIDE.dll
refs Interop.Office.dll. All standard stuff - just use the VS.NET
examples.
But when I convert to a control and try to get it all working as
an applet then ONLY Interop.Office and my app dll download - I cannot
for the life of me get Interop.Office.dll and Interop.VBIDE.dll into the
cache - no matter what security I use.
Why ?
Is it the way that VS.NET compiles the referenced dll's ?
I have got "one.dll that refs two.dll that refs three.dll"
working and all are downloaded.
But this is different because a refs b, b refs c and d, c refs
d.
Normally the drop out answer is to shove all the code into a
single .cs and make a single dll from it, that always works.
But we can't here 'cos we haven't got the code.
Is it to do with the compilation of it all ?
Or is there something I am missing - can I even expect to access
Word(on the client) from a client control downloaded from the web ? Even
with no security ? If not, why not ?
It should work shouldn't it ?
Regards
Steve.
| [winforms-cs] member
Click here to reveal e-mail address
= YOUR ID |
http://www.asplists.com/asplists/winforms-cs.asp
= JOIN/QUIT
| [winforms-cs] member
Click here to reveal e-mail address
= YOUR ID |
http://www.asplists.com/asplists/winforms-cs.asp
= JOIN/QUIT
| [winforms-cs] member
Click here to reveal e-mail address
= YOUR ID |
http://www.asplists.com/asplists/winforms-cs.asp
= JOIN/QUIT
Reply to this message...
Stephen Rees
Dodi ....
The "Word Printer" format, or "X Format" file .... can it be opened by Word
?
i.e. have you sorted the XML -> rtf approach ?
The way I have done it is just to open Word on the client and write out the
CV using Automation, but those bits and bobs that go in the CV could easily
be pulled from a database on the server or given a unique url.
I know that you could simply write a Word doc for the CV, take a look at the
rtf and replace the "right bits" with stuff pulled from db, or indeed an XML
file.
But thats NOT the same as actually converting XML to rtf, because it will
only work for the single doc you use as a template.
A proper XML -> rtf parser would do it for anything you shove into the XML,
and that XML would hold the data for where tables, images, styles, etc were
to be created in the final .doc
So which way have you managed to sort out ?
If you've managed to do it the latter way then I take my hat off to you.
[[
my way just uses generic routines to do things like add a row to the table,
so it could be a little bit adaptable I suppose; perhaps the person
requesting the CV could change the color of a table, or have a choice of
what information to include : but thats about it; and it needs the low
security settings to work - which is a major drawback.
I'm about to dive into permissions and see if I can request the permissions
required by displaying a dotNET generated security box and getting user
input, you know ... "this program requires more permission, do you accept"
type thing ... and which will, hopefully, overide those set on the client.
What the hell, gotta find out sometime, eh ?
Don't even know if this can be done as yet, can dotNET generate a security
box that can't be tampered with ?
I can't find an example - do you know ? Does anyone know ?
]]
Regards
Steve.
-----Original Message-----
From: Dody Gunawinata [mailto:
Click here to reveal e-mail address
]
Sent: 11 June 2002 16:15
To: winforms-cs
Subject: [winforms-cs] RE: Word Automation.
Sensitivity: Confidential
I'm actually building a similar stuff (producing CV online and get it as
Word document). I'm taking the Format Builder -> XML Format -> Word Printer
approach. It'll be good enough to enter Beta test in two days for our
international internship program (I'll post it to this link).
XML Format <-> Printer pattern can be used for many application like this.
The Format Builder can be in a form of a website or a desktop application.
It doesn't really matter.
The Printer would be a web service that read the XML doc, create an X
format file, store the file in the server temporarily, and return a unique
link for the caller application to download the file.
Regards,
Dody Gunawinata
Are You Experienced? |
http://us.aieseconline.net
Personal Weblog |
http://dodyg.org
-----Original Message-----
From: Stephen Rees [mailto:
Click here to reveal e-mail address
]
Sent: Monday, June 10, 2002 5:04 PM
To: winforms-cs
Subject: [winforms-cs] RE: Word Automation.
Importance: High
Sensitivity: Confidential
Thanx Dody ...
I'll check it out. As it happens it's for a CV anyway ! Just so I can put
a link on my cv where they can update the cv, and I don't have to worry
about re-doing/updating/uploading it all the time; that and simply
exploring.
Maybe even give them a choice of what categories they want to include, all
I'll have to do is update a web form.
I have thouigh about making a service out of it but doing a single format
was a pain, the VB macro I made was pretty much useless, I really can't be
bothered to do loads of them and give people a choice.
If I did - I'd probs look at XML -> rtf, I have just downloaded the rtf
spec.
I have a VB proggy that does rtf -> XML - even that doesn't work properly.
But is it really worth it ? I just wanna get the applet working, as I'm
half way there !
Why oh why can't Microsoft just play ball and give us a xml <-> rtf, one
that works, every one gonna wanna play with it and use it.
Cheers
Steve.
(will post you my findings if and when)
-----Original Message-----
From: Dody Gunawinata [mailto:
Click here to reveal e-mail address
]
Sent: 10 June 2002 20:54
To: winforms-cs
Subject: [winforms-cs] RE: Word Automation.
Sensitivity: Confidential
This might be the solution.
http://radio.aiesec.ws/users/0000001/categories/internetGuideToDotnet/2002/0
6/03.html
Dody Gunawinata
Are You Experienced? |
http://us.aieseconline.net
Personal Weblog |
http://dodyg.org
-----Original Message-----
From: Stephen Rees [mailto:
Click here to reveal e-mail address
]
Sent: Monday, June 10, 2002 3:44 PM
To: winforms-cs
Subject: [winforms-cs] Word Automation.
Importance: High
Sensitivity: Confidential
Hi all ...
What I'm after is this ::
I can make an app to automate Word ( though the VB macros created in
Word are not as useful as I had hoped).
My question is this ::
What I want to do is convert that app to a control and run it client
side in a web page - i.e. a dotNEt applet.
Now - I have been playing and have got dll's that reference other dll's
that reference other dll's to download into the cache.
With the Word app I have made it ref's Interop.Word.dll, which refs
Interop.Office.dll and Interop.VBIDE.dll, and Interop.VBIDE.dll refs
Interop.Office.dll. All standard stuff - just use the VS.NET examples.
But when I convert to a control and try to get it all working as an
applet then ONLY Interop.Office and my app dll download - I cannot for the
life of me get Interop.Office.dll and Interop.VBIDE.dll into the cache - no
matter what security I use.
Why ?
Is it the way that VS.NET compiles the referenced dll's ?
I have got "one.dll that refs two.dll that refs three.dll" working and
all are downloaded.
But this is different because a refs b, b refs c and d, c refs d.
Normally the drop out answer is to shove all the code into a single .cs
and make a single dll from it, that always works.
But we can't here 'cos we haven't got the code.
Is it to do with the compilation of it all ?
Or is there something I am missing - can I even expect to access Word(on
the client) from a client control downloaded from the web ? Even with no
security ? If not, why not ?
It should work shouldn't it ?
Regards
Steve.
| [winforms-cs] member
Click here to reveal e-mail address
= YOUR ID |
http://www.asplists.com/asplists/winforms-cs.asp
= JOIN/QUIT
| [winforms-cs] member
Click here to reveal e-mail address
= YOUR ID |
http://www.asplists.com/asplists/winforms-cs.asp
= JOIN/QUIT
| [winforms-cs] member
Click here to reveal e-mail address
= YOUR ID |
http://www.asplists.com/asplists/winforms-cs.asp
= JOIN/QUIT
| [winforms-cs] member
Click here to reveal e-mail address
= YOUR ID |
http://www.asplists.com/asplists/winforms-cs.asp
= JOIN/QUIT
Reply to this message...
Dody Gunawinata
I took the simpler path as the requirement for my application can be
summarized as: Here's a resume information, print it out to x many type
of file format and layout option (hence the Format Builder -> XML Files
-> Printer pattern)
The later approach would require implementing XSL-FO (formatting object)
or creating similar XML Schema that corresponds to many elements inside
a Word document. Hmm, this might be a good candidate for an open source
library or I think there might be some vendor out there currently
writing such component.
(
http://www.xml.com/pub/a/2002/03/20/xsl-fo.html
)
There's such component exist for PDF (
http://www.renderx.com/
)
The work required for such component will not be terribly difficult, but
I suspect there's a lot of tedious task to be done. The benefit of this
is that you can use XSLT to 'print' various XML document to Word easily.
Dody Gunawinata
Are You Experienced? |
http://us.aieseconline.net
Personal Weblog |
http://dodyg.org
-----Original Message-----
From: Stephen Rees [mailto:
Click here to reveal e-mail address
]
Sent: Tuesday, June 11, 2002 6:39 PM
To: winforms-cs
Subject: [winforms-cs] RE: Word Automation.
Importance: High
Sensitivity: Confidential
Dodi ....
The "Word Printer" format, or "X Format" file .... can it be opened by
Word ?
i.e. have you sorted the XML -> rtf approach ?
The way I have done it is just to open Word on the client and write out
the CV using Automation, but those bits and bobs that go in the CV could
easily be pulled from a database on the server or given a unique url.
I know that you could simply write a Word doc for the CV, take a look at
the rtf and replace the "right bits" with stuff pulled from db, or
indeed an XML file.
But thats NOT the same as actually converting XML to rtf, because it
will only work for the single doc you use as a template.
A proper XML -> rtf parser would do it for anything you shove into the
XML, and that XML would hold the data for where tables, images, styles,
etc were to be created in the final .doc
So which way have you managed to sort out ?
If you've managed to do it the latter way then I take my hat off to you.
[[
my way just uses generic routines to do things like add a row to the
table, so it could be a little bit adaptable I suppose; perhaps the
person requesting the CV could change the color of a table, or have a
choice of what information to include : but thats about it; and it needs
the low security settings to work - which is a major drawback.
I'm about to dive into permissions and see if I can request the
permissions required by displaying a dotNET generated security box and
getting user input, you know ... "this program requires more permission,
do you accept" type thing ... and which will, hopefully, overide those
set on the client. What the hell, gotta find out sometime, eh ?
Don't even know if this can be done as yet, can dotNET generate a
security box that can't be tampered with ?
I can't find an example - do you know ? Does anyone know ?
]]
Regards
Steve.
Reply to this message...
Ad
MBR BootFX
Best-of-breed application framework for .NET projects, developed by Matthew Baxter-Reynolds and MBR IT
Copyright © Matthew Baxter-Reynolds 2001-2008. '.NET 247 Software Development Services' is a trading style of MBR IT Solutions Ltd.
Contact Us
-
Terms of Use
-
Privacy Policy
-
www.dotnet247.com