Hi, I have read your instructions ONLYOFFICE Api Documentation - How it works concerning exchanging data among files and try to use it for coping data between two files. Below the code:
builder.OpenFile(“C:\File1.xlsx”);
var oWorksheet = Api.GetSheet(“Sheet1”);
var Rng= oWorksheet.GetUsedRange()
GlobalVariable[“CR”]= Rng
builder.CloseFile();
builder.OpenFile("C:\File2.xlsx ");
var oWorksheet = Api.GetSheet(“Sheet1”);
var Rng = GlobalVariable[“CR”]
Rng.Copy(oWorksheet.GetRange(“A3”))
builder.SaveFile(“xlsx”, "C:\File2.xlsx ");
builder.CloseFile();
And I’ve got the following messages about errors:
Uncaught TypeError: Converting circular structure to JSON
Uncaught TypeError: Cannot read property ‘Copy’ of undefined
As I understand, the problem is in the “GlobalVariable”. Could you advise me what’s wrong with using of GlobalVariable?
We have checked the situation and we found known issue. We are planning to fix it in the next version of Document server.
The situation is related to method for creating objects based on their description in json format. We are working on it.
As I can see on your web page (ONLYOFFICE Api Documentation - Overview) the latest version of Documentbuilder is 7.2 still. You decided to postpone of release v.7.3 which you planned on December, 2022?
Unfortunately, I have not been able to check if my code is working (see my first post in this thread), as my it department has not yet updated documentbuilder to the current version due to problems with software security.
Hello @kevin1234
Please provide us with details on your request. Is the situation related to footnotes as described in the title of GitHub post? Your test scenario isn’t clear for me, please provide us with step-by-step usage scenario and what is your final goal? I see that you are using GlobalVariable method in the script, but I don’t understand where you are passing this variable after builder.SaveFile.
P.S. Please do not post the same request in different communication channels.