dip s

dip s

  • 1.4k
  • 256
  • 76.6k

How to print base64 string data having table in crystal report

Dec 2 2020 4:12 AM
I am printing base64 string in crystal report. When my base64 string contains normal plain data it is getting printed but if my base64 string has data in tabular format then data from the table is getting displayed plainly not in tabular format.
 
Only text is getting printed not table. So how to print data with table or in tabular format? My code is as follows
  1. const win = window.open("""_blank");    
  2.  let html = "";    
  3.  html += "<html>";    
  4.  html += '<body style="margin:0!important">';    
  5.  html += '<embed width="100%" height="100%" src="data:application/pdf;base64,' + result + '" type="application/pdf" />';    
  6.  html += "</body>";    
  7.  html += "</html>";    
  8.  win.document.write(html);  
In above code, result contains data to be displayed.(data contains table). Thank you in advance.

Answers (1)