Copy link to clipboard
Copied
Hello.
FrameMaker 7.1 with FDK 7.1
We use FDK to copy and paste in Table elements. This is structured FrameMaker documents with tables. The table are not very large and contains 4 or 5 elements in each cell.
We need to copy and paste cells from bottom row to rows above. On some machines it works like a charm.
But on some computer it doesn't work.
It fails on F_ApiPaste, with error set to "User or parameters canceled the operation".
And immediately after exception if we create new blank document and use CTRL+V, it displays FrameMaker dialog with "Insuficient memory for large clipboard".
But manually copy of that cells in FrameMaker work normally, but with FDK it doesn't.
We had this copy/paste issue before also with copy in cells. (But before we were copypasting Graphics elements). We overcome this issue with not using F_ApiPaste.
Is this some known issue? Or how we can use F_ApiPaste to do it's job?
Thanks.
Copy link to clipboard
Copied
Hi hanzelko,
If you are getting it to work on one computer but not another, it suggests that your code is OK but there are some kind of memory issues with the offending computer. However, that is really just speculation... perhaps your code is performing the task in some inflated fashion that is unnecessary, bogging down some computers but not others. Without seeing the code, I can only guess.
Here is a suggestion, though... perhaps you can change from copying cells to copying the content of cells. I assume now that you are putting the actual cells on the clipboard and pasting over other cells. Because cells are represented internally as some kind of independent text flow, I believe that the process is more prone to hiccups and memory usage. If you can just copy contents from one cell to another, it should go more smoothly, although of course I can't say for sure whether it will solve your problem.
I will note that because you are using structured documents, the task of selecting, copying, and pasting table cell contents is reasonably easy. You can use element ranges to select text, versus paragraph IDs and text ranges. Maybe you already know that, just thought I'd point it out. A structure tree is a very convenient roadmap to a document, especially from an FDK programming perspective.
Russ