Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System;
- using Microsoft.Office.Interop.Excel;
- namespace officeInterop
- {
- class Program
- {
- static void Main(string[] args)
- {
- Application app = new Application();
- Workbook wkb = app.Workbooks.Open("d:\x.xlsx");
- wkb.ExportAsFixedFormat(XlFixedFormatType.xlTypePDF, "d:\x.pdf");
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement