// Create a new workbook with workbook options WorkbookOptions workbookOptions = new WorkbookOptions(); // Enable pixel-based column width for the workbook workbookOptions.PixelBasedColumnWidth = true; var workbook = new Workbook(workbookOptions); var fileStream = this.GetResourceStream("sjs\\Event budget.sjs"); workbook.Open(fileStream, OpenFileFormat.Sjs);
' Create a new workbook with workbook options Dim workbookOptions As New WorkbookOptions() ' Enable pixel-based column width for the workbook workbookOptions.PixelBasedColumnWidth = True Dim workbook As New Workbook(workbookOptions) Dim fileStream = GetResourceStream("sjs\\Event budget.sjs") workbook.Open(fileStream, OpenFileFormat.Sjs) ' save to a pdf file workbook.Save("SavePDFWithPixelBasedColumnWidth.pdf")