Re: Western European (dos)



To embed a Word document, use the OLE object.

To specify the character set on insertion, send an EM_SETTEXTEX message
setting the desired codepage in the SETTEXTEX.codepage member passed via
WPARAM.

The simplest solution to the problem is to convert the string in your
application by calling OemToChar[Buff].

"Moose" <moose@xxxx> wrote in message
news:434fb996$0$29102$ed2619ec@xxxxxxxxxxxxxxxxxxxxxxxxxxxxx
> Hi guys,
>
> is there anyway to embed a word document in a VB application? or to set
> the encoding of a richtext object to accept Western European (dos) encoded
> text?
>
> Situation is -
> We have an old database that outputs raw text in this format, if i open
> them in Word i can select to open them using the Western Euro dos encoding
> and the thing looks fine, but i have a few of these and need to automate
> the whole process. Thing is when i read the file into VB using a rich text
> box as a holder i get lots of gibberish characters since the encoding is
> wrong. :o(
>
> Any one have any idea how i can get VB to display the text correctly?
>
>
>
>


.



Relevant Pages

  • Re: Excel to Word
    ... Paste Special to paste Excel data into Word as a simple table, ... Embedded graphics: When feasible, it is preferable to link the graphics. ... If you see an code, the graphic is an OLE object. ... Make sure you are saving as a Word document; ...
    (microsoft.public.word.tables)
  • Re: How do I get the Moniker Word uses for a Link?
    ... > The ole object comes from the InlineShape.OLEFormat.Object item. ... LINK field you posted shows that you are linking to a Word document ...
    (microsoft.public.word.vba.general)
  • Re: How do I get the Moniker Word uses for a Link?
    ... > The ole object comes from the InlineShape.OLEFormat.Object item. ... LINK field you posted shows that you are linking to a Word document ...
    (microsoft.public.dotnet.framework.interop)
  • Re: office encoding menu not working
    ... from a floppy. ... When you see that encoding dialog Word has not recognized ... the file as a Word document. ...
    (microsoft.public.office.setup)
  • Re: Virus or MS Word Prob?? Pls Help!!!
    ... This means it will not open as a Word document but almost all the data is recoverable if you open it using the Recover Text from Any File option in the File Open dialog. ... and the worst thing is that i do not have any sort of backup> any ... >>> Selects the encoding that makes your document readable, ...
    (microsoft.public.word.application.errors)