Je souhaite ouvrir un file Excel dans l'aperçu avant printing sans l'afficher et l'save en file PDF ou image.
C'est possible? Comment le réaliser?
Cela peut être fait avec la méthode ExportAsFixedFormat
de l'object Feuille de calcul:
using Excel = Microsoft.Office.Interop.Excel; Excel.Worksheet ws; // you need to assign this somehow ws.ExportAsFixedFormat(Excel.XlFixedFormatType.xlTypePDF, @"c:\YourFile.pdf", Excel.XlFixedFormatQuality.xlQualityStandard);