(Msg. 1) Posted: Thu Jul 19, 2007 6:50 pm
Post subject: How to convert a .mdi file into a .tif, .jpg or .gif file in C#? Archived from groups: microsoft>public>word>conversions (more info?)
How to convert a .mdi file into a .tif, .jpg or .gif file in C#?
Many thanks for replying.
(Msg. 2) Posted: Fri Jul 20, 2007 8:53 am
Post subject: Re: How to convert a .mdi file into a .tif, .jpg or .gif file in C#? [Login to view extended thread Info.] Archived from groups: per prev. post (more info?)
Wouldn't it be simpler to buy yourself a copy of Office than to roll your
own? MDI is a graphics format used by Microsoft's document imaging. I know
of no way to convert to TIF other than to open it with Microsoft's Document
Imaging and save as TIF, and no way at all to convert MDI directly to JPG or
GIF other than by using TIF as an interim stage with third party software.
--
<>>< ><<> ><<> <>>< ><<> <>>< <>><<>
Graham Mayor - Word MVP
(Msg. 3) Posted: Fri Jul 20, 2007 8:53 am
Post subject: Re: How to convert a .mdi file into a .tif, .jpg or .gif file in C [Login to view extended thread Info.] Archived from groups: per prev. post (more info?)
I see. Thank you very much.
"Graham Mayor" wrote:
> Wouldn't it be simpler to buy yourself a copy of Office than to roll your
> own? MDI is a graphics format used by Microsoft's document imaging. I know
> of no way to convert to TIF other than to open it with Microsoft's Document
> Imaging and save as TIF, and no way at all to convert MDI directly to JPG or
> GIF other than by using TIF as an interim stage with third party software.
>
> --
> <>>< ><<> ><<> <>>< ><<> <>>< <>><<>
> Graham Mayor - Word MVP
>
> My web site www.gmayor.com > Word MVP web site http://word.mvps.org > <>>< ><<> ><<> <>>< ><<> <>>< <>><<>
>
> vincent wrote:
> > How to convert a .mdi file into a .tif, .jpg or .gif file in C#?
> > Many thanks for replying.
>
>
>
(Msg. 4) Posted: Wed Aug 01, 2007 12:39 pm
Post subject: Re: How to convert a .mdi file into a .tif, .jpg or .gif file in C [Login to view extended thread Info.] Archived from groups: per prev. post (more info?)
NB, you can automate (via OLE automation) the MODI object as long as it has
been installed (requires Office 2003 - the XP version doesn't have a
programmable object model) - I would guess you can do .mdi <-> .tif
conversions but you'd have to check for yourself.
Peter Jamieson
"vincent" <vincent.RemoveThis@discussions.microsoft.com> wrote in message
news:05774137-83F7-4FD9-A5D9-29CF540BFB8F@microsoft.com...
>I see. Thank you very much.
>
> "Graham Mayor" wrote:
>
>> Wouldn't it be simpler to buy yourself a copy of Office than to roll your
>> own? MDI is a graphics format used by Microsoft's document imaging. I
>> know
>> of no way to convert to TIF other than to open it with Microsoft's
>> Document
>> Imaging and save as TIF, and no way at all to convert MDI directly to JPG
>> or
>> GIF other than by using TIF as an interim stage with third party
>> software.
>>
>> --
>> <>>< ><<> ><<> <>>< ><<> <>>< <>><<>
>> Graham Mayor - Word MVP
>>
>> My web site www.gmayor.com >> Word MVP web site http://word.mvps.org >> <>>< ><<> ><<> <>>< ><<> <>>< <>><<>
>>
>> vincent wrote:
>> > How to convert a .mdi file into a .tif, .jpg or .gif file in C#?
>> > Many thanks for replying.
>>
>>
>>
(Msg. 5) Posted: Wed Aug 01, 2007 6:30 pm
Post subject: Re: How to convert a .mdi file into a .tif, .jpg or .gif file in C [Login to view extended thread Info.] Archived from groups: per prev. post (more info?)
Thank you very much for your suggestion.
"Peter Jamieson" wrote:
> NB, you can automate (via OLE automation) the MODI object as long as it has
> been installed (requires Office 2003 - the XP version doesn't have a
> programmable object model) - I would guess you can do .mdi <-> .tif
> conversions but you'd have to check for yourself.
>
> Peter Jamieson
> "vincent" <vincent.DeleteThis@discussions.microsoft.com> wrote in message
> news:05774137-83F7-4FD9-A5D9-29CF540BFB8F@microsoft.com...
> >I see. Thank you very much.
> >
> > "Graham Mayor" wrote:
> >
> >> Wouldn't it be simpler to buy yourself a copy of Office than to roll your
> >> own? MDI is a graphics format used by Microsoft's document imaging. I
> >> know
> >> of no way to convert to TIF other than to open it with Microsoft's
> >> Document
> >> Imaging and save as TIF, and no way at all to convert MDI directly to JPG
> >> or
> >> GIF other than by using TIF as an interim stage with third party
> >> software.
> >>
> >> --
> >> <>>< ><<> ><<> <>>< ><<> <>>< <>><<>
> >> Graham Mayor - Word MVP
> >>
> >> My web site www.gmayor.com > >> Word MVP web site http://word.mvps.org > >> <>>< ><<> ><<> <>>< ><<> <>>< <>><<>
> >>
> >> vincent wrote:
> >> > How to convert a .mdi file into a .tif, .jpg or .gif file in C#?
> >> > Many thanks for replying.
> >>
> >>
> >>
>
>
(Msg. 6) Posted: Tue Apr 08, 2008 6:22 am
Post subject: RE: How to convert a .mdi file into a .tif, .jpg or .gif file in C#? [Login to view extended thread Info.] Archived from groups: per prev. post (more info?)
(Msg. 7) Posted: Tue Apr 08, 2008 6:26 am
Post subject: RE: How to convert a .mdi file into a .tif, .jpg or .gif file in C [Login to view extended thread Info.] Archived from groups: per prev. post (more info?)
Thank you very much.
"Rami Emad" wrote:
> hi vincent,
>
> this code may be solve your problem ....
>
> MODI.Document doc = new MODI.Document();
> doc.Create(sourceFilePath);
> doc.SaveAs(sourceFilePath.ToLower().Replace(".mdi", ".tiff"),
> MODI.MiFILE_FORMAT.miFILE_FORMAT_TIFF_LOSSLESS,
> MODI.MiCOMP_LEVEL.miCOMP_LEVEL_HIGH);
> doc.Close(true);
>
> thanx
>
>
>
> "vincent" wrote:
>
> > How to convert a .mdi file into a .tif, .jpg or .gif file in C#?
> > Many thanks for replying.
(Msg. 8) Posted: Fri Aug 28, 2009 1:29 am
Post subject: RE: How to convert a .mdi file into a .tif, .jpg or .gif file in C [Login to view extended thread Info.] Archived from groups: per prev. post (more info?)
You should use false instead of true in the Close, or the original file might
be corrupt. At least it did for me.
doc.Close(false);
"Rami Emad" wrote:
> hi vincent,
>
> this code may be solve your problem ....
>
> MODI.Document doc = new MODI.Document();
> doc.Create(sourceFilePath);
> doc.SaveAs(sourceFilePath.ToLower().Replace(".mdi", ".tiff"),
> MODI.MiFILE_FORMAT.miFILE_FORMAT_TIFF_LOSSLESS,
> MODI.MiCOMP_LEVEL.miCOMP_LEVEL_HIGH);
> doc.Close(true);
>
> thanx
>
>
>
> "vincent" wrote:
>
> > How to convert a .mdi file into a .tif, .jpg or .gif file in C#?
> > Many thanks for replying.
All times are: Eastern Time (US & Canada) (change)
Page 1 of 1
You can post new topics in this forum You can reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum