473,394 Members | 1,866 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,394 software developers and data experts.

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.Selection.Range.InlineShapes.AddPicture(@" C:\logo.bmp", 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 2803
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****@discussions.microsoft.com> wrote in message
news:D0**********************************@microsof t.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.Selection.Range.InlineShapes.AddPicture(@" C:\logo.bmp", 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
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...
1
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
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...
1
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...
6
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...
2
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...
10
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...
3
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...
3
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....
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
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,...
0
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...
0
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,...
0
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...

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.