1
Answer

crstal report . when converting total amount in to words

prabhu p

prabhu p

10y
591
1
when converting total amount in to words  i am getting error anumber or currency is requied  . In this  i used dataset  and datatable  in asp.net
 
 formula for convertin total amt in to words 
 
Towords({@amtwords},0) +"and"+ ToWards({Round({@amtwords},2} - Int({@amtwords})) * 100,0)+" paise only ".
 
 
plz  help me  
Answers (1)
1
Mehul Prajapati

Mehul Prajapati

NA 65 1.5k 7y
chrome.runtime.sendMessage have limited size to parameter. os i have used URL.createObjectURL to transfer data from content to background js.
 
Content.js 
 
var filedata = JSON.stringify({ data: data, fileName: fileName });
var save = new File([filedata], "filename.json", { type: "text/json;charset=utf-8" });
var postdata = window.URL.createObjectURL(save);
 
Background.js
 
var xhr = new XMLHttpRequest();
xhr.open('GET', postdata, true);
xhr.responseType = "text";
xhr.onload = function (e) {
   if (this.status == 200) {
      var myBlob = this.response;
      // myBlob is now the blob that the object URL pointed to.
   }
};
xhr.send();