0

ページの実行時にjavascriptを介してハイチャートが満たされたaspxページをpdfファイルに変換するのに役立つ無料のdllまたはツールを参照してください。

Public Sub lnkExport_Click(sender As Object, e As EventArgs) Handles lnkExport.Click Dim attachment As String = "attachment; filename=" & "abc" & ".pdf" Response.ClearContent() Response.AddHeader("content-disposition" 、添付) Response.ContentType = "application/pdf" Dim s_tw As New StringWriter() Dim h_textw As New HtmlTextWriter(s_tw) h_textw.AddStyleAttribute("font-size", "7pt") h_textw.AddStyleAttribute("color", " Black") MasterDiv.RenderControl(h_textw)

    'Name of the Panel
    Dim doc As New Document()
    doc = New Document(PageSize.A4, 5, 5, 15, 5)
    FontFactory.GetFont("Verdana", 80, iTextSharp.text.Color.RED)
    PdfWriter.GetInstance(doc, Response.OutputStream)
    doc.Open()
    Dim s_tr As New StringReader(s_tw.ToString())
    Dim html_worker As New HTMLWorker(doc)
    html_worker.Parse(s_tr)
    doc.Close()
    Response.Write(doc)
End Sub


    html_worker.Parse(s_tr) is giving error
4

2 に答える 2

0

これらは、librarias como highcharts.js、highcharts-all.js、heatmap.js、derilldown.js を使用してパラブラ アニメーションを作成します:{duration: e substitua o valor que tem dentro de (animation:{duration:1E3 OU animation:{ duration:50 または animation:{duration:500) substitua todos POR animation:{duration:0

Tem com setar sem animação no código mas não funcionou só setar no código, depois que substitui tudo por 0 ai sim funcionou e carregou todas as linhas do gráfico.

Antes da substituição o itextsharp não esperava terminar a animação para carregar todas as linhas do gráfico e ficava incompleto.

colunas: plotOptions: { line: { animation: false } } series

plotOptions: { series: { animation: false } }

例: highcharts.js、Highcharts-all.js、heatmap.js、および drilldown.js としてすべての書店に行き、animation: {duration: という単語を検索し、内部の値を置き換えます (animation: {duration: 1E3 OR animation: { 期間: 50 またはアニメーション: {期間: 500) すべて置換 FOR アニメーション: {期間: 0

コード内のアニメーションなしで設定する必要がありますが、すべてを 0 に置き換えた後にコードを設定するためだけに機能しませんでした。はい、機能し、すべてのチャート ラインを実行しました。

itextsharp を置き換える前に、アニメーションを終了してすべてのグラフ ラインをロードすることは期待できず、不完全でした。

column: plotOptions: { line: { animation: false } } series

plotOptions: { シリーズ: { アニメーション: false } }

于 2016-08-09T14:44:25.357 に答える
0

これらの種類のチャートは、かなり不確定な終点を持つ AJAX のような手法を使用するため、困難です。そのため、自動化されたツールがいつ完了したかを知ることは困難です。

したがって、これらのことは、実行している特定のタイプのチャートにかなり依存します。いくつかはより簡単です。より難しいものもあります。よりインタラクティブな機能 = より難しくなります。

特にハイチャートとの互換性を支援するために、Gecko HTML レンダリング エンジンにいくつかの作業を行ったと述べました。そのため、ABCpdf をご覧になることをお勧めします。

私は ABCpdf .NET ソフトウェア コンポーネントに取り組んでいるので、返信には ABCpdf に基づく概念が含まれている可能性があります。それは私が知っていることです。:-)

于 2013-06-05T10:09:04.343 に答える