GithubHelp home page GithubHelp logo

tanaikech / docsserviceapp Goto Github PK

View Code? Open in Web Editor NEW
46.0 5.0 13.0 745 KB

This is a Google Apps Script library for supporting Document service, Docs API, Spreadsheet service, Sheets API, Slides service and Slides API. The aim of this library is to compensate the processes that they services cannot achieve.

License: MIT License

JavaScript 100.00%
google-apps-script gas-library library developer-tools google-spreadsheet google-docs google-slides

docsserviceapp's Introduction

docsserviceapp's People

Contributors

tanaikech avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

docsserviceapp's Issues

referenced images

I has a Spreadsheet with some tabs,
One (Tab B) tab get values (sortn) from another tab (Tab A), where has images.
But, when I try to get images from Tab B, return empty.
Images are showed in tab. But, return empty when used Doc.. - .getImages()

What I can do?

openBySpreadsheetId throwing error

DocsServiceApp.openBySpreadsheetId(spreadsheetId)
.getSheetByName(sheetName)
.getImages()

is not working as expected inside a macro.

Following error is thrown while executing

Exception: We're sorry, a server error occurred. Please wait a bit and try again. SpreadsheetAppp @ SpreadsheetAppp.gs:11 openBySpreadsheetId @ main.gs:15

Error while using your lib :/

Hello sir,
Thank you for your useful work. However, I can't figure out why, while using your lib, I'm getting the following error :

"stack":"TypeError: Cannot read properties of null (reading 'getValue')
at ExcelApp:133:51\n at Array.map ()
at ExcelApp.getSharedStrings (ExcelApp:132:56)
at ExcelApp.parsXLSX (ExcelApp:112:24)
at new ExcelApp (ExcelApp:21:18)
at SpreadsheetAppp.getImages (SpreadsheetAppp:38:18)",
"message":"Cannot read properties of null (reading 'getValue')"

Would you mind pointing me in the right direction ?
Thank you again for your work.

My code (pretty basic) :
let file = DocsServiceApp.openBySpreadsheetId('<ID>')
console.log(file.obj.spreadsheetId)
let allImages = file.getImages()
The SpreadSheet id logged looks fine, the error "This file ID is not the file ID of Spreadsheet." is not triggered

Use of relations for image and sheet file names inside the spreadsheet files

Hi @tanaikech, Thanks for making this library, it helped me at work deal with batch uploading product photos to an accounting system from Excel files.

While using the library, some .xlsx files had issues with the library due to the use of relationship files that map a specific drawing to filenames inside the Excel file. This also applies to linking sheet names to file names inside the Excel file. I've modified the library to work around this issue and get the file / image names from the relationship files.

I was wondering if you are using a build step for the code available here in the repo? If not I can open a pull request with my changes (which I am sure are not great since I made them in a hurry and I am not really familiar with the Excel file specifications and XML in general.)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.