Closed redaxol closed 3 years ago
@redaxol
You can do most custom tasks in the Controllers for C# and for JavaScript in html or js files but actual printing to printer itself is not supported. You need to look into other projects for that.
Note: This is still in reference to printing silently. CEF/CefGlue exposes PrintToPDF, Print. These will be exposed to make them obvious.
Is that there are lightweight alternatives of Chromely in .net that support this feature ?
@redaxol
Is that there are lightweight alternatives of Chromely in .net that support this feature ?
My statement was a bit misleading. I just updated that.
This is what I meant: https://github.com/chromelyapps/Chromely/issues/303.
So what you intend to do will will be done in this method:
class PrintToPdfCallback : CefPdfPrintCallback
{
protected override void OnPdfPrintFinished(string path, bool ok)
{
if (ok)
{
// Do the printer work here.
// Or other tasks.
}
}
public void Dispose()
{
}
}
We can look into feature exposing printing to PDF.
how to print a pdf file directly to default printer without showing print dialog or option like kiosk