Re: Embedding graphics in RTF files

Tech-Archive recommends: Fix windows errors by optimizing your registry

From: Stuart Shaw (Stuart.shaw_at_aquasonic.ltd.uk)
Date: 01/16/05


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?
> > >
> > >
> > >
> > >
> > >
> >
> >
> >



Relevant Pages

  • Re: Lost graphics
    ... "RICH" wrote in message ... The application is the Windows Picture & Fax viewer. ... >> What's the file extension for the graphics and is there a graphic application ...
    (microsoft.public.windowsxp.help_and_support)
  • RTF to HTML
    ... I have a small app that allows the users to enter notes in a rich text box. ... I have a routine that does that for me reasonably ... the users have discovered that they can put graphics in the ...
    (microsoft.public.vb.general.discussion)
  • Re: Embedding graphics in RTF files
    ... > Word it is fine as long as the graphics I have included are in the same ... > binary data but the data in the new Word doc is hex. ... Then place some pictureBoxes on the Rich ...
    (microsoft.public.vb.general.discussion)
  • Re: Where can I find templates for a diploma?
    ... but no diplomas with arching fonts and rich ... graphics. ...
    (microsoft.public.office.misc)
  • Re: newest witch
    ... surely being so rich, she could hire som1 to make a better one ... Here's the graphics version ... Prev by Date: ...
    (alt.fan.harry-potter)