1. 程式人生 > >ActiveReports 9實戰教程(1): 手把手搭建好開發環境Visual Studio 2013 社區版

ActiveReports 9實戰教程(1): 手把手搭建好開發環境Visual Studio 2013 社區版

line tool mmu tin style textbox ble mil nts

ActiveReports 9剛剛公布3天。微軟就公布了 Visual Studio Community 2013 開發環境。

Visual Studio Community 2013 提供完整功能的 IDE ,可開發 Windows、Android 和 iOS 應用。支持:C++, Python, HTML5, JavaScript, 和 C#,VB, F# 語言的開發。提供設計器、編輯器、調試器和診斷工具。

最牛逼的在於你全然能夠免費使用該工具:

  • 能夠正大光明的免費使用visual studio
  • 不能用於企業應用程序的開發.
  • 專門為學生、開源貢獻者、小企業、初創企業、以及獨立開發人員們設計的一個盡管免費、但功能齊全的開發環境。

在VS .NET開發中,用什麽做報表? RDLC是標配了。這可能是開發人員比較單一的選擇。在除了RDLC外,假設有高、大、上的需求,可選擇ActiveReports 9試試。

以下我們手把手開始下載Visual Studio 2013 社區版, 再下載ActiveReports 9進行實戰環境搭建。(ActiveReports 9簡稱為AR9)

下載Visual Studio 2013 社區版

下載地址:http://www.visualstudio.com/en-us/products/visual-studio-community-vs

技術分享

操作系統:
  • Windows 8.1 (x86 and x64)

  • Windows 8 (x86 and x64)

  • Windows 7 SP1 (x86 and x64)

  • Windows Server 2012 R2 (x64)

  • Windows Server 2012 (x64)

  • Windows Server 2008 R2 SP1 (x64)

硬件要求:
  • 1.6 GHz or faster processor

  • 1 GB of RAM (1.5 GB if running on a virtual machine)

  • 20 GB of available hard disk space

  • 5400 RPM hard disk drive

  • DirectX 9-capable video card that runs at 1024 x 768 or higher display resolution

先安裝Visual Studio 2013 社區版,

vs2013.4_ce_enu.iso 近7G

技術分享

從UI上。整體感覺和Visual Studio 2013專業版沒有太大差別。

技術分享

下載ActiveReports 9 專業版

打開以下的站點,點擊馬上下載,請您填寫真實電子郵件地址。以獲取ActiveReports產品試用版---系統會自己主動把下載URL發送到郵箱。

http://www.gcpowertools.com.cn/products/activereports_overview.htm

技術分享

備註:ActiveReports 9是第三方報表引擎,完美支持Visual Studio, 可免費使用30天。

技術分享

技術分享

至此。ActiveReports 9和Visual Studio 2013社區版的環境已經搭建完畢。

涉及ActiveReports 9試用版激活信息,請參考官方博客:

  • ActiveReports 報表控件官方中文新手教程 (1)-安裝、激活以及產品資源
  • 管理ActiveReports產品授權:開發電腦
  • 管理ActiveReports產品授權:應用程序
  • 消除 ActiveReports 試用版信息

以下。我們在Visual Studio 2013中新建一個ActiveReports 9的報表project:

技術分享

新建一個.NET Framework 4.0的Winform項目

技術分享

右鍵選擇項目,新建一個AR9的RDL報表(在AR8版本號曾經是頁面報表-CPL)

技術分享

雙擊打開新建的RdlReport1.rdlx文件,拖入AR9 RDL報表UI控件TextBox,並輸入“Hello world。ActiveReports 9”

技術分享

在Form中。加入AR9報表瀏覽器-Viewer

在Form.Load裏面載入報表:

this.viewer1.LoadDocument(@"c:\users\rogerwang\documents\visual studio 2013\Projects\ActiveReports9_HelloWorld\ActiveReports9_HelloWorld\RdlReport1.rdlx");

執行程序,假設沒有激活,會彈出這個對話框。點擊確認就可以(AR9可免費使用30天,項目報表選型、學習足夠了。

技術分享

技術分享

在本節,已經完畢了AR9的環境配置和Hello World的實戰; 下一節,我們就真實項目關心的數據源進行解說。


----------------------------------------------------------------------------------------------------------

ActiveReports 9實戰教程文件夾:

  • ActiveReports 9實戰教程(1): 手把手搭建好開發環境Visual Studio 2013 社區版

  • ActiveReports 9實戰教程(2): 準備數據源(設計時、執行時)

  • ActiveReports 9實戰教程(3): 圖文並茂的報表形式

  • ActiveReports 9實戰教程(4): 交叉匯總與數據處理

  • ActiveReports 9實戰教程(5): 美麗的報表

  • ActiveReports 9實戰教程(6): 讓報表動起來

  • ActiveReports 9實戰教程(7): 報表打印和報表導出

??

ActiveReports 9實戰教程(1): 手把手搭建好開發環境Visual Studio 2013 社區版