473,803 Members | 3,943 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

c#, Web Browser, Microsoft Word

I am trying to automate a digital signature process with Microsoft Word, I
have experimented by loading the word document into word and then from there
placing that document inside a picturebox so as to make it look embedded, but
I am hoping I can find some resolve with using the web browser control.

I can successfully load a document into the control, but how do I gain
control of the word instance? Like if I want to call a save on the document,
or Signatures.Add or Commit, etc. Is this possible? If not then I will have
to go back to the other method which works, just not embedded as I would like.

So if that isn't possible, is there a way to embed Word to a Windows Form in
c#, I don't think there is, and is there a way I can insert text in the
middle of the document. Like I want to give the user the option to add the
predefined text wherever they want it.

Any help would be great as I am stumped on this and trying not to cheese it!
--
Thanks,

Kris
MCP, MCSA, A+, N+, MCP (C#)
Nov 16 '05 #1
1 3767
The WebBrowser.Docu ment property will give you access to the Word
document object, you can use the methods of this object to control the
instance of word.

Sijin Joseph
http://www.indiangeek.net
http://weblogs.asp.net/sjoseph
a94ws7 wrote:
I am trying to automate a digital signature process with Microsoft Word, I
have experimented by loading the word document into word and then from there
placing that document inside a picturebox so as to make it look embedded, but
I am hoping I can find some resolve with using the web browser control.

I can successfully load a document into the control, but how do I gain
control of the word instance? Like if I want to call a save on the document,
or Signatures.Add or Commit, etc. Is this possible? If not then I will have
to go back to the other method which works, just not embedded as I would like.

So if that isn't possible, is there a way to embed Word to a Windows Form in
c#, I don't think there is, and is there a way I can insert text in the
middle of the document. Like I want to give the user the option to add the
predefined text wherever they want it.

Any help would be great as I am stumped on this and trying not to cheese it!

Nov 16 '05 #2

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

Similar topics

2
4401
by: Lin Ma | last post by:
I have a asp web page with a link point to a file which depend on the database information. Sometime is a picture file sometime a word and some time is a PDF file. For picture file, when user click the link, it will open the picture inside the IE browser. Now here is my problem: On some of the computers, for PDF file only, it opens outside of the IE
10
3415
by: Greener | last post by:
Hi, I need help badly. Can you do client-side programming instead of server-side to capture the Browser type info? If this is the case, what's wrong with the following? <script language="JavaScript"> function doWord(file) { if (navigator.userAgent.indexOf("MSIE")!=-1)
115
7244
by: J | last post by:
I've run CSSCheck on my style sheets and I always get a warning similar to this: "font: bold 9pt/100% sans-serif Warning: Absolute length units should not generally be used on the Web ..." Yet if I use 'x-small' instead of 9pt, I get bigger type on IE6 and smaller type on Mozilla. My choices seem to be:
3
2381
by: Richard | last post by:
in a previous aspx page i got a few records printed throu window.print() function in javascript. but now i have the records in a to RTF and i want to run the same function print, which ofcourse wont work since the page isnt HTML anymore. Is there some other way to print automaticly. i used to have this function to print automaticly from a browser to client. ------------------
4
2732
by: Paul W | last post by:
Hi - can someone point me to info on the issues/resolutions of supporting the safari browser? To help me understand, if I was developing pages in say FrontPage, what attributes would I set for 'target browser'? I'm having a helluva time with table layouts etc and goin' stir crazy.. Thanks, Paul.
3
2187
by: Daniel | last post by:
Hi, I have opened the word file from database and display in web browser. When i close the browser, i wan to update the changes into the database. and i dont know how to achieve it. I oni know when i upload the file, i need to use filefield control, but now the situation is different. I cant automatically read the file location and filename as the filefield input. how to achieve it? any ideas?
2
3189
by: =?Utf-8?B?c2NvdHRybQ==?= | last post by:
Hi I am using a SQL Server 2005 varbinary(max) to store word documents in the database. I can retrive the data out into a MemoryStream object ok but I want to be able to use this to display the file in a web browser from an asp.net page. I found quite a lot of articles like this http://support.microsoft.com/kb/306654 that tell you do do it from a file on a hard disk but not directly from a stream object, any ideas. I would rather not...
3
2238
by: Jukka K. Korpela | last post by:
Some time ago in this group, someone suggested that we should develop a "different" user style sheet to demonstrate what a user style sheet or a browser style sheet _could_ do. I guess the idea was that the style would be rather different from common browser defaults, yet sensible and potentially useful. Partly for that reason, partly to demonstrate the idea that web page rendering _could_ be different from what people are used to, I...
1
2741
by: pavanip | last post by:
Hi, I am developing one windows application in that i am trying to integrate microsoft word programatically. I used web browser control to enter text,saving it as a word document but the saved document is not showing page numbers,line numbers etc like normal word document. I want to display page numbers and line numbers to my word using web browser control.Can you please tell me is it the correct way to implement word in c# and can you...
0
9564
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10548
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
10069
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
9125
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
7604
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6842
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5500
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
1
4275
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
3798
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.