Discussion on:
View:
Show:
c:\inetpub\wwwroot\NewBeef\Test.aspx.cs(12): The type or namespace name 'Interop' does not exist in the class or namespace 'Microsoft.Office' (are you missing an assembly reference?)
I'm trying to build you example and keep getting the above error. I have referenced Word. Was I supposed to reference something else also?
Please advise. Thanks, -AQ
I'm trying to build you example and keep getting the above error. I have referenced Word. Was I supposed to reference something else also?
Please advise. Thanks, -AQ
you arerecommending to people to use .net to access microsoft office apps.
which run as administrator. and have activex controls that will allow running fdisk and removing partitions.
you really must hate your boss to be posting this type of dangerous activity as something to be desired.
http://www.geocities.com/jaqui_greenlees/images/eek2.gif
which run as administrator. and have activex controls that will allow running fdisk and removing partitions.
you really must hate your boss to be posting this type of dangerous activity as something to be desired.
http://www.geocities.com/jaqui_greenlees/images/eek2.gif
Office runs under the context of the user that is logged on (usually). If users logon with administrator access, that sounds more like a net admin issue than a programming issue. Now if you really wanna lock your bad boy app down so it can't be exploited, you can always run the app under a different thread that runs in a lower privilige user context. This can be done programmatically and I have done it. We have to look at this article as a "Can do" type of article. The author is just letting us know it can be done.
This article happens to fall right into something that we're interested in doing at work. So I go to the print version only to find that the referenced Listings are not included in the "printable" version.
Using CSS to create a seperate print version is great and all. But put the friggin code snippets into the document itself not seperate documents!
Using CSS to create a seperate print version is great and all. But put the friggin code snippets into the document itself not seperate documents!
So, let me see if I've got this right.
You're not paying a dime for this content, but you feel you can curse out the author ("friggin code snippets") because you had to go to the trouble of printing off several different files.
gimme a break.......
You're not paying a dime for this content, but you feel you can curse out the author ("friggin code snippets") because you had to go to the trouble of printing off several different files.
gimme a break.......
Dear cswearingen,
Sorry to hear that the code listings didn't print along with the article. I'll notify our site designers about this issue right away. (Note: One reason why we put a lot of our code in listings is because, when we put the code directly in the article, it often blows out the margins of the article.)
Thanks again for letting us know about this site issue.
Best Regards,
Mary Weilage
CNET Networks
Sorry to hear that the code listings didn't print along with the article. I'll notify our site designers about this issue right away. (Note: One reason why we put a lot of our code in listings is because, when we put the code directly in the article, it often blows out the margins of the article.)
Thanks again for letting us know about this site issue.
Best Regards,
Mary Weilage
CNET Networks
FYI...COM is an acronym for Component Object Model, not Common Object Model.
The acronym's definition has been updated in the article. Thanks for bringing this to our attention!
Mary Weilage
Mary Weilage
Accessing COM components from .Net is not even at a snail's pace. My project involves generating an editable report, where minor (or even major) changes can be done to the generated report. Hence we generate the report in Text and in Word. (Text support is needed for raw printing on dot matrix printers). Initially, I was making all the calls from .Net, and found that a report which is generated in seconds by the text engine, takes minutes for the Word engine.
I had thought that using Word would save me from a lot of problems, but now I am faced with innumerable of them. Firstly, its incredibly slow. Secondly, I have to use the Web Browser control (of IE) for displaying the document from within my application. But in doing so, I lose the Word Object Model. Also, events such as PrintDocument, etc, were not working as expected.
We definitely needed an editable report, hence we could not avoid Word. Eventually, we developed an add-in in Word (using a document template), which could process our object library (exported to a tlb, and registered in the registry) and generate the report. This route reduced the report generation time by about 75%. Yet, when I process a long report, the time taken by the Word Engine is at least 15 times more (depending on the length).
I need something like TxTextControl. It seems to be a very long way until Word (or COM for that matter) becomes .Net friendly.
I had thought that using Word would save me from a lot of problems, but now I am faced with innumerable of them. Firstly, its incredibly slow. Secondly, I have to use the Web Browser control (of IE) for displaying the document from within my application. But in doing so, I lose the Word Object Model. Also, events such as PrintDocument, etc, were not working as expected.
We definitely needed an editable report, hence we could not avoid Word. Eventually, we developed an add-in in Word (using a document template), which could process our object library (exported to a tlb, and registered in the registry) and generate the report. This route reduced the report generation time by about 75%. Yet, when I process a long report, the time taken by the Word Engine is at least 15 times more (depending on the length).
I need something like TxTextControl. It seems to be a very long way until Word (or COM for that matter) becomes .Net friendly.
I want to have the flexibility to edit word documents created by other user in my Asp.net application. How to read the content which was on clipboard in aso.net or guide me how to read the document and display the content in div or rich text editor.
Waiting for the quick response...
Waiting for the quick response...
Hi
can anyone confirm whether admin privilage required to use Office COM components using interop APIs ?
We have been always using local admin user in application pool identity for Word COM component. But our sys admin forcing us to downgrade teh user to be non-admin as part of hardening activity.
When we try, we face issues.
Can anyone confirm if admin privillage is really requird or not............ Thanks.
can anyone confirm whether admin privilage required to use Office COM components using interop APIs ?
We have been always using local admin user in application pool identity for Word COM component. But our sys admin forcing us to downgrade teh user to be non-admin as part of hardening activity.
When we try, we face issues.
Can anyone confirm if admin privillage is really requird or not............ Thanks.
- Keyboard Shortcuts:
- Prev
- Next
- Toggle









































