2011-08-02 69 views

回答

4

對於那些需要的答案,這裏是....

Application xlApp = new Application(); 
xlApp.DisplayAlerts = false; 

Workbook book = xlApp.Workbooks.Open(@"C:\test5.xls", 2, false); 

Worksheet sheet = book.Worksheets[1]; 

sheet.Shapes.AddOLEObject(Filename: @"C:\test.pdf", Height: 400, Width: 400); 

book.Save(); 
.... 
.... 
.... 
相關問題