Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

995
Views
ventana.imprimir en Blazor WASM

Soy nuevo en Blazor y he estado tratando de encontrar si hay algún equivalente de window.print() en Blazor. Me pregunto si hay algún componente/ayudante prefabricado para esto o necesito crear uno desde cero. Ya he buscado bastante y no encuentro ninguno.

over 4 years ago · Santiago Trujillo
1 answers
Answer question

0

No hay un equivalente en blazor, pero debería considerar agregar un archivo javascript con un método con window.print(), hacer referencia a él en index.html y llamarlo con IJSRuntime inyectado.

Referencia en index.html

 <script src="js/script.js"></script>

Archivo Javascript

 function printInvoke() { window.print(); }

Ejemplo en componente

 @page "/print" @inject IJSRuntime Js <h3>PrintTest</h3> <button @onclick="Print"></button> @code { private async Task Print() { await Js.InvokeVoidAsync("printInvoke"); } }
over 4 years ago · Santiago Trujillo Report
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!