Advertisement
Guest User

Untitled

a guest
Feb 8th, 2016
55
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.35 KB | None | 0 0
  1. using System;
  2. using Microsoft.Office.Interop.Excel;
  3.  
  4. namespace officeInterop
  5. {
  6. class Program
  7. {
  8. static void Main(string[] args)
  9. {
  10. Application app = new Application();
  11. Workbook wkb = app.Workbooks.Open("d:\x.xlsx");
  12. wkb.ExportAsFixedFormat(XlFixedFormatType.xlTypePDF, "d:\x.pdf");
  13. }
  14. }
  15. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement