cognos 不能另存为excel
Posted
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了cognos 不能另存为excel相关的知识,希望对你有一定的参考价值。
我的设置完全正确 ,但是导出为excle时仍不能成功 有人说是插件的问题,但不知道哪些插件会有影响
IE无法导出cognos报表,您可以从以下3个方面来解决此问题:A.打开Internet选项, 安全,Internet,自定义级别,向下拉滚动条到
下载,将“文件下载”和“文件下载自动提示”都设置为启用。
B.打开Internet选项, 安全,受信任站点,站点,将 http://*.*.*.*(cognos门户站点)添加到信任站点中。
C.如果现在您还不能导出清单报表,请查看您的IE辅助工具,是否拦截了导出时弹出的窗口,请将拦截窗口的功能关闭掉即可。 参考技术A FineBI支持数据预警功能,对于在某个数据区间的数据可以进行红绿灯预警或者数据前景预警;更可以使用计算指标添加平均线的功能动态的反应数据的整体水平,实现个体数据与数据总体水平的直观对比。 参考技术B 是你的ie设置问题 在安全属性里 自定义级别了 文件下载设置为启用 文件下载自动提示 设置禁用 同时添加cognos主页到信任 并去掉窗口阻止程序追问
设置已经是这样了
参考技术C 没见过。Applescript Excel 2016 另存为 CSV
【中文标题】Applescript Excel 2016 另存为 CSV【英文标题】:Applescript Excel 2016 SAVE AS CSV 【发布时间】:2015-11-17 07:39:54 【问题描述】:下面的 Applescript 在 Excel 2011 中运行良好,没有任何问题。该脚本打开一个 Excel 文件,删除一列并删除任何“,”或“;”从 Excel 文件,然后将其另存为 CSV 文件。我在 Excel 2016 中遇到的问题是在操作后将其保存为 CSV 文件的最后一块。没有保存任何内容,我没有收到任何错误。
tell application "Microsoft Excel"
activate
open theWorkbookFile #open the xls file
set theWorksheetname to name of worksheet 1 of active workbook
set theWorksheet to worksheet 1 of active workbook
activate object theWorksheet
tell application "System Events" to set visible of process "Microsoft Excel" to false
#Remove the first column
tell theWorksheet
delete range column 1 shift shift to left
try
##remove any "," and ";" from the product description and replace it with a " " instead.
replace (range "B:B" of worksheet "Sheet1") what "," replacement " "
replace (range "B:B" of worksheet "Sheet1") what ";" replacement " "
end try
end tell
#Set the temp csv file to the name of of the Excel sheet followed by -TMP.csv
set theFile to theWorksheetname & "-TMP" & ".csv" as text
save as theWorksheet filename theFile file format CSV file format with overwrite #save the file in csv format and overwrite if it exist
close active workbook saving no #close the csv file without prompting user to save again
end tell
【问题讨论】:
你找到解决这个问题的方法了吗? 【参考方案1】:我遇到了同样的问题,并设法“手动”保存为 CSV,使用 AppleScript 进行用户应该做的用户交互。
我的代码在下面...
#here you choose the name to your CSV file
set fileName to "ClearD -" & (current date) as string
#here you should have your original .XLSX file name and address to open it further
set theDoc to ((path to desktop folder as text) & "ClearD-Data.xlsx") as string
tell application "Microsoft Excel"
activate
open file theDoc
delay 1
tell application "System Events"
keystroke "s" using command down, shift down
delay 0.3
tell front window of (first application process whose frontmost is true)
click pop up button 2 of sheet 1
delay 0.3
#we are doing this to select CSV in the dropdown menu
repeat 3 times
keystroke "c"
end repeat
key code 36 # hit return
delay 1
repeat 50 times # this will delete whatever the current file name is and put fileName instead
key code 123 using shift down
end repeat
delay 1
#this will type your file name
keystroke fileName
delay 1
click button "Save" of sheet 1
-- set uiElems to entire contents # I use this command only to see what is out there for me to use and troubleshoot
end tell
end tell
#now we are all good so we will close excel
close active workbook saving no
end tell
【讨论】:
以上是关于cognos 不能另存为excel的主要内容,如果未能解决你的问题,请参考以下文章
请教:C# winform Rtf另存为图片时不能保存原图片大小的问题