简体   繁体   English

定义打印标题时,Eviews无法导出到Excel

[英]Eviews can't export to Excel when print titles are defined

We want to save time when exporting to Excel from Eviews. 我们希望从Eviews导出到Excel时节省时间。 To do this we have export a long list of variables in one command. 为此,我们在一个命令中导出了一长串变量。 Totally almost 800 rows are exported at once. 一次导出几乎800行。 We want to have titles on top of each page. 我们希望每页都有标题。 To be readable we have at most about 70 rows per page. 为了便于阅读,我们每页最多有70行。 We can not put titles on the rows that are on top of the page, because then the titles would be written over by Eviews, so we use the Print titles options in Excel. 我们不能将标题放在页面顶部的行上,因为标题将由Eviews写入,因此我们使用Excel中的“打印标题”选项。

The problem is that when we use Print titles we get an error we do not get otherwise, and afterwards the excel file looses all old data. 问题是,当我们使用Print标题时,我们会得到一个错误,否则我们就会得到错误,之后excel文件会丢失所有旧数据。

The name cannot be the same as a built in name.
Old name: Print_Titles

Is there a way to get around this? 有办法解决这个问题吗?

EDIT: Depending on how print_titles are stored in the xlsx-file, the file can either get overwritten or only the print titles get "removed". 编辑:根据print_titles在xlsx文件中的存储方式,文件可能会被覆盖,或只有打印标题被“删除”。 When unzipping the xlsx-file and reading an xml I get this row: 解压缩xlsx文件并读取xml时,我得到以下行:

<definedName name="_xlnm.Print_Titles" localSheetId="0">MySheet!$1:$1</definedName>

if I do the same after export _xlnm. 如果我在导出_xlnm后也这样做。 is removed and I get this: 被删除,我明白了:

<definedName name="Print_Titles" localSheetId="0">MySheet!$1:$1</definedName>

And then the print titles don't work and has to be reset manually again. 然后打印标题不起作用,必须再次手动重置。

This seems to be a bug in either excel or eviews. 这似乎是excel或eviews中的一个错误。 After lots of contact with people at Eviews, we got a workaround, that is using excel 2003 file format. 在与Eviews的人们进行了大量的联系之后,我们得到了一个解决方法,即使用excel 2003文件格式。 Then print titles are not removed. 然后不删除打印标题。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM