Options

Create .MDI File

dfragosodfragoso Member Posts: 18
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

Sign In or Register to comment.