Howdy!
I have a named range A in workbook X. I want to copy all the data (values and format) of range A into workbook Y. I have tried to use PostWorksheetCellsRangesCopyRequest but I keep getting errors. My current flow is:
- upload a new file (workbook X, which contains range A)
- create a new workbook Y in aspose storage
- call PostWorksheetCellsRangesCopyRequest (this is the step that is failing).
Is there some precursor step that I am missing? Like, do I need to create a new range B in workbook Y before I can copy over range A?
Perhaps my greatest issue is that I am not entirely sure what the RangeOperate parameter should look like. The example in github didnât seem to work for me. I can see the various components (operate: str, source: Range, target: Range, paste_options: PastOptions) but I am not clear what these components should look like. Some questions off the top of my head would be:
- What are the valid flags for operate and what does each flag mean? In github I see âcopyâ as a possible option, but I assume there are others?
- Looking at the Range type, I donât see any options for specifying which workbook the range is in. Only worksheet. Additionally, what is the ârefers_toâ type? What should go there?
- Iâm pretty lost entirely when it comes to PasteOptions. I can see the components (only_visible_cells, paste_type, skip_blanks, transpose), and I can guess at their meanings, but I canât seem to find any documentation on what these flags mean/do.
Sorry if any of these questions are completely clueless lol. I sincerely appreciate any guidance yâall could provide.