473,544 Members | 2,352 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

how to save a picture object embed in word as a file ?help!!

晴天
I have a word document and it has a picture object, I want save the picture
object as other single picture file by C# program. I have a idea, by
clipboard, copy the picture to clipboard, and then save as a file from
clipboard, it is work well in application,but don't work in a web
application. how can I to do? and are there other ideas to save the picture
object in web application?
help me !!
Nov 21 '05 #1
2 2460
zheng,

You aren't going to be able to access a running program from a web
application. The security restrictions are pretty overwhelming.

I would resort to unmanaged code, and an active x control embedded in
the page to do this, since you won't have to worry about security then (but
it's a tough sell, since Active X controls have free reign to do what they
want, and people should avoid them when possible, at least, for embedding in
web pages).

Hope this helps.

--
- Nicholas Paldino [.NET/C# MVP]
- mv*@spam.guard. caspershouse.co m

"zheng" <cc****@163.com > wrote in message
news:O0******** ******@tk2msftn gp13.phx.gbl...
晴天
I have a word document and it has a picture object, I want save the
picture
object as other single picture file by C# program. I have a idea, by
clipboard, copy the picture to clipboard, and then save as a file from
clipboard, it is work well in application,but don't work in a web
application. how can I to do? and are there other ideas to save the
picture
object in web application?
help me !!

Nov 21 '05 #2
Nicholas Paldino ,
Thanks for your helps.
I think I don't describe my question exactly.and the question is, I will
upload a word
file to web server, and then web application import the contents in the word
file to the database, if the word file contains picture object ,and the web
application will save the picture object to a picture file. all the process
will run in the web server ,not in client, and when I get the characters in
the word file it is ok,so I think there is less the probability of the
security reason.
Wish your answer. thanks!

"Nicholas Paldino [.NET/C# MVP]" <mv*@spam.guard .caspershouse.c om> 写入消息
news:e#******** *****@TK2MSFTNG P15.phx.gbl...
zheng,

You aren't going to be able to access a running program from a web
application. The security restrictions are pretty overwhelming.

I would resort to unmanaged code, and an active x control embedded in
the page to do this, since you won't have to worry about security then (but it's a tough sell, since Active X controls have free reign to do what they
want, and people should avoid them when possible, at least, for embedding in web pages).

Hope this helps.

--
- Nicholas Paldino [.NET/C# MVP]
- mv*@spam.guard. caspershouse.co m

"zheng" <cc****@163.com > wrote in message
news:O0******** ******@tk2msftn gp13.phx.gbl...
晴天
I have a word document and it has a picture object, I want save the
picture
object as other single picture file by C# program. I have a idea, by
clipboard, copy the picture to clipboard, and then save as a file from
clipboard, it is work well in application,but don't work in a web
application. how can I to do? and are there other ideas to save the
picture
object in web application?
help me !!


Nov 23 '05 #3

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

Similar topics

9
1582
by: danny van elsen | last post by:
hello all, in my application, I want to save an object to a file: what would be the best way to do this? binary or text? self written or existing library? thanks for any answer, Danny.
0
1745
by: beau | last post by:
Please help me ! Anybody can help me with a code to embed an ms word file into an access table ? I have ms word templates with bookmarks in my hard disk. So far I can open the template through a button in my access form, insert the bookmarks with data from the form and save the word document in the hard disk. I need to save/copy this...
2
4856
by: Lyn | last post by:
What is the best way to import a picture (bmp format) via VBA from a Windows file and embed it into a Bound Object Frame (and thence to an OLE Object in a table)? I found an MS knowledge base article (205635) on the subject, but it uses VB (CreateEmbed method) rather than VBA. I can't find any similar method in VBA. A couple of related...
1
5490
by: mohan21_kumar | last post by:
Hi, How to Save images in ms word file when it is downloaded from asp.net application. I have used the following code to convert the html page into ms word file. but i'm not able to save the images from html to doc file. Please suggest me how to save an image from a html to doc file. I have used the following Code to convert HTML into doc...
11
2585
by: sandeepkedlaya | last post by:
Hello, I need to copy images from a folder and copy to a word document. I have done as follows.. but It copies only last image. Can any one of you help me in this.. Private Sub Page_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load Response.Buffer = True Dim DirPath As String DirPath =...
1
1393
by: babargondal | last post by:
I m a fresh developer n i am working on news editor using vb6.0. Can some one help me in saving and retriving ms word file in ms Accss thanks n regards babar gondal
0
1007
by: callsupport1 | last post by:
can you please help, I woould like to import a picture from an excel spreadsheet and copy it to a picture object. Thanks For the Help Steve
0
2590
by: =?Utf-8?B?S2ltIFM=?= | last post by:
word.Application msword = new word.Application(); object missing = Type.Missing; // Hidden Word document msword.Visible = false; try { word.Document doc = LinqTool.WordCreateDocument(ref msword);
0
2047
by: Ang | last post by:
Hi, I want to open a word file on background instead of showing the process on client's screen. And then do mailmerge, after that allow user to saveas. (user simply click the button and IE will ask user to open or save as the file) Below is the code but I donno how to do it on background. It's an aspx program, thanks.
0
7438
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we抣l explore What is ONU, What Is Router, ONU & Router抯 main...
0
7374
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...
0
7632
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. ...
0
7783
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that...
0
7720
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...
0
5931
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梡lanning, coding, testing, and deployment梬ithout human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then...
0
4930
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...
1
1850
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
1
996
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.