English 中文(简体)
Javascript Chart to Excel
原标题:Javascript Chart to Excel

Hi I m using highcharts, 以便利用Javascript制作一些图表(皮、酒吧等)。 这些图表不使用闪电或像这样的东西。 我是否可以将由此产生的超文本页面与 Java印图转换成适当显示图像的Excel文件?

我曾尝试过标准变化的奇迹类型,到目前为止,我只能够输出一页的超文本表格,但没有图表。

问题回答

您可以对该网页进行筛选,将其收成,并将照片插入Excel:

您可以制作外壳图样本,并作为超文本页面输出。 审视一下结果,看看看是否用超文本储存图表。

无论如何,见。 微软办公室超文本和XML参考资料

如果您的图表四分五裂,则尝试这样做。

var imgObj = document.getElementById( yourdivname );
imgObj.contentEditable =  true ;
var controlRange;
if (document.body.createControlRange) 
{
    controlRange = document.body.createControlRange();
    controlRange.addElement(imgObj);
    controlRange.execCommand( Copy );
    var objExcel = new ActiveXObject ("Excel.Application");
    objExcel.visible = true;
    var objWorkbook = objExcel.Workbooks.Add;
    var objWorksheet = objWorkbook.Worksheets(1);    
    objWorksheet.Paste;
 }




相关问题
import of excel in SQL imports NULL lines

I have a stored procedure that imports differently formatted workbooks into a database table, does work on them then drops the table. Here is the populating query. SELECT IDENTITY(INT,1,1) AS ID ...

Connecting to Oracle 10g with ODBC from Excel VBA

The following code works. the connection opens fine but recordset.recordCount always returns -1 when there is data in the table. ANd If I try to call any methods/properties on recordset it crashes ...

Excel date to Unix timestamp

Does anyone know how to convert an Excel date to a correct Unix timestamp?

C# GemBox Excel Import Error

I am trying to import an excel file into a data table using GemBox and I keep getting this error: Invalid data value when extracting to DataTable at SourceRowIndex: 1, and SourceColumnIndex: 1. As ...

Importing from excel "applications" using SSIS

I am looking for any tips or resources on importing from excel into a SQL database, but specifically when the information is NOT in column and row format. I am currently doing some pre-development ...

热门标签