Greetings everyone,
I’m currently using C# with the UNOIDL library on Windows 11. I’ve populated a Calc file from C# code; now I want to select the print area for the entire populated region. I’ve tried the following instructions found online:
// Select the print area
XPrintAreasSupplier xPrintAreasSupplier = (XPrintAreasSupplier)xSpreadsheet;
XPrintAreas xPrintAreas = xPrintAreasSupplier.getPrintAreas();
xPrintAreas.addPrintArea(0, 0, 10, 10, 0);
However, Visual Studio does not recognize XPrintAreasSupplier and addPrintArea. How can I resolve this issue?
Thank you all.