How to add header in Google spreadsheet

青春壹個敷衍的年華 提交于 2019-12-23 11:55:20

问题


I am using gdata-spreadsheet-3.0 jar to enter data in a Google spreadsheet.

I am using

(new ListEntry()).getCustomElements().setValueLocal("Header Name", "Value");

But I don't want to create the header manually.

I am unable to enter/create the header of the spreadsheet with Java. I’m also unable to enter data using spreadsheet's header (means A B C...).

Can I create a header or can I use spreadsheet's header (means A B C...)?


回答1:


I would try to use the cell objects/feeds to set the values in the header row.

http://code.google.com/apis/spreadsheets/data/3.0/developers_guide.html#CellFeeds

If that works, then you can hopefully use the list objects/feeds with header names you just set.



来源:https://stackoverflow.com/questions/6304704/how-to-add-header-in-google-spreadsheet

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!