You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Dim converter As ExcelToPdfConverter = New ExcelToPdfConverter(workbook)
1800
-
1801
-
'Convert the Excel document to PDF with converter settings
1802
-
Dim pdfDocument As PdfDocument = converter.Convert(settings)
1803
-
1804
-
'Save the workbook as PDF
1805
-
pdfDocument.Save("Output.pdf")
1806
-
End Using
1807
-
{% endhighlight %}
1808
-
{% endtabs %}
1809
-
1810
-
A complete working example to convert an Excel workbook to PDF by setting the paper size for all worksheets in C# is present on <ahref="https://github.com/SyncfusionExamples/XlsIO-Examples/tree/master/Excel%20to%20PDF/Page%20Setup%20Options/.NET/Paper%20Size">this GitHub page</a>.
1811
-
1812
-
### Orientation
1813
-
1814
-
The following code illustrates how to convert an Excel workbook to PDF by setting the page orientation.
Dim converter As ExcelToPdfConverter = New ExcelToPdfConverter(workbook)
1896
-
1897
-
'Convert the Excel document to PDF with converter settings
1898
-
Dim pdfDocument As PdfDocument = converter.Convert(settings)
1899
-
1900
-
'Save the workbook as PDF
1901
-
pdfDocument.Save("Output.pdf")
1902
-
End Using
1903
-
{% endhighlight %}
1904
-
{% endtabs %}
1905
-
1906
-
A complete working example to convert an Excel workbook to PDF by setting the page orientation in C# is present on <ahref="https://github.com/SyncfusionExamples/XlsIO-Examples/tree/master/Excel%20to%20PDF/Page%20Setup%20Options/.NET/Orientation">this GitHub page</a>.
Copy file name to clipboardExpand all lines: Document-Processing/Excel/Excel-Library/NET/Worksheet/Page-Setup-Options.md
+115-1Lines changed: 115 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1024,4 +1024,118 @@ End Using
1024
1024
{% endhighlight %}
1025
1025
{% endtabs %}
1026
1026
1027
-
A complete working example to add headers and footers in an Excel document using C# is present on [this GitHub page.](https://github.com/SyncfusionExamples/XlsIO-Examples/tree/master/Worksheet%20Features/Header%20and%20Footer/.NET/Header%20and%20Footer)
1027
+
A complete working example to add headers and footers in an Excel document using C# is present on [this GitHub page.](https://github.com/SyncfusionExamples/XlsIO-Examples/tree/master/Worksheet%20Features/Header%20and%20Footer/.NET/Header%20and%20Footer)
1028
+
1029
+
## Paper Size
1030
+
1031
+
The <ahref="https://help.syncfusion.com/cr/document-processing/Syncfusion.XlsIO.Interfaces.IPageSetupBase.html#Syncfusion_XlsIO_Interfaces_IPageSetupBase_PaperSize">PaperSize</a> functionality allows you to specify the paper size for worksheet.
1032
+
1033
+
The following code snippet shows how to use PaperSize.
A complete working example to set the paper size in C# is present on <ahref="https://github.com/SyncfusionExamples/XlsIO-Examples/tree/master/Worksheet%20Features/PaperSize/.NET/PaperSize">this GitHub page</a>.
1085
+
1086
+
## Orientation
1087
+
1088
+
The <ahref="https://help.syncfusion.com/cr/document-processing/Syncfusion.XlsIO.Interfaces.IPageSetupBase.html#Syncfusion_XlsIO_Interfaces_IPageSetupBase_Orientation">Orientation</a> functionality allows you to specify the orientation for worksheet.
1089
+
1090
+
The following code snippet shows how to use Orientation.
A complete working example to set the page orientation in C# is present on <ahref="https://github.com/SyncfusionExamples/XlsIO-Examples/tree/master/Worksheet%20Features/Orientation/.NET/Orientation">this GitHub page</a>.
0 commit comments