WUGNET, the Windows User Group Network
Your Complete Resource Center for "The Best" in Shareware, Computing Tips and Support, Windows Industry News... and much more!
Home Forums Shareware Windows Tips Hot Offers FREE Newsletters Arcade Contact Us About Partners
Search WUGNET: RSS Feeds RSS Feeds Advertise with WUGNET    |    Shareware eBooks
HomeHome FAQFAQ      ProfileProfile    Private MessagesPrivate Messages   Log inLog in

How to convert a .mdi file into a .tif, .jpg or .gif file ..

 
   Home -> Office -> Conversions RSS
Next:  "Changes have been made that affect the glob..  
Author Message
vincent

External


Since: Nov 02, 2006
Posts: 21



(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.
Back to top
Login to vote
Graham Mayor

External


Since: Jul 04, 2006
Posts: 8385



(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

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.
Back to top
Login to vote
vincent

External


Since: Nov 02, 2006
Posts: 21



(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.
>
>
>
Back to top
Login to vote
Peter Jamieson

External


Since: Aug 10, 2004
Posts: 2200



(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.
>>
>>
>>
Back to top
Login to vote
vincent

External


Since: Nov 02, 2006
Posts: 21



(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.
> >>
> >>
> >>
>
>
Back to top
Login to vote
Rami Emad

External


Since: Apr 08, 2008
Posts: 1



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

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.
Back to top
Login to vote
vincent

External


Since: Nov 02, 2006
Posts: 21



(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.
Back to top
Login to vote
awe

External


Since: Feb 11, 2007
Posts: 2



(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.
Back to top
Login to vote
Display posts from previous:   
       Home -> Office -> Conversions 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
Categories:
 Windows XP
 Windows Vista
 Windows Other
  Office
 Office Other
 Security
  • Home |
  • Shareware |
  • Windows Tips |
  • Hot Offers |
  • FREE Newsletters |
  • Arcade |
  • Forums |
  • eBooks |
  • About WUGNET |
  • Partners |
  • Contact

  • WUGNET Privacy Policy |
  • Link to WUGNET |
  • IT Support