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

170
Views
Cómo rellenar previamente el nombre de la impresora en el navegador

Estoy usando ASP.NET MVC y estoy usando una función con AJAX que abre en el navegador la ventana para imprimir.

Mi pregunta es cuando imprimo, me gustaría configurar el nombre de la impresora sin seleccionar la impresora que necesito. ¿Hay alguna forma de hacerlo? Voy a dejar mi código de mi función a continuación y una imagen.

 function print() { //Serialize the form datas. var printdata = $("#PrintLabel").serialize(); $.ajax({ type: "POST", dataType: 'HTML', contentType: 'application/x-www-form-urlencoded', url: PrintPreviewUrl, data: printdata, cache: false, success: function (response) { window.$("#printModalCenter").modal('hide'); var WinPrint = window.open('', '', 'left=100,top=100,width=600,height=600'); WinPrint.document.write(response); setTimeout(function () { WinPrint.print(); WinPrint.close(); }, 500); }, fail: function () { WinPrint.document.close(); WinPrint.focus(); } });

Esta es la parte en la que quiero completar previamente el nombre de la impresora sin tener que elegir y desplazarme hacia abajo, quiero que el nombre aparezca automáticamente cuando se abra la ventana.

ingrese la descripción de la imagen aquí

about 4 years ago · Juan Pablo Isaza
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!