Search code examples
c#asp.net-mvcprintinggembox-spreadsheet

Gembox Excel send directly to Printer


I have made a web application where i can write out reports in Excel, using the Gemboxs features.

Using this Example: Gembox Example

Now i would like to send it directly to the Printer, which is connected to the server the web application is running on.

The web application is made in .Net Mvc.

ef.Save("Hello World.xlsx"); // Where "ef" is The ExcelFile.

Solution

  • Use the ef.Print();

     // Print to default printer using default options
     this.ef.Print();
    

    Found on the Gembox documentation