Search results

Print and Export in Blazor Circular Gauge component

Print

The rendered circular gauge can be printed directly from the browser by calling the method Print. You can get the Circular Gauge component object using @ref="Gauge"

@using Syncfusion.Blazor.CircularGauge

<button @onclick="PrintGauge">Print</button>
<SfCircularGauge @ref="Gauge">
</SfCircularGauge>

@code {
    SfCircularGauge Gauge;
    void PrintGauge()
    {
        gauge.Print();
    }
}

Circular Gauge with print Sample

Export

The rendered circular gauge can be exported to the following formats using the Export method. The input parameters for this method are export type for format and file name of result.

  • JPEG
  • PNG
  • SVG
  • PDF
@using Syncfusion.Blazor.CircularGauge

<button @onclick="ExportGauge">Export</button>
<SfCircularGauge @ref="Gauge">
</SfCircularGauge>

@code {
    SfCircularGauge Gauge;
    void ExportGauge()
    {
        gauge.Export(ExportType.PNG, "CircularGauge");
    }
}

Circular Gauge with export Sample

Contents
Contents