Bonsoir ,
A fin de convertir un fichier Excel en Pdf , j'ai mis en place le code ci dessous + l'utilisation des bibliothèques Aspose (Aspose.Cells et Aspose.Pdf) .
Le souci c 'est que ça me met un msg d'err pour l'instruction : workbook.Save("c:\test.pdf", FileFormatType.AsposePdf) -->
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21 Imports Excel Imports Aspose Imports Aspose.Cells Partial Class Excel_Pdf Inherits System.Web.UI.Page Protected Sub Button1_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles Button1.Click 'Instantiate the Workbook object Dim workbook As Excel.Workbook = New Excel.Workbook() 'Open an excel file workbook.Open("c:\test.xls") 'Save the document in Pdf format workbook.Save("c:\test.pdf", FileFormatType.AsposePdf) End Sub End ClassJe ne sais pas ce que j'ai manqué , Merci d'avance pour votre aide !' Too many arguments to 'Public Sub Save()'
Partager