category: PrintView

question: How do you access the printing options of the "Sheet1" worksheet?

masked_code: var printingOpt = workbook.???["Sheet1"].???;

answers: Worksheets

answers: PrintOptions


category: PrintView

question: How do you enable printing of gridlines in the worksheet?

masked_code: worksheet.??? = ???;

answers: PrintOptions.PrintGridlines

answers: true


category: PrintView

question: How do you enable printing of row and column headings?

masked_code: worksheet.??? = ???;

answers: PrintOptions.PrintHeadings

answers: true


category: PrintView

question: How do you set the worksheet to print in landscape orientation?

masked_code: worksheet.??? = ???;

answers: PrintOptions.Portrait

answers: false


category: PrintView

question: How do you set the paper to A3 for printing?

answers: PrintOptions.PaperType

answers: PaperType


category: PrintView

question: How do you set printing of five copies?

masked_code: worksheet.??? = 5;

answers: PrintOptions.NumberOfCopies


category: PrintView

question: How do you set the first visible column in a worksheet to column D?

masked_code: worksheet.??? = ???;

answers: ViewOptions.FirstVisibleColumn

answers: 3


category: PrintView

question: How do you set the worksheet zoom level to 125%?

masked_code: worksheet.??? = ???;

answers: ViewOptions.Zoom

answers: 125


category: PrintView

question: How do you set the print area to a specific cell range (E1:U7)?

answers: NamedRanges.SetPrintArea

answers: Cells.GetSubrange


category: Reading

question: How do you load an Excel file from a path?

answers: ExcelFile.Load


category: Reading

question: How do you iterate through all cells currently allocated in a row?

masked_code: foreach (ExcelCell cell in row.???)

answers: AllocatedCells


category: Reading

question: How do you read an enum type of a cell's value?

answers: ValueType


category: Formatting

question: How to set cell A1 text to bold?

answers: Style.Font.Weight

answers: ExcelFont.BoldWeight


category: Formatting

question: How do you set the right border of a cell?

answers: Style.Borders[IndividualBorder.Right].LineStyle


category: Formatting

question: How do you format a cell to display a number with a unit (e.g., meters)?

answers: Style.NumberFormat


category: Formatting

question: How do you set a cell's background color?

answers: Style.FillPattern.SetSolid

answers: SpreadsheetColor


category: Formatting

question: How do you style a merged cell range to italic?

answers: Style.Font.Italic


category: Formatting

question: How do you set a font size for a part of a cell's text starting with the 9th character and ending with the 12th character, both inclusive?

answers: GetCharacters

answers: 4

answers: Font.Size


category: Formatting

question: How do you set a font name for part of a cell's text starting with the 9th character and ending with the 12th character, both inclusive?

answers: GetCharacters

answers: 8

answers: Font.Name


category: Formatting

question: How do you autofit the first column to fit its content?

answers: .AutoFit


category: Formatting

question: How do you set the worksheet zoom level to 140%?

answers: ViewOptions.Zoom

answers: 140


category: Charts

question: How do you add a column chart to a worksheet between cells D2 and M25?

answers: Charts.Add

answers: ChartType.Column

answers: "D2"

answers: "M25"


category: Charts

question: How do you set the chart's data range to (0,0,4,1), including headers?

answers: SelectData

answers: Cells.GetSubrangeAbsolute

answers: true


category: Writing

question: How do you assign the text "Hello" to cell A1?

answers: .Value


category: Writing

question: How do you assign the boolean value true to cell A2?

answers: .Value

answers: true


category: Writing

question: How do you write a formula to a cell?

answers: .Formula


category: Writing

question: How do you set a cell value using row and column indices?

masked_code: worksheet.Cells[???,???].Value="Third row, fourth column";

answers: 2

answers: 3


category: Usage

question: How to set GemBox.Spreadsheet to use the free license?

answers: SpreadsheetInfo

answers: SetLicense