Blazor.Printing icon indicating copy to clipboard operation
Blazor.Printing copied to clipboard

printJS is not defined

Open 14z0r opened this issue 2 years ago • 1 comments

Hello,

if i try to print my PDF, i get the error, that the printJS was not found.

blazor.server.js:1 [2023-06-29T10:25:53.508Z] Error: Microsoft.JSInterop.JSException: printJS is not defined ReferenceError: printJS is not defined at Module.print (http://localhost:5019/_content/Append.Blazor.Printing/scripts.js:3:5) at http://localhost:5019/_framework/blazor.server.js:1:3506 at new Promise (<anonymous>) at Ft.beginInvokeJSFromDotNet (http://localhost:5019/_framework/blazor.server.js:1:3480) at Ft._invokeClientMethod (http://localhost:5019/_framework/blazor.server.js:1:75072) at Ft._processIncomingData (http://localhost:5019/_framework/blazor.server.js:1:72696) at Ft.connection.onreceive (http://localhost:5019/_framework/blazor.server.js:1:67009) at i.onmessage (http://localhost:5019/_framework/blazor.server.js:1:51322) at Microsoft.JSInterop.JSRuntime.InvokeAsync[TValue](Int64 targetInstanceId, String identifier, Object[] args) at Microsoft.JSInterop.JSObjectReferenceExtensions.InvokeVoidAsync(IJSObjectReference jsObjectReference, String identifier, Object[] args) at Append.Blazor.Printing.PrintingService.Print(PrintOptions options) at Microsoft.AspNetCore.Components.ComponentBase.CallStateHasChangedOnAsyncCompletion(Task task) at Microsoft.AspNetCore.Components.RenderTree.Renderer.GetErrorHandledTask(Task taskToHandle, ComponentState owningComponentState)

14z0r avatar Jun 29 '23 10:06 14z0r

Not sure if this is still the case? @14z0r

vertonghenb avatar Feb 26 '24 02:02 vertonghenb