假設您要從資料庫中查詢出一些字串,然後填寫到表單的下拉選單中。
例如一個示意的Java程式如下:
1<wbr style="LINE-HEIGHT: 1.3em">
2</wbr><wbr style="LINE-HEIGHT: 1.3em">
3</wbr><wbr style="LINE-HEIGHT: 1.3em">
4</wbr><wbr style="LINE-HEIGHT: 1.3em">
5</wbr><wbr style="LINE-HEIGHT: 1.3em">
6</wbr><wbr style="LINE-HEIGHT: 1.3em">
7</wbr><wbr style="LINE-HEIGHT: 1.3em">
8</wbr><wbr style="LINE-HEIGHT: 1.3em">
<wbr>package</wbr><wbr></wbr></wbr><wbr style="LINE-HEIGHT: 1.3em"> onlyfun.caterpillar;
<wbr>public</wbr><wbr></wbr></wbr><wbr style="LINE-HEIGHT: 1.3em">
<wbr>class</wbr><wbr></wbr></wbr><wbr style="LINE-HEIGHT: 1.3em"> Option {</wbr><wbr style="LINE-HEIGHT: 1.3em">
<wbr>public</wbr><wbr></wbr></wbr><wbr style="LINE-HEIGHT: 1.3em"> String[] getOptions() {</wbr><wbr style="LINE-HEIGHT: 1.3em">
// 實際上這些字串是從資料庫中查到的啦…</wbr><wbr style="LINE-HEIGHT: 1.3em">
<wbr>return</wbr><wbr></wbr></wbr><wbr style="LINE-HEIGHT: 1.3em">
<wbr>new</wbr><wbr></wbr></wbr><wbr style="LINE-HEIGHT: 1.3em"> String[] {</wbr><wbr style="LINE-HEIGHT: 1.3em">"良葛格"</wbr><wbr style="LINE-HEIGHT: 1.3em">, "毛美眉"</wbr><wbr style="LINE-HEIGHT: 1.3em">, "米小狗"</wbr><wbr style="LINE-HEIGHT: 1.3em">}</wbr><wbr style="LINE-HEIGHT: 1.3em">;
}</wbr><wbr style="LINE-HEIGHT: 1.3em">
}</wbr><wbr style="LINE-HEIGHT: 1.3em">
傳回的字串陣列,您要填寫到下拉選單中,當然,首先我們要在dwr.xml中開發這個物件…
1</wbr><wbr style="LINE-HEIGHT: 1.3em">
2</wbr><wbr style="LINE-HEIGHT: 1.3em">
3</wbr><wbr style="LINE-HEIGHT: 1.3em">
4</wbr><wbr style="LINE-HEIGHT: 1.3em">
5</wbr><wbr style="LINE-HEIGHT: 1.3em">
6</wbr><wbr style="LINE-HEIGHT: 1.3em">
7</wbr><wbr style="LINE-HEIGHT: 1.3em">
8</wbr><wbr style="LINE-HEIGHT: 1.3em">
9</wbr><wbr style="LINE-HEIGHT: 1.3em">
10</wbr><wbr style="LINE-HEIGHT: 1.3em">
<?xml version="1.0"</wbr><wbr style="LINE-HEIGHT: 1.3em"> encoding="UTF-8"</wbr><wbr style="LINE-HEIGHT: 1.3em">?>
<!DOCTYPE dwr PUBLIC "-//GetAhead Limited//DTD Direct Web Remoting 1.0//EN"</wbr><wbr style="LINE-HEIGHT: 1.3em"> "http://www.getahead.ltd.uk/dwr/dwr10.dtd"</wbr><wbr style="LINE-HEIGHT: 1.3em">>
<dwr>
<allow>
<create creator="new"</wbr><wbr style="LINE-HEIGHT: 1.3em"> javascript="OPT"</wbr><wbr style="LINE-HEIGHT: 1.3em">>
<param name="class"</wbr><wbr style="LINE-HEIGHT: 1.3em"> value="onlyfun.caterpillar.Option"</wbr><wbr style="LINE-HEIGHT: 1.3em">/>
</create>
</allow>
</dwr>
這是我們的網頁…
1</wbr><wbr style="LINE-HEIGHT: 1.3em">
2</wbr><wbr style="LINE-HEIGHT: 1.3em">
3</wbr><wbr style="LINE-HEIGHT: 1.3em">
4</wbr><wbr style="LINE-HEIGHT: 1.3em">
5</wbr><wbr style="LINE-HEIGHT: 1.3em">
6</wbr><wbr style="LINE-HEIGHT: 1.3em">
7</wbr><wbr style="LINE-HEIGHT: 1.3em">
8</wbr><wbr style="LINE-HEIGHT: 1.3em">
9</wbr><wbr style="LINE-HEIGHT: 1.3em">
10</wbr><wbr style="LINE-HEIGHT: 1.3em">
11</wbr><wbr style="LINE-HEIGHT: 1.3em">
12</wbr><wbr style="LINE-HEIGHT: 1.3em">
13</wbr><wbr style="LINE-HEIGHT: 1.3em">
14</wbr><wbr style="LINE-HEIGHT: 1.3em">
15</wbr><wbr style="LINE-HEIGHT: 1.3em">
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"</wbr><wbr style="LINE-HEIGHT: 1.3em">>
<html>
<head>
<meta http-equiv="Content-Type"</wbr><wbr style="LINE-HEIGHT: 1.3em"> content="text/html; charset=BIG5"</wbr><wbr style="LINE-HEIGHT: 1.3em">>
<script src="option.js"</wbr><wbr style="LINE-HEIGHT: 1.3em"> type="text/javascript"</wbr><wbr style="LINE-HEIGHT: 1.3em">></script>
<script src="dwr/interface/OPT.js"</wbr><wbr style="LINE-HEIGHT: 1.3em"> type="text/javascript"</wbr><wbr style="LINE-HEIGHT: 1.3em">></script>
<script src="dwr/engine.js"</wbr><wbr style="LINE-HEIGHT: 1.3em"> type="text/javascript"</wbr><wbr style="LINE-HEIGHT: 1.3em">></script>
<script src="dwr/util.js"</wbr><wbr style="LINE-HEIGHT: 1.3em"> type="text/javascript"</wbr><wbr style="LINE-HEIGHT: 1.3em">></script>
</head>
<body>
選項: <select id="opts"</wbr><wbr style="LINE-HEIGHT: 1.3em">></select>
</body>
</html>
傳回的字串陣列會填入opts這個select中,我們的option.js如下…
1</wbr><wbr style="LINE-HEIGHT: 1.3em">
2</wbr><wbr style="LINE-HEIGHT: 1.3em">
3</wbr><wbr style="LINE-HEIGHT: 1.3em">
4</wbr><wbr style="LINE-HEIGHT: 1.3em">
5</wbr><wbr style="LINE-HEIGHT: 1.3em">
6</wbr><wbr style="LINE-HEIGHT: 1.3em">
7</wbr><wbr style="LINE-HEIGHT: 1.3em">
8</wbr><wbr style="LINE-HEIGHT: 1.3em">
window.onload = function() {</wbr><wbr style="LINE-HEIGHT: 1.3em">
OPT.getOptions(populate);
}</wbr><wbr style="LINE-HEIGHT: 1.3em">;
function populate(list){</wbr><wbr style="LINE-HEIGHT: 1.3em">
DWRUtil.removeAllOptions("opts"</wbr><wbr style="LINE-HEIGHT: 1.3em">);
DWRUtil.addOptions("opts"</wbr><wbr style="LINE-HEIGHT: 1.3em">, list);
}</wbr><wbr style="LINE-HEIGHT: 1.3em">
夠簡單了…不需要解釋了…
看一下結果…
</wbr><wbr>
</wbr><wbr>
好啦!我知道有人在說了,這個程式有夠無聊…</wbr><wbr>
</wbr><wbr>
改一下!就是個不錯的範例了,例如連動方塊,唔!在Ajax in action中叫啥?Dynamic double combo?…
假設一個會去從資料庫中查詢資料的Java程式示意如下:
1</wbr><wbr style="LINE-HEIGHT: 1.3em">
2</wbr><wbr style="LINE-HEIGHT: 1.3em">
3</wbr><wbr style="LINE-HEIGHT: 1.3em">
4</wbr><wbr style="LINE-HEIGHT: 1.3em">
5</wbr><wbr style="LINE-HEIGHT: 1.3em">
6</wbr><wbr style="LINE-HEIGHT: 1.3em">
7</wbr><wbr style="LINE-HEIGHT: 1.3em">
8</wbr><wbr style="LINE-HEIGHT: 1.3em">
9</wbr><wbr style="LINE-HEIGHT: 1.3em">
10</wbr><wbr style="LINE-HEIGHT: 1.3em">
11</wbr><wbr style="LINE-HEIGHT: 1.3em">
12</wbr><wbr style="LINE-HEIGHT: 1.3em">
13</wbr><wbr style="LINE-HEIGHT: 1.3em">
14</wbr><wbr style="LINE-HEIGHT: 1.3em">
15</wbr><wbr style="LINE-HEIGHT: 1.3em">
16</wbr><wbr style="LINE-HEIGHT: 1.3em">
17</wbr><wbr style="LINE-HEIGHT: 1.3em">
18</wbr><wbr style="LINE-HEIGHT: 1.3em">
19</wbr><wbr style="LINE-HEIGHT: 1.3em">
20</wbr><wbr style="LINE-HEIGHT: 1.3em">
21</wbr><wbr style="LINE-HEIGHT: 1.3em">
22</wbr><wbr style="LINE-HEIGHT: 1.3em">
23</wbr><wbr style="LINE-HEIGHT: 1.3em">
24</wbr><wbr style="LINE-HEIGHT: 1.3em">
25</wbr><wbr style="LINE-HEIGHT: 1.3em">
26</wbr><wbr style="LINE-HEIGHT: 1.3em">
27</wbr><wbr style="LINE-HEIGHT: 1.3em">
28</wbr><wbr style="LINE-HEIGHT: 1.3em">
29</wbr><wbr style="LINE-HEIGHT: 1.3em">
30</wbr><wbr style="LINE-HEIGHT: 1.3em">
<wbr>package</wbr><wbr></wbr></wbr><wbr style="LINE-HEIGHT: 1.3em"> onlyfun.caterpillar;
<wbr>import</wbr><wbr></wbr></wbr><wbr style="LINE-HEIGHT: 1.3em"> java.util.Map;
<wbr>import</wbr><wbr></wbr></wbr><wbr style="LINE-HEIGHT: 1.3em"> java.util.TreeMap;
<wbr>public</wbr><wbr></wbr></wbr><wbr style="LINE-HEIGHT: 1.3em">
<wbr>class</wbr><wbr></wbr></wbr><wbr style="LINE-HEIGHT: 1.3em"> Bike {</wbr><wbr style="LINE-HEIGHT: 1.3em">
<wbr>private</wbr><wbr></wbr></wbr><wbr style="LINE-HEIGHT: 1.3em"> Map<String, String[]> bikes;
<wbr>public</wbr><wbr></wbr></wbr><wbr style="LINE-HEIGHT: 1.3em"> Bike() {</wbr><wbr style="LINE-HEIGHT: 1.3em">
bikes =
<wbr>new</wbr><wbr></wbr></wbr><wbr style="LINE-HEIGHT: 1.3em"> TreeMap<String, String[]>();
bikes.put("2000"</wbr><wbr style="LINE-HEIGHT: 1.3em">,
<wbr>new</wbr><wbr></wbr></wbr><wbr style="LINE-HEIGHT: 1.3em"> String[] {</wbr><wbr style="LINE-HEIGHT: 1.3em">"2000 T1"</wbr><wbr style="LINE-HEIGHT: 1.3em">, "2000 T2"</wbr><wbr style="LINE-HEIGHT: 1.3em">, "2000 T3"</wbr><wbr style="LINE-HEIGHT: 1.3em">}</wbr><wbr style="LINE-HEIGHT: 1.3em">);
bikes.put("2001"</wbr><wbr style="LINE-HEIGHT: 1.3em">,
<wbr>new</wbr><wbr></wbr></wbr><wbr style="LINE-HEIGHT: 1.3em"> String[] {</wbr><wbr style="LINE-HEIGHT: 1.3em">"2001 A1"</wbr><wbr style="LINE-HEIGHT: 1.3em">, "2001 A2"</wbr><wbr style="LINE-HEIGHT: 1.3em">}</wbr><wbr style="LINE-HEIGHT: 1.3em">);
bikes.put("2002"</wbr><wbr style="LINE-HEIGHT: 1.3em">,
<wbr>new</wbr><wbr></wbr></wbr><wbr style="LINE-HEIGHT: 1.3em"> String[] {</wbr><wbr style="LINE-HEIGHT: 1.3em">"2002 BW1"</wbr><wbr style="LINE-HEIGHT: 1.3em">, "2002 BW2"</wbr><wbr style="LINE-HEIGHT: 1.3em">, "2002 BW"</wbr><wbr style="LINE-HEIGHT: 1.3em">}</wbr><wbr style="LINE-HEIGHT: 1.3em">);
bikes.put("2003"</wbr><wbr style="LINE-HEIGHT: 1.3em">,
<wbr>new</wbr><wbr></wbr></wbr><wbr style="LINE-HEIGHT: 1.3em"> String[] {</wbr><wbr style="LINE-HEIGHT: 1.3em">"2003 S320"</wbr><wbr style="LINE-HEIGHT: 1.3em">}</wbr><wbr style="LINE-HEIGHT: 1.3em">);
bikes.put("2004"</wbr><wbr style="LINE-HEIGHT: 1.3em">,
<wbr>new</wbr><wbr></wbr></wbr><wbr style="LINE-HEIGHT: 1.3em"> String[] {</wbr><wbr style="LINE-HEIGHT: 1.3em">"2004 TA1"</wbr><wbr style="LINE-HEIGHT: 1.3em">, "2004 TA2"</wbr><wbr style="LINE-HEIGHT: 1.3em">, "2004 TA3"</wbr><wbr style="LINE-HEIGHT: 1.3em">}</wbr><wbr style="LINE-HEIGHT: 1.3em">);
}</wbr><wbr style="LINE-HEIGHT: 1.3em">
<wbr>public</wbr><wbr></wbr></wbr><wbr style="LINE-HEIGHT: 1.3em"> String[] getYears() {</wbr><wbr style="LINE-HEIGHT: 1.3em">
String[] keys =
<wbr>new</wbr><wbr></wbr></wbr><wbr style="LINE-HEIGHT: 1.3em"> String[bikes.size()];
<wbr>int</wbr><wbr></wbr></wbr><wbr style="LINE-HEIGHT: 1.3em"> i = 0;
<wbr>for</wbr><wbr></wbr></wbr><wbr style="LINE-HEIGHT: 1.3em">(String key : bikes.keySet()) {</wbr><wbr style="LINE-HEIGHT: 1.3em">
keys[i++] = key;
}</wbr><wbr style="LINE-HEIGHT: 1.3em">
<wbr>return</wbr><wbr></wbr></wbr><wbr style="LINE-HEIGHT: 1.3em"> keys;
}</wbr><wbr style="LINE-HEIGHT: 1.3em">
<wbr>public</wbr><wbr></wbr></wbr><wbr style="LINE-HEIGHT: 1.3em"> String[] getBikes(String year) {</wbr><wbr style="LINE-HEIGHT: 1.3em">
<wbr>return</wbr><wbr></wbr></wbr><wbr style="LINE-HEIGHT: 1.3em"> bikes.get(year);
}</wbr><wbr style="LINE-HEIGHT: 1.3em">
}</wbr><wbr style="LINE-HEIGHT: 1.3em">
getYears()跟getBkies()分別表示產品的年份跟型號,這邊用Map模擬,實際上資料是來自資料庫的查詢。
一樣的,在dwr.xml中設定:
1</wbr><wbr style="LINE-HEIGHT: 1.3em">
2</wbr><wbr style="LINE-HEIGHT: 1.3em">
3</wbr><wbr style="LINE-HEIGHT: 1.3em">
4</wbr><wbr style="LINE-HEIGHT: 1.3em">
5</wbr><wbr style="LINE-HEIGHT: 1.3em">
6</wbr><wbr style="LINE-HEIGHT: 1.3em">
7</wbr><wbr style="LINE-HEIGHT: 1.3em">
8</wbr><wbr style="LINE-HEIGHT: 1.3em">
9</wbr><wbr style="LINE-HEIGHT: 1.3em">
10</wbr><wbr style="LINE-HEIGHT: 1.3em">
<?xml version="1.0"</wbr><wbr style="LINE-HEIGHT: 1.3em"> encoding="UTF-8"</wbr><wbr style="LINE-HEIGHT: 1.3em">?>
<!DOCTYPE dwr PUBLIC "-//GetAhead Limited//DTD Direct Web Remoting 1.0//EN"</wbr><wbr style="LINE-HEIGHT: 1.3em"> "http://www.getahead.ltd.uk/dwr/dwr10.dtd"</wbr><wbr style="LINE-HEIGHT: 1.3em">>
<dwr>
<allow>
<create creator="new"</wbr><wbr style="LINE-HEIGHT: 1.3em"> javascript="Bike"</wbr><wbr style="LINE-HEIGHT: 1.3em"> scope="application"</wbr><wbr style="LINE-HEIGHT: 1.3em">>
<param name="class"</wbr><wbr style="LINE-HEIGHT: 1.3em"> value="onlyfun.caterpillar.Bike"</wbr><wbr style="LINE-HEIGHT: 1.3em">/>
</create>
</allow>
</dwr>
我們會有個腳踏車年份與型號查詢頁面:
1</wbr><wbr style="LINE-HEIGHT: 1.3em">
2</wbr><wbr style="LINE-HEIGHT: 1.3em">
3</wbr><wbr style="LINE-HEIGHT: 1.3em">
4</wbr><wbr style="LINE-HEIGHT: 1.3em">
5</wbr><wbr style="LINE-HEIGHT: 1.3em">
6</wbr><wbr style="LINE-HEIGHT: 1.3em">
7</wbr><wbr style="LINE-HEIGHT: 1.3em">
8</wbr><wbr style="LINE-HEIGHT: 1.3em">
9</wbr><wbr style="LINE-HEIGHT: 1.3em">
10</wbr><wbr style="LINE-HEIGHT: 1.3em">
11</wbr><wbr style="LINE-HEIGHT: 1.3em">
12</wbr><wbr style="LINE-HEIGHT: 1.3em">
13</wbr><wbr style="LINE-HEIGHT: 1.3em">
14</wbr><wbr style="LINE-HEIGHT: 1.3em">
15</wbr><wbr style="LINE-HEIGHT: 1.3em">
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"</wbr><wbr style="LINE-HEIGHT: 1.3em">>
<html>
<head>
<meta http-equiv="Content-Type"</wbr><wbr style="LINE-HEIGHT: 1.3em"> content="text/html; charset=BIG5"</wbr><wbr style="LINE-HEIGHT: 1.3em">>
<title>Insert title here</title>
<script type='text/javascript'</wbr><wbr style="LINE-HEIGHT: 1.3em"> src='dwr/interface/Bike.js'</wbr><wbr style="LINE-HEIGHT: 1.3em">></script>
<script type='text/javascript'</wbr><wbr style="LINE-HEIGHT: 1.3em"> src='dwr/engine.js'</wbr><wbr style="LINE-HEIGHT: 1.3em">></script>
<script type='text/javascript'</wbr><wbr style="LINE-HEIGHT: 1.3em"> src='dwr/util.js'</wbr><wbr style="LINE-HEIGHT: 1.3em">></script>
<script type='text/javascript'</wbr><wbr style="LINE-HEIGHT: 1.3em"> src='bike.js'</wbr><wbr style="LINE-HEIGHT: 1.3em">></script>
</head>
<body onload="refreshYearList();"</wbr><wbr style="LINE-HEIGHT: 1.3em">>
年份:<select id="years"</wbr><wbr style="LINE-HEIGHT: 1.3em"> onchange="refreshBikeList();"</wbr><wbr style="LINE-HEIGHT: 1.3em">></select><br/><br/>
型號:<select id="bikes"</wbr><wbr style="LINE-HEIGHT: 1.3em">></select><br/>
</body>
</html>
注意,在選完第一個年份後,會觸發onchange事件,接著第二個下拉選單會自動填上對應年份的型號,而不是按鈕按下,再去取得第二個下拉選單,然後refresh...blah...blah...
bike.js如下…
1</wbr><wbr style="LINE-HEIGHT: 1.3em">
2</wbr><wbr style="LINE-HEIGHT: 1.3em">
3</wbr><wbr style="LINE-HEIGHT: 1.3em">
4</wbr><wbr style="LINE-HEIGHT: 1.3em">
5</wbr><wbr style="LINE-HEIGHT: 1.3em">
6</wbr><wbr style="LINE-HEIGHT: 1.3em">
7</wbr><wbr style="LINE-HEIGHT: 1.3em">
8</wbr><wbr style="LINE-HEIGHT: 1.3em">
9</wbr><wbr style="LINE-HEIGHT: 1.3em">
10</wbr><wbr style="LINE-HEIGHT: 1.3em">
11</wbr><wbr style="LINE-HEIGHT: 1.3em">
12</wbr><wbr style="LINE-HEIGHT: 1.3em">
13</wbr><wbr style="LINE-HEIGHT: 1.3em">
14</wbr><wbr style="LINE-HEIGHT: 1.3em">
15</wbr><wbr style="LINE-HEIGHT: 1.3em">
16</wbr><wbr style="LINE-HEIGHT: 1.3em">
17</wbr><wbr style="LINE-HEIGHT: 1.3em">
18</wbr><wbr style="LINE-HEIGHT: 1.3em">
19</wbr><wbr style="LINE-HEIGHT: 1.3em">
function refreshYearList() {</wbr><wbr style="LINE-HEIGHT: 1.3em">
Bike.getYears(populateYearList);
}</wbr><wbr style="LINE-HEIGHT: 1.3em">
function populateYearList(list){</wbr><wbr style="LINE-HEIGHT: 1.3em">
DWRUtil.removeAllOptions("years"</wbr><wbr style="LINE-HEIGHT: 1.3em">);
DWRUtil.addOptions("years"</wbr><wbr style="LINE-HEIGHT: 1.3em">, list);
refreshBikeList();
}</wbr><wbr style="LINE-HEIGHT: 1.3em">
function refreshBikeList() {</wbr><wbr style="LINE-HEIGHT: 1.3em">
var year = $("years"</wbr><wbr style="LINE-HEIGHT: 1.3em">).value;
Bike.getBikes(year, populateBikeList);
}</wbr><wbr style="LINE-HEIGHT: 1.3em">
function populateBikeList(list){</wbr><wbr style="LINE-HEIGHT: 1.3em">
DWRUtil.removeAllOptions("bikes"</wbr><wbr style="LINE-HEIGHT: 1.3em">);
DWRUtil.addOptions("bikes"</wbr><wbr style="LINE-HEIGHT: 1.3em">, list);
}</wbr><wbr style="LINE-HEIGHT: 1.3em">
一樣很簡單…
看個無聊的畫面…XD
</wbr><wbr>
</wbr><wbr>
分享到:
相关推荐
《PB-DW2XLS-V5.0:PowerBuilder数据窗口到Excel的高效转换工具》 在信息技术领域,数据处理和报表生成是至关重要的环节,尤其是在企业级应用中。PowerBuilder是一款老牌且强大的第四代编程语言,常用于开发数据库...
【DW2EXCEL源码】是一个编程相关的主题,主要涉及如何将数据窗口(Data Window,简称DW)的数据转换成Excel格式。在IT行业中,DW通常指的是PowerBuilder中的一个组件,用于展示和操作数据库中的数据。而Excel则是...
标题中的“dw2xls.pbd”和“dw2xls.pbl”是两个与数据库和数据转换相关的文件。在深入解释这两个文件之前,我们先要理解它们所处的上下文,即可能与Progress 4GL编程语言和OpenEdge开发环境有关。 1. **Progress 4...
标题中的“dw2xls(pb12.5版本)”指的是一个基于PowerBuilder 12.5开发的工具,名为“dw2xls”。这个工具主要用于将DataWindow控件(DW)中的数据转换成Excel(XLS)格式。DataWindow是PowerBuilder中的核心组件,...
PB12.5环境下使用的dw2xls工具是针对PowerBuilder(PB)开发环境中数据窗口(DataWindow)转换为Excel文件的一个解决方案。在早期版本中,dw2xls可能无法与PB12.5兼容,但经过优化和更新,该工具现在能够顺利地在这...
在标题提到的“datawindow导出excel组件dw2xls”,这是一个专门针对PB DataWindow的工具,用于将 DataWindow 中的数据原样导出到 Excel 文件中。 “dw2xls”组件解决了在不安装 Microsoft Excel 的情况下,快速高效...
《黄国酬 dw2xls 最新版》是一款专为PowerBuilder(PB)开发的报表转换工具,主要用于将DataWindow(DW)对象的数据导出为Excel(XLS)格式。这款工具的强大之处在于它能够帮助开发者方便地处理PB应用程序中的数据...
【标题】"dw2xls源码,pb12.0版本"涉及的主要知识点是数据窗口控件(DataWindow)与Excel文件之间的转换技术,以及如何在PowerBuilder 12.0环境中实现这一功能。 【描述】中提到的“dw2xls源码”是指一个专门用于将...
1、采用老外最新的动态库pb2xls.dll Version 5.1.10 Release 03.08.2017 ...|--dw2xls.pbl |--dw2xls.pbt |--dw2xls.pbw |--dw2xlsdemo_pb903_8836.pbl |--license.txt |--pb2xls.dll |--readme.txt
PB9 DW2XLS是一款专为PowerBuilder 9(简称PB9)用户设计的插件工具,用于将数据窗口(DataWindow)中的数据所见即所得地导出为Excel格式。这款工具由国外的Desta公司开发,Desta公司在数据转换和导出领域有着丰富的...
dw2xls已升级至pb11.5 dw2xls已经开发了好几年了,最近也把这个程序开源了,由于自已一直以来都是用pb9开发程序,还没有升级到更高的版本,所以一直都没去 升级这个程序.这两年经常会收到一些朋友的来信,询问如何把dw2...
这是国外Desta公司也就是DW2XLS的老祖宗开发的最新版的DW2XLS,带源码和调用说明文档.从国外网站里搜了很久才找到的,与之前老版本最大的改进就是EXCEL操作部分全部由C写的DLL来负责,效率不是一个档次的.仍然是所见既...
《Dw2xls3.0函数详解与应用实例》 在IT行业中,数据转换和处理是常见的需求之一,其中DW2XLS3.0是一款专用于将数据窗口(DataWindow)对象转换为Excel电子表格的强大工具。这款工具以其高效、灵活的特性,在企业级...
标题中的“dw2excel for pb”指的是一个专为PowerBuilder(PB)开发的工具或库,用于将数据窗口(Data Window)对象中的数据导出到Excel格式。在PowerBuilder中,数据窗口是一种强大的数据处理和展示组件,它可以...
《PB9.0环境下利用dw2xls工具进行数据窗口到Excel转换详解》 在PowerBuilder (PB) 9.0的开发环境中,我们经常会遇到需要将数据窗口(Data Window)中的数据导出为Excel格式的需求。为了满足这种需求,开发者可以...
《黄国酬dw2xls源程序详解》 在IT领域,数据处理与转换是不可或缺的一环,而"黄国酬dw2xls源程序"则是一个专门用于数据转换的工具,尤其针对PB(PowerBuilder)环境下的数据窗口(DataWindow)到Excel的转换。此源...
1、采用老外最新的动态库pb2xls.dll Version 5.1.10 Release 03.08.2017 2、适用于pb9.0 3、使用的dll属于demo版(仅供学习研究,生产环境请购买正式版),使用OLE,去掉demo信息。 ...|--dw2xls.pbw
综上所述,这个压缩包提供了一个完整的解决方案,使用户能够在Win7 64位系统下,利用PowerBuilder 12.6的DW2PDF功能,通过GhostScript 8.71将DataWindow对象转换为PDF文件,同时提供了一个可能的PostScript库更新,...
PB工具DW2XLS是一款专为PowerBuilder用户设计的实用工具,主要用于将数据窗口(Data Window)对象的数据转换成Excel(XLS)格式。在PowerBuilder中,数据窗口是一种强大的数据展示和操作组件,它可以连接到各种...
【标题】"dw2xls源码,pb9格式,供下载"所指的是一份用于将DataWindow(DW)对象的数据转换成Excel(XLS)文件的源代码,该源代码是基于PowerBuilder 9(PB9)开发的。DataWindow是PowerBuilder中的一个核心组件,...