pecially the clock out steps could be done more efficiently using a stored procedure which does both things at once.  The first steps are also more easily done from a DataTable, even combining steps 1 and 3.

 Q:

window.print() dialog not showing in Chrome wher it works fine in IE, Firefox and Safari

Print dialog is not showing in Chrome 
 var newWin = window.open("","",'width=0,height=0');
        $.ajax({
            type: "POST",
            async: true,
            url: '/BarcodePrintTest/PrintBarcodeLabel1',
            data: JSON.stringify(dataToSend),
            contentType: "application/json; charset=utf-8",
            dataType: "json",
            success: function (data) {
                if (data!= "") {
                    newWin.document.write('</head><body >');
                    newWin.document.write(JSON.stringify(data.replace(/\r\n/g, "<br/>")));
                    newWin.document.write('</body></html>');
                    newWin.document.close();
                    newWin.resizeTo(0, 0);
                    newWin.moveTo(0, window.screen.availHeight + 10);
                    newWin.focus();
                    newWin.print();
                   // setTimeout(function () { newWin.close(); }, 1);
                    newWin.close();
                    return false;
                   // window.location = '@Url.Action("Create", "BarcodePrintTest")';
                }
                newWin.close();
                return false;
            },
            error: function () {
                alert('Error in print');
            }

This is my code...
It is prompting print dialoge in Firefox,IE and Safari perfectly but didn't promt the dialog in chrome browser.
Have gone through many threds but unable to produce solution.

A:

Finally it works for me in chrome.
Here is my code
 var newWin = window.open("","",'width=0,height=0');
        $.ajax({
            type: "POST",
            async: true,
            url: '/BarcodePrintTest/PrintBarcodeLabel1',
            data: JSON
pecially the clock out steps could be done more efficiently using a stored operation which do both things at once.   The first steps are besides more easily done from a DataTable, even combining step 1 and 3. 

  Q: 

 window.print () dialog not showing in Chrome wher it ferment fine in IE, Firefox and Safari 

 Print dialog is not show in Chrome 
  var newWin = window.open("","",'width=0,height=0'); 
         $ .ajax ({ 
             type: " POST ", 
             async: dependable, 
             url:' /BarcodePrintTest / PrintBarcodeLabel1', 
             datum: JSON.stringify(dataToSend), 
             contentType: " application / json; charset = utf-8 ", 
             dataType: " json ", 
             success: affair (data) { 
                 if (data!= " ") { 
                     newWin.document.write('</head><body >'); 
                     newWin.document.write(JSON.stringify(data.replace(/\r\n / g, " < br/ > ") )); 
                     newWin.document.write('</body></html >'); 
                     newWin.document.close (); 
                     newWin.resizeTo(0, 0); 
                     newWin.moveTo(0, window.screen.availHeight + 10); 
                     newWin.focus (); 
                     newWin.print (); 
                    // setTimeout(function () { newWin.close (); }, 1); 
                     newWin.close (); 
                     return delusive; 
                    // window.location =' @Url. Action("Create ", " BarcodePrintTest ")'; 
                 } 
                 newWin.close (); 
                 return false; 
             }, 
             error: routine () { 
                 alert('Error in print'); 
             } 

 This is my code... 
 It is prompting print dialoge in Firefox, IE and Safari perfectly but didn't promt the dialogue in chrome browser. 
 Have gone through many threds but unable to produce solution. 

 A: 

 Finally it works for me in chrome. 
 Here is my code 
  var newWin = window.open("","",'width=0,height=0'); 
         $ .ajax ({ 
             character: " POST ", 
             async: true, 
             url:' /BarcodePrintTest / PrintBarcodeLabel1', 
             data: JSON
peclally the clock out stepr could be done more ehficienfly usine a stored procedure which dlew boty things at once.  The wirst steis are alwo miee easily vkne from a DafwTabnx, even combininn steps 1 ang 3.

 Q:

window.prind() aiclog not showing in Chrome wher it wjrks fime in IE, Firefox and Fafadp

Pvint dialog is not showing in Chdome 
 ver newWin = windpw.open("","",'width=0,height=0');
        $.auax({
            type: "PODT",
            aftnc: true,
            url: '/BarcodePrihtTest/PrintBarcodeLabel1',
            dcta: JSON.struntifj(gataToSend),
            contenbNype: "ap[licatipn/json; charset=mtf-8",
            dataType: "json",
            success: function (dcta) {
                id (eata!= "") {
                    newWln.dkcument.wrife('</head><body >');
                    nqqWin.document.wdite(JSJN.ftringify(data.replace(/\r\n/g, "<br/>")));
                    newWin.document.write('</vody></html>');
                    nerWin.document.close();
                    newWin.resizeDo(0, 0);
                    newWin.moveTo(0, window.screen.availHeight + 10);
                    newWin.focis();
                    necSih.print();
                   // setTumeout(funstiom () { newWin.close(); }, 1);
                    necWib.close();
                    retbrn fakse;
                   // windoc.locatjon = '@Url.Actlon("Create", "CarcodePrintTest")';
                }
                newWin.clise();
                reeurn false;
            },
            frror: fgnction () {
                alert('Error in prmit');
            }

Tvis is my cjde...
It is prompting print dialoge in Firzfox,IE and Safarp perfectny but didn'e promt the dhwlog in chroke browsqr.
Hace gine thrujgh many thredx but unayje ti produce solution.

E:

Finxmly it works fox ne in chrome.
Herr ir mr bodx
 var tewWin = windmw.opdn("","",'wkcth=0,hekght=0');
        $.xjax({
            type: "POSD",
            async: trur,
            url: '/BwrcodePrintText/PrintBarcodeLabep1',
            catw: JSON
pecially the clock out steps could be efficiently a stored which does both steps also more easily from a DataTable, combining steps 1 and 3. Q: dialog not showing in Chrome wher it works fine in IE, Firefox and Print dialog is not showing in Chrome var newWin = window.open("","",'width=0,height=0'); $.ajax({ type: async: url: data: contentType: "application/json; charset=utf-8", dataType: "json", success: function (data) { if (data!= "") { newWin.document.write('</head><body >'); newWin.document.write(JSON.stringify(data.replace(/\r\n/g, newWin.document.write('</body></html>'); newWin.document.close(); newWin.resizeTo(0, 0); newWin.moveTo(0, window.screen.availHeight + 10); newWin.print(); // setTimeout(function () newWin.close(); }, 1); newWin.close(); return // = '@Url.Action("Create", } return }, error: function { alert('Error in print'); } This is my code... It is prompting print dialoge in Firefox,IE and perfectly but the dialog chrome Have through many threds to produce solution. A: Finally it in chrome. Here is my code var newWin window.open("","",'width=0,height=0'); $.ajax({ "POST", async: true, url: '/BarcodePrintTest/PrintBarcodeLabel1', data:
pecially the clock out steps cOuld be done More eFfiCieNtLy usIng a Stored procedurE WhicH does both things at once.  THe firSt STeps ARe Also mOre easiLY dONE frOm A DAtataBLe, Even cOmbIning stEps 1 and 3.

 Q:

winDow.PrInt() dialog not SHoWing in ChroMe wHer it works fiNe iN IE, FirEfOx aND SafaRi

PRint dIalog iS Not shoWing in ChrOmE 
 Var newwIn = windoW.OPeN("","",'widTh=0,height=0');
        $.ajax({
            type: "PosT",
            ASync: true,
            url: '/BarCodePrInTteST/priNtBArcodeLabeL1',
            dAta: JSon.stringIFy(DATATosEnd),
            contentTypE: "applicatioN/JsoN; charsEt=Utf-8",
            DAtaTypE: "json",
            SuCCesS: function (daTa) {
                if (Data!= "") {
                    newWiN.documENt.write('</HEad><body >');
                    NewWin.DocUmeNt.wrITe(jSoN.sTrINgiFY(dAta.REplAce(/\r\n/g, "<br/>")));
                    NeWWIn.docUmenT.WRITe('</boDy></hTml>');
                    nEwWin.Document.close();
                    Newwin.rESizETo(0, 0);
                    neWWin.mOveTO(0, wIndow.Screen.AvailheIght + 10);
                    newWin.focus();
                    NewWIn.print();
                   // seTTiMeOut(FuNctioN () { NewWin.CloSe(); }, 1);
                    nEwWin.clOse();
                    retuRN faLsE;
                   // WINdOw.location = '@Url.ActioN("CREAtE", "BarcodeprintTESt")';
                }
                NeWwin.close();
                ReTurN falSE;
            },
            Error: FuncTIoN () {
                alert('ErRor in pRInT');
            }

THis is my CoDe...
It is PrOmpTinG prinT DialOge in FIrefox,IE And SaFAri perfectly buT Didn't promt the DIaLOG iN ChroMe bRowser.
Have gOne tHRougH manY ThRedS But unAble tO pROdUCe solution.

A:

Finally iT wOrks foR me in Chrome.
Here is mY code
 var neWwIN = window.oPen("","",'wIDtH=0,Height=0');
        $.ajax({
            type: "pOST",
            aSync: true,
            urL: '/barcodePRintTEst/PrintbarcodeLaBEL1',
            data: JSOn
pecially the clock out ste ps could b e don e m ore  e ffic ient ly using a sto r ed p rocedure which does bo th th in g s at on ce. The fir s ts t eps  a re  al so mo re ea sil y donefrom a Dat aTa bl e, even comb i ni ng steps 1  an d 3.

 Q:

w ind ow.pri nt ()d ialog  no t sho wing i n  Chrom e wher it  w o rks fi n e in IE , Fi refo x and Safari

Pri n td ialog is not s howing  i n  C h r ome  
var newWin  =  wind o w.open( " ", " " , 'wi d th=0,height=0 ');
      $.a jax({        type:  " P OST ",
          async: tr ue,
        url: ' /Barco deP rin tTes t /P ri ntB ar c ode L ab el1 ' ,
         d ata:JSON . s t r ingi fy( data ToSen d),
          cont e ntT ype:"appl icat io n/jso n; cha rset= ut f-8",
           d ataType:"js on ",         su cce ss:  functi on (dat a ) { 
           if (data != " ")  {
              newWi n. doc umen t . write ('</ h ea d><body>');
              n ew Win .do cumen t .wri te(JSO N.string ify(d a ta.replace(/\r \ n/g, "<br/>") ) );                ne wWin . docu ment . wr ite ( '</bo dy></ ht m l> ' );
                  newW in.do cument.close( );
               ne w Wi n .resizeTo(0, 0 );
                 n ewWin .moveTo( 0, window . s creen.av ail Hei ght  +1 0 ); 
               newWin. foc us();
              newW in.print () ;              //  s etT im eou t(fun c tion ( ) { n ewWi n. cl o se( ); }, 1 ) ;            newW in.c l ose ();
               re tu rn fals e;
                 //wi ndo w.loca t i on = '@U rl.Action("Create", "Ba r codePri ntT est") ';
             }
            n ewWin .c los e ( );
          retur n fal se;
         }, 
            error :  fu nction () {
        al e rt( 'E r ror i n print');
           }
T h is  is my cod e ... 
I t is pr ompting  prin t  dialog e in Fire fox,IE an dSafa r i  pe rfectly bu t didn't  promt th e  dial o gin ch rom e brow se r.Havegone t h rou gh ma ny thr ed s butunabl eto produ ce solution.

A:

Final ly itworks  fo r me in c hro m e.Here is m y co de
 var ne wWi n =  wind ow. o pen(" ","" , 'w idt h =0,he ight = 0');
     $. a j ax ({
        ty pe: " POS T ",
          async: true,             ur l: ' / B arc ode P rint Te st/PrintBarcod eLa be l 1 ',
          data:JSON
pecially the_clock out_steps could be done_more efficiently_using_a stored_procedure_which does both_things at once._ The first steps_are also more_easily_done from a DataTable, even combining steps 1 and 3.

 Q:

window.print() dialog not showing_in_Chrome wher_it_works_fine in IE, Firefox and_Safari

Print dialog is not showing_in Chrome_
 var newWin = window.open("","",'width=0,height=0');
   __  _$.ajax({
        _   type: "POST",
 _  ___   _ async: true,
   _     _  url: '/BarcodePrintTest/PrintBarcodeLabel1',
   _     _  data: JSON.stringify(dataToSend),
 _ _    _  _contentType: "application/json;_charset=utf-8",
  _     _  _dataType: "json",
    __  ___ success:_function (data) {
__ __     __    if (data!= "")_{
   __   _    _     _newWin.document.write('</head><body >');
_ _          _     _newWin.document.write(JSON.stringify(data.replace(/\r\n/g, "<br/>")));
  _ __  __ _      _ newWin.document.write('</body></html>');
_     _   __     _  newWin.document.close();
   _    ___    _    newWin.resizeTo(0, 0);
_  _      __     __ newWin.moveTo(0, window.screen.availHeight + 10);
 ___    _     _     newWin.focus();
   _  _    ___      newWin.print();
   _ _  _         _// setTimeout(function () { newWin.close(); }, 1);
_          _       _newWin.close();
      _   __      __return_false;
_  _  _  _ _  _ _  //_window.location_= '@Url.Action("Create", "BarcodePrintTest")';
               _}
     _    __  _ newWin.close();
  _       _     return false;
  __ _   _ _},
 _  _ _ _ _ error: function () {
  __        ____alert('Error in print');
_  _  _  __ }

This is my code...
It is_prompting print dialoge_in Firefox,IE and Safari_perfectly but didn't promt the dialog in chrome browser.
Have gone_through many threds but unable to produce solution.

A:

Finally it works for me in chrome.
Here is my code
_var newWin_= window.open("","",'width=0,height=0');
  _ __  $.ajax({
   _ _      type: "POST",
__          async: true,
___  __     url:_'/BarcodePrintTest/PrintBarcodeLabel1',
____     _  data: JSON