Re: Embedding graphics in RTF files
From: Stuart Shaw (Stuart.shaw_at_aquasonic.ltd.uk)
Date: 01/16/05
- Next message: Tony Proctor: "Re: HEX Converstion"
- Previous message: J French: "Re: Copying string to byte array"
- In reply to: akoline: "Re: Embedding graphics in RTF files"
- Messages sorted by: [ date ] [ thread ]
Date: Sun, 16 Jan 2005 09:57:19 -0000
Maybe this is what I need after all! I didn't realise there was such a
thing as a rich text object so I was creating my own file. The only problem
I have now is that when I add graphics the file becomes much larger than if
I add the graphics in Word. A 3MB file becomes 38MB. Any ideas?
Stuart
"akoline" <akoline@discussions.microsoft.com> wrote in message
news:3F4A4EB0-C28A-455B-8BD7-430193026289@microsoft.com...
>
>
> "Stuart Shaw" wrote:
>
> > I don't think this is what I need.
> > I am generating a rich text file containing graphics and when I open it
with
> > Word it is fine as long as the graphics I have included are in the same
> > directory. I want to generate a document which actually has the
graphicsd
> > embedded in it rather than just a reference to the graphics. If I open
with
> > Word then save, Word embeds the graphics and
> > the size of the file increases dramatically. The bitmap files contain
> > binary data but the data in the new Word doc is hex. I'm not sure if I
can
> > just read every character from the bmp, convert it to hex and write it
to
> > the file.
> >
> > Stuart
> >
> > "akoline" <akoline@discussions.microsoft.com> wrote in message
> > news:4AD5F4E3-9019-4059-89E7-B5128C73AE0B@microsoft.com...
> > >
> > >
> > > "Stuart Shaw" wrote:
> > >
> > > > I can generate RTF files which include graphics by referencing the
> > graphics
> > > > files in the RTF file but the files must all be in the same
directory.
> > How
> > > > can I encode the graphics files so that they are embedded in the
file?
> > > >
> > > > Thanks,
> > > > Stuart
>
> Then place some pictureBoxes on the Rich
> and load the bitmaps when loading the Rich
>
> ako
>
> > > Private Sub Form_Load()
> > > Dim index As Integer
> > > index = 0
> > > RTF1.OLEObjects.Add index, "Bike", _
> > > "C:\My Documents\My Pictures\BikeBmp.bmp"
> > > RTF1.OLEObjects.Item(index).DoVerb 0
> > > RTF1.OLEObjects.Item(index).DisplayType_
> > > = rtfDisplayContent ' or rtfDisplayIcon
> > > RTF1.SelStart = len(RTF1.Text)
> > > End Sub
> > > ' alternate: Dokument
> > > ' try 1, 2, -3, 4 for Doverb to see the difference
> > >
> > > Is that what you're after?
> > >
> > >
> > >
> > >
> > >
> >
> >
> >
- Next message: Tony Proctor: "Re: HEX Converstion"
- Previous message: J French: "Re: Copying string to byte array"
- In reply to: akoline: "Re: Embedding graphics in RTF files"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|