1
A
回答
2
使用報告服務Web服務。一個漂亮的帖子裏這樣做是:http://geekswithblogs.net/bsherwin/archive/2007/04/29/112094.aspx
Dim result() As Byte
Dim report As String = "/Sample Reports/Sales Order Detail"
Dim format As String = "PDF"
Dim historyid As String = Nothing
Dim devinfo As String = ""
Dim credentials() As SQLRS.DataSourceCredentials = Nothing
Dim showhide As String = Nothing
Dim encoding As String
Dim mimetype As String
Dim warnings() As SQLRS.Warning = Nothing
Dim reporthistoryparams As SQLRS.ParameterValue() = Nothing
Dim streamid() As String = Nothing
Dim sh As New SQLRS.SessionHeader
ws.SessionHeaderValue = sh
Next, get the result from the web service:
result = ws.Render(report, format, historyid, devinfo, parameters, _
credentials, showhide, encoding, mimetype, reporthistoryparams, _
warnings, streamid)
Dim stream As FileStream = File.Create("C:\My Reports\report.pdf", results.Length)
stream.Write(results, 0, results.Length)
stream.Close()
相關問題
- 1. SSRS PDF生成
- 2. 生成ODT/DOC(X)並轉換爲PDF,無OO.o/MS
- 3. 將InfoPath表單自動轉換爲PDF
- 4. 將動態PDF轉換爲Imagemagick並轉換爲PNG
- 5. 的Java轉換動態生成HTML內容爲PDF
- 6. 自動生成PDF並自動上傳到服務器
- 7. 將html轉換爲pdf並自動旋轉並調整大頁面大小
- 8. 讀取HTML文件,並轉換成PDF
- 9. 合併使用SSRS和ASP.NET生成的PDF格式報告
- 10. Html轉換爲PDF的PDF轉換
- 11. PDF轉換爲PDF轉換器
- 12. 轉換爲PDF
- 13. WordML轉換爲PDF轉換
- 14. 轉換爲生成文件
- 15. PDF動態生成
- 16. Sweave能自動生成很多pdf嗎?
- 17. 生成自動打印的PDF
- 18. 的Prestashop,生成發票(PDF)自動
- 19. 自動生成PDF中的按鈕
- 20. (HTML + CCS3生成的分頁媒體內容)轉換爲PDF?
- 21. 從pdf生成ZPL2代碼(轉換爲PNG)
- 22. 將JavaScript生成的文檔/頁面轉換爲PDF
- 23. 如何將在response.outputStream中生成的PDF轉換爲Base64編碼
- 24. XMLWorkerHelper將html頁面轉換爲pdf只生成前2頁
- 25. 轉換生成的輸出HTML使用PHP爲PDF/CSS - 2017年
- 26. 任何方式從SSRS 2005輸出PDF輸出並轉換爲Word文檔?
- 27. CakePHP生成並保存PDF
- 28. 是否可以自動生成SSIS派生列轉換?
- 29. 使用wkhtmltopdf生成PDF並下載pdf
- 30. Alfresco - 將Doc轉換爲pdf並下載自定義操作
謝謝,但我需要它的WinForms .............. – 2012-01-06 14:52:54
我更新我的回答,只是把結果寫入文件,而不是在瀏覽器中顯示它。 – KMan 2012-01-06 15:16:15
再次感謝,但它從哪裏得到哪些報告要寫成PDF? – 2012-01-06 15:19:45