Oracle Lite Tutorial

Similar documents
Oracle Lite Tutorial

Oracle Lite Tutorial

untitled

Oracle Lite Tutorial

<Documents Title Here>

(OnePoint) ( URL Web Copyright 2005 Microsoft Corporation. All rights reserved. MicrosoftWindowsVisual Basic Visual Studio Microsoft Corporation

untitled

Windowsユーザーの為のOracle Database セキュリティ入門

Visual Basic Oracle Database 11 Release 1

橡実践Oracle Objects for OLE

Visual Studio Oracle Database 11g アプリケーション開発入門

(OnePoint) ( URL Web Copyright 2005 Microsoft Corporation. All rights reserved. Microsoft Windows Visual Basic Visual Studio Microsoft Corporation

untitled

NetCOBOL for .NET 応用編

Oracle Corporation

Visual Basic Oracle Database 11g Release 1

<Documents Title Here>

untitled

Case 0 sqlcmdi.parameters("?tencode").value = Iidata(0) sqlcmdi.parameters("?tenname").value = Iidata(1) 内容を追加します sqlcmdi.executenonquery() Case Else

Oracle Developer Days

<Documents Title Here>

With sqlda sqlda に SelectCommand を追加.SelectCommand = New MySqlCommand() With.SelectCommand.CommandType = CommandType.Text.CommandText = "select * from

意外と簡単!?

untitled

グラフィックス

Microsoft PowerPoint - odd_odpnet.ppt

Oracle on Windows

honbun.indd

<Documents Title Here>

Oracle on Windows

DAOの利用

LogisticaTRUCKServer-Ⅱ距離計算サーバ/Active-Xコントロール/クライアント 概略   

以下の事項は 弊社の一般的な製品の方向性に関する概要を説明するものです また 情報提供を唯一の目的とするものであり いかなる契約にも組み込むことはできません 以下の事項は マテリアルやコード 機能を提供することをコミットメント ( 確約 ) するものではないため 購買決定を行う際の判断材料になさらな

外部SQLソース入門

Oracle Developer Release 6i

- 2 Copyright (C) All Rights Reserved.

untitled

日本オラクル株式会社


TopLink å SampleClient.java... 5 Ò readallsample() querysample() cachesample() Ç..

LogisticaTRUCKServer-Ⅱ距離計算サーバ/Active-Xコントロール/クライアント 概略   

CAC

3軸加速度センサーモジュール MM-2860 書込み済みマイコンプログラム通信コマンド概要

Microsoft Word - DotNet_SmartClient_Final.doc

1 SQL Server SQL Oracle SQL SQL* Plus PL/SQL 2 SQL Server SQL Server SQL Oracle SQL SQL*Plus SQL Server GUI 1-1 osql 1-1 Transact- SQL SELECTFROM 058

スライド 1

Oracle Direct Seminar <Insert Picture Here>.NET で使いこなそう Oracle Database 日本オラクル株式会社

ValueHolder... 9 Customer.java Oracle TopLink 10g(10.1.3) È Volume3 2

Oracle Web Conferencing Oracle Collaboration Suite 2 (9.0.4) Creation Date: May 14, 2003 Last Update: Jan 21, 2005 Version: 1.21

FileMaker Server Getting Started Guide

ASP.NET 2.0 Provider Model 概要

アプリケーション

いまさら聞けないVB2008 ADO.NET超入門

IP RFID RFID IP RFID IP RFID IP RFID IP RFID IP RFID RFID RFID RFID RFID RFID POS IP RFID i

FileMaker Oracle Microsoft SQL Server MySQL Salesforce.com ROI TCO RAD IT FileMaker Pro RAD RAD TCO RAD Microsoft Visual Studio 2008 Oracle Developer

ハイウォーターマークを知る

Systemwalker IT Service Management Systemwalker IT Service Management V11.0L10 IT Service Management - Centric Manager Windows

署名ツール検証報告書

untitled

相続支払い対策ポイント

150423HC相続資産圧縮対策のポイント

ハピタス のコピー.pages

Copyright 2008 All Rights Reserved 2

Windows SE RAC 10g 構築手順書

VB.NET解説

VFD256 サンプルプログラム

Windows Oracle -Web - Copyright Oracle Corporation Japan, All rights reserved.

Oracle Database 11g Release 2 Application Development (.NET)

Bob Beauchemin Senior Staff Instructor DevelopMentor Alex Keh Senior Product Manager Oracle Corporation

Agenda Windows ServerとOracle Databaseについて 最低限知っておいてほしい セキュリティ面でのポイント Windowsユーザー向け.NET 開発者向け Copyright 2011, Oracle. All rights reserved. 2

Microsoft Word - dotnet_aspdotnet.doc

PowerPoint -O80_REP.PDF

KWCR3.0 instration

tkk0408nari

以下の事項は 弊社の一般的な製品の方向性に関する概要を説明するものです また 情報提供を唯一の目的とするものであり いかなる契約にも組み込むことはできません 以下の事項は マテリアルやコード 機能を提供することをコミットメント ( 確約 ) するものではないため 購買決定を行う際の判断材料になさらな

Microsoft PowerPoint _DotnetPerf.ppt [互換モード]

COBOLソース解析支援 導入・運用ガイド

ADO.NETのアーキテクチャ

NetCOBOL for .NET 応用編

Warehouse Builderにおける予測分析の使用

ストラドプロシージャの呼び出し方

FileMaker ODBC and JDBC Guide

FileMaker Server Getting Started Guide

Oracle Change Management Pack, Oracle Diagnostics Pack, Oracle Tuning Packインストレーション・ガイド リリース2.2

IBM Software Group DB2 Information Management Software DB2 V8 XML SQL/XML 2 XML XML UDF XMLExtender XML XML XMLCollection, XMLColumn XML UDF Informati

はじめての帳票作成

Microsoft Word - 430_15_Developing_Stored_Procedure.doc

imt_817_tuning_11_1822.PDF

untitled

VB.NETコーディング標準

VB 資料 電脳梁山泊烏賊塾 音声認識 System.Speech の利用 System.Speech に依るディクテーション ( 音声を文字列化 ).NetFramework3.0 以上 (Visual Studio 2010 以降 ) では 標準で System.Speech が用意されて居るの

MVP for VB が語る C# 入門

FileMaker Server Getting Started Guide


JavaScript の使い方

BC4J...4 BC4J Association JSP BC4J JSP OC4J

プロセス間通信

untitled

_02-4.ppt

JAJP.qxd

Transcription:

GrapeCity -.NET with GrapeCity - FlexGrid Creation Date: Nov. 30, 2005 Last Update: Nov. 30, 2005 Version: 1.0

Document Control Internal Use Only Author Hiroshi Ota Change Logs Date Author Version Change Log Nov. 30, 2005 Hiroshi Ota Created. Reviewers Name Position Approvals <Approver 1> <Approver 2> Distribution Copy No. Name Location!?.NET Oracle GrapeCity (FlexGrid) 2

GrapeCity Microsoft Visual Studio.NET VB.NET Oracle Tips FlexGrid FlexGrid.NET Oracle Oracle Data Provider for.net ODP.NET!?.NET Oracle.NET Oracle GrapeCity 1. ActiveReports 2. InputMan 3. SPREAD 4. FlexGrid GrapeCity FlexGrid 3 1. FlexGrid 2. 3. FlexGrid ODP.NET GrapeCity OS Microsoft Windows 2000 Professional + SP4 RDBMS Oracle Database 10g Release 2 Standard Edition for Windows!?.NET Oracle GrapeCity (FlexGrid) 3

OS Microsoft Windows 2000 Professional + SP4 Microsoft Visual Studio.NET 2003 GrapeCity FlexGrid for.net 2.0J!?.NET Oracle GrapeCity (FlexGrid) 4

FlexGrid FlexGrid Excel 100.NET Framework ADO.NET ADO.NET ODP.NET FlexGrid URL.NET http://www.grapecity.com/japan/support/database/dotnet_productlist.htm FlexGrid 2006 1 FlexGrid for.net 2.0J 2006 7 FlexGrid 2006 2 24 FlexGrid for.net 3.0J!?.NET Oracle GrapeCity (FlexGrid) 5

http://otndnld.oracle.co.jp/easy/dotnet/flex_grid/sample.zip sample.zip CONFIG WindowsForm CONFIG CONFIG first_copy_the_photos_to_c_temp C: Temp WindowsForm VB.NET Windows Oracle Oracle sample.zip CONFIG gen_flexgrid.sql SQL*PLUS C: >sqlplus /nolog SQL*Plus: Release 10.2.0.1.0 - Production on 2 2 10:43:52 2006 Copyright (c) 1982, 2005, Oracle. All rights reserved. SQL> @gen_flexgrid system :!?.NET Oracle GrapeCity (FlexGrid) 6

1 1 SQL> gen_flexgrid.sql system Oracle FlexGrid FlexGrid sample.zip WindowsForm VS.NET FlexGridTest.sln VS.NET FlexGridTest.sln 1 FlexGridTest Windows Oracle App.Config!?.NET Oracle GrapeCity (FlexGrid) 7

XML <appsettings> connectionstring data source tnsnames.ora <add key="connectionstring" value="user id=flexgrid;password=oracle;data source=orcl10gr2" /> tnsnames.ora Oracle Database Net Services 10g 2 10.2 http://otndnld.oracle.co.jp/document/products/oracle10g/102/doc_ cd/index.htm VS.NET (D) (S)!?.NET Oracle GrapeCity (FlexGrid) 8

FlexGrid Windows FlexGrid ODP.NET FlexGrid ODP.NET FlexGrid ODP.NET Oracle DataSet FlexGrid Oracle DataSet DataSet FlexGrid FlexGrid Windows ASP.NET WEB FlexGrid DataSet Oracle DataSet 1. Oracle Oracle Oracle Oracle Oracle Developer Tools for Visual Studio.NET ODT ODT Oracle Oracle Oracle (A)!?.NET Oracle GrapeCity (FlexGrid) 9

Oracle < > flexgrid oracle tnsnames.ora (T)!?.NET Oracle GrapeCity (FlexGrid) 10

OK Oracle 2. DataAdapter Oracle DataAdapter DataSet DataAdapter ODT!?.NET Oracle GrapeCity (FlexGrid) 11

(Y) DataAdapter DataAdapter Connection Oracle DataAdapter SelectCommand CommandText SQL 3. DataSet DataAdapter DataSet DataAdapter DataSet!?.NET Oracle GrapeCity (FlexGrid) 12

DataSet ODT DataSet XML xsd ODT DataAdapter DataSet OracleDataAdapter1.Fill( 11. ) DataAdapter Fill DataSet DataSet ODT DataSet FlexGrid!?.NET Oracle GrapeCity (FlexGrid) 13

DataSet FlexGrid FlexGrid Windows FlexGrid DataMember DataSource 11 VS.NET (D) (S)!?.NET Oracle GrapeCity (FlexGrid) 14

DataSet FlexGrid BLOB BLOB FlexGrid BLOB FlexGrid BLOB FlexGrid Windows BLOB Windows Windows BLOB FlexGrid ' OwnerDrawCell Private Sub fg_ownerdrawcell(byval sender As Object, _ ByVal e As C1.Win.C1FlexGrid.OwnerDrawCellEventArgs) Handles fg.ownerdrawcell If e.row >= fg.rows.fixed Then ' "Photo" If fg.cols(e.col).name = " " Then ' ID Dim userid As Integer = fg.getdata(e.row, 1) ' e.image = LoadImage(userID)!?.NET Oracle GrapeCity (FlexGrid) 15

' Text Null If Not (e.image Is Nothing) Then e.text = Nothing End If End If End If End Sub Function LoadImage(ByVal userid As Integer) As Image If IsDBNull(userID) Then Return Nothing End If ' Dim img As Image = Nothing Dim cmdimg As New OracleCommand Dim rdrimg As OracleDataReader ' Connection Open If Not blobtbloracleconnection1.state = ConnectionState.Open Then blobtbloracleconnection1.open() End If cmdimg.connection = blobtbloracleconnection1 cmdimg.commandtext = "select from BLOB_TBL where =:userid" cmdimg.parameters.add(new OracleParameter("userid", userid)) rdrimg = cmdimg.executereader If rdrimg.read Then Dim blob As OracleBlob = rdrimg.getoracleblob(0) Dim stmpic As New MemoryStream(blob.Value) 'MemoryStream 0 Nothing If Not stmpic.length > 0 Then rdrimg.close() blobtbloracleconnection1.close()!?.net Oracle GrapeCity (FlexGrid) 16

Return Nothing End If img = Image.FromStream(stmPic) End If rdrimg.close() blobtbloracleconnection1.close() Return img End Function.1 frmblob.vb - Sub LoadImage FlexGrid OwnerDrawCell BLOB REF CURSOR PL/SQL PL/SQL FlexGrid PL/SQL PL/SQL PL/SQL SQL gen_flexgrid.sql!?.net Oracle GrapeCity (FlexGrid) 17

CREATE OR REPLACE PACKAGE FLEXGRID.REFCUR_TEST AS TYPE UserCurTyp IS REF CURSOR RETURN %ROWTYPE; CURSOR c1 IS SELECT * FROM ; TYPE CompCurTyp IS REF CURSOR RETURN c1%rowtype; PROCEDURE open_cv(user_cv IN OUT UserCurTyp, comp_cv IN OUT CompCurTyp); END; / CREATE OR REPLACE PACKAGE BODY FLEXGRID.REFCUR_TEST AS PROCEDURE open_cv(user_cv IN OUT UserCurTyp, comp_cv IN OUT CompCurTyp) IS BEGIN OPEN user_cv FOR SELECT * FROM ; OPEN comp_cv FOR SELECT * FROM ; END open_cv; END; / FlexGrid!?.NET Oracle GrapeCity (FlexGrid) 18

FlexGrid Private Sub Form1_Load(ByVal sender As System.Object, _ ByVal e As System.EventArgs) Handles MyBase.Load Cnn.ConnectionString = ConfigurationSettings.AppSettings("connectionString") Cnn.Open() ' cmd = New OracleCommand("REFCUR_TEST.open_cv", Cnn) cmd.commandtype = CommandType.StoredProcedure 'REF CURSOR cmd.parameters.add("emp_cv", OracleDbType.RefCursor, ParameterDirection.Output) cmd.parameters.add("dept_cv", OracleDbType.RefCursor, ParameterDirection.Output) 'DataSet da = New OracleDataAdapter(cmd) da.fill(dslist, "data") 'FlexGrid fg.datasource = dslist.tables(0) Cnn.Close() Cnn.Dispose() End Sub Private Sub ButtonUser_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles ButtonUser.Click fg.datasource = dslist.tables(0) End Sub Private Sub ButtonComp_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles ButtonComp.Click!?.NET Oracle GrapeCity (FlexGrid) 19

fg.datasource = dslist.tables(1) End Sub.2 frmrefcursor.vb - Sub Form1_Load 1 Oracle FlexGrid!?.NET Oracle GrapeCity (FlexGrid) 20