Hello
I´m triyng to send a email using the codeunit 397, and i want to use a attachment file .mdi, but I don´t know how to create this kind of file.
I create a Automation 'Microsoft Office Document Imaging 11.0 Type Library'.Document as auxMDI.
CLEAR(EmployeeTable);
Report.ApplyFilters(AuxMonth, AuxYear);
EmployeeTable.SETRANGE("No.", EmployeeNumber);
IF EmployeeTable.FIND('-') THEN BEGIN
Report.SETTABLEVIEW(EmployeeTable);
Create(auxMDI);
auxMDI.SaveAs('C:\Report.mdi');
CLEAR(Report);
END;
The main objective is to run a report and save the same as .mdi file ](*,)
Thanks for the help. [-o<
Comments
Microsoft Office Document Imaging Viewer Control 11.0
C:\PROGRA~1\COMMON~1\MICROS~1\MODI\11.0\MDIVWCTL.DLL
that you can use.
http://www.BiloBeauty.com
http://www.autismspeaks.org
This is the automation that i´m using, but i can´t create the .mdi file. ](*,)
So perhaps you can look at how the PDF works and switch the PDF patrs for MDI. :-k
http://www.mibuso.com/forum/viewtopic.php?t=18331
http://www.BiloBeauty.com
http://www.autismspeaks.org
Microsoft Office Document Image Writer Printer
If I look At the Printer Preferences of that printer and then the Advanced Tab. I can Set the Default Output from Tiff to MDI.
The you can print your report - or set the deault printer for that report to the Microsoft Office Document Image Writer printer and it will create a MDI file. I printed this topic and get
http://savatage99.googlepages.com/www.m ... ic0001.mdi
http://www.BiloBeauty.com
http://www.autismspeaks.org
I had to set the program to open that file type.
I found mine at
C:\Program Files\Common Files\Microsoft Shared\MODI\11.0\MSPVIEW.exe
http://www.BiloBeauty.com
http://www.autismspeaks.org