Inserting a jpeg into a Word document with VB .NET

gilou28
07-09-2004, 11:55 AM
Hi everyone


I need to insert (through programmation) a jpeg into a Word document.

Any sample is welcomed.

Thanks have a good week-end

herilane
07-09-2004, 12:07 PM
The easiest way to get started is to record a macro in Word while inserting a picture (and formatting, moving, resizing etc). Then have a look at the code that's produced. That'll give you a hint as to what objects, methods and properties you're likely to need. Word VBA help files will have more detail on all of them.

The next step is to clean up the code, and then convert it from VBA to VB.Net.

If you need an introduction to the more general topic of Office Automation in VB.Net, have a look at the FAQ thread at the top of this forum, and the tutorial it links to.

If you get stuck at any of these steps, let us know, and we'll do our best to help.

gilou28
07-09-2004, 01:45 PM
Thanks agin, I'll try that approach.

EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum