473,691 Members | 1,755 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Office Picture insert ? Example

Hi all,

I need an example to insert an Picture in an opend Word Document. My Code
doesn t work.

I tried :

object vk_missing = Type.Missing;
wordapp.Selecti on.Range.Inline Shapes.AddPictu re(@"C:\logo.bm p", ref
vk_missing, ref vk_missing, ref vk_missing);

The Document is successfully open, i can insert text's... the data ist saved
after doing this, but no effekt.

I use : VS2005, Office2003 and Win2k

How can I insert a picture from a file at position X,Y on every paper ? Can
someone give me an examplecode, please ?
Thx and Greets

Fabian
Jan 18 '06 #1
1 2821
that should be working for you if the bitmap is available and you have read
access to it. also have a look at the optional parameters to make sure you
are passing in correct input values.

--
Regards,
Alvin Bruney [MVP ASP.NET]

[Shameless Author plug]
The Microsoft Office Web Components Black Book with .NET
Now Available @ www.lulu.com/owc
Forth-coming VSTO.NET - Wrox/Wiley 2006
-------------------------------------------------------

"Fabian" <Fa****@discuss ions.microsoft. com> wrote in message
news:D0******** *************** ***********@mic rosoft.com...
Hi all,

I need an example to insert an Picture in an opend Word Document. My Code
doesn t work.

I tried :

object vk_missing = Type.Missing;
wordapp.Selecti on.Range.Inline Shapes.AddPictu re(@"C:\logo.bm p", ref
vk_missing, ref vk_missing, ref vk_missing);

The Document is successfully open, i can insert text's... the data ist saved after doing this, but no effekt.

I use : VS2005, Office2003 and Win2k

How can I insert a picture from a file at position X,Y on every paper ? Can someone give me an examplecode, please ?
Thx and Greets

Fabian

Jan 18 '06 #2

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

Similar topics

0
1729
by: Alfred | last post by:
Hi I am using following code to send email How can I use the .body or .htmlbody to insert a picture in the body of ms outlook. Outlook makes provision for sending pictures. If you are in the body you click on insert and the picture option is then available. Thus I suppose you can also do it via code Thanks for help Alfred
1
3821
by: Deb_OPPD | last post by:
I have Office 2003 Picture Manager. What OLECLass Property is associated to Picture Manager? What Class Property is associated to Picture Manager? Thanks! Deb
12
7467
by: BC | last post by:
Hello, We are creating an Office add-in. We are able to display the add-in successfully. However, we followed a sample program, and it displays a FaceID = 1044 (which is not the bitmap of the button we want to display). We want to display our own custom bitmap. How do we display our own custom bitmap instead of the bitmap associated with FaceID = 1044?
1
6270
by: GrantS | last post by:
I am needing to launch Microsoft Office 2003 Picture manager and display a selected image - from my Winforms C# application. The path to the files will be c:\Documents and Settings\USERNAME\My Documents Hopefully someone knows the exe or dll to be run and how this can be done in C#. I am needing:
6
1801
by: Patrick | last post by:
How do you insert a jpg picture from file on to an area of a dialog box I can do this using picturebox to insert a jpg picture onto a form, but the picturebox control is not available for a dialog box Thanks -- Patrick
2
1110
by: Tim Streater | last post by:
I couldn't understand why our Christmas letter, containing two photos and some text, should be 1.3Mbytes in size. I thought perhaps one of the pix had not been reduced in size before embedding in the Word doc. I decided to reproduce the letter (I also though that perhaps the letter, which my wife has edited stuff into and out of for the last ten years, was suffering from a bit of garbage non-collection a la Page maker), and did this: 1)...
10
3358
by: JonathanOrlev | last post by:
Hello everybody, I wrote this comment in another message of mine, but decided to post it again as a standalone message. I think that Microsoft's Office 2003 help system is horrible, probably the worst I ever seen. I almost cannot find anything I need, including things I
3
4601
by: abspring | last post by:
Hi I am a technology teacher/support person at an elementary school. I have created a database in which I need to insert a picture for each of our 650+ students. I have a table of student information with the student id as the primary key. Another table is the student photos table that has the student id and the imagename.bmp of the photo of that student and a OLE Object field for the picture image. All of the actual picture files are .bmp...
3
20782
by: JFKJr | last post by:
Hello everyone, I am trying to insert a picture in an excel spreadsheet cell using Access VBA. The following excel VBA code is working perfectly fine and I am able to insert picture in "A1" cell. But with the following Access VBA code, I am getting "Type Mismatch" error at line #13. Please kindly let me know how to solve this issue. Thanks a million in advance! Excel VBA: Sub InsertPic()
0
8600
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’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
8535
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
9079
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
8952
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 captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
8793
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
8796
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
7626
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
2968
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
3
1954
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.