Mar-05-2020, 09:14 PM
To buran-
Let me try to clarify the process.
I create a table (in Python terms, a list of lists) in my DB code. I try to copy this table to the clipboard using pyperclip, then manually paste it into a preformatted Calc template which I can open from within my software. But pyperclip baulks at handling lists, so that approach fails.
The next approach is to save the table as a .csv file, and get xsel to copy that file to the clipboard. Once again the preformatted template is open and ready to manually paste the data into.
What I am currently doing, which is manual and tedious, is to open the .csv file, and cut and paste it to the template.
To snippsat -
Thank you for that suggestion. I shall not get a chance to try it till next week, but I will let you know how I get on.
To everybody -
Thanks for being so helpful.
Let me try to clarify the process.
I create a table (in Python terms, a list of lists) in my DB code. I try to copy this table to the clipboard using pyperclip, then manually paste it into a preformatted Calc template which I can open from within my software. But pyperclip baulks at handling lists, so that approach fails.
The next approach is to save the table as a .csv file, and get xsel to copy that file to the clipboard. Once again the preformatted template is open and ready to manually paste the data into.
What I am currently doing, which is manual and tedious, is to open the .csv file, and cut and paste it to the template.
To snippsat -
Thank you for that suggestion. I shall not get a chance to try it till next week, but I will let you know how I get on.
To everybody -
Thanks for being so helpful.