codesoft在delphi,C#中的例子
LabelView Sample:private void Form1_Load(object sender, System.EventArgs e) { LabelApp=new LabelApplicationClass(); doc=(LabelView.LabelDocument)LabelApp.ActiveDocument(); doc.Open("c:workloglabel.lbl",true); } private void PrintLabel(string result) { try { LabelView.LabelField snLabel=(LabelView.LabelField)((LabelView.LabelFields)doc.LabelFields).Item("SN"); snLabel.Value=result; doc.LabelSetup();
怎么用java调用用codesoft设计的条形码文档
用ireport设定的jasper有相应的代码来调用,如 JasperPrint print = JasperFillManager.fillReport()。但用ireport制作条形码不够精细。但用codesoft来设计的时候,我们怎么去调用生成的LAB文档,并打印出来。希望大虾指点一下。经过好多天的努力自己终于将这个问题解决了。现在代码共享如下,仅供参考因为本人还不精通。package com.prodPrint;import java.io.File;import java.util.HashMap;import org.eclipse.swt.SWT;import org.eclipse.swt.ole.win32.OleAutomation;import org.eclipse.swt.ole.win32.OleControlSite;import org.
java codesoft(http://space.itpub.net/1700919/viewspace-364452)
(http://www.label-soft.cn/Soft/Drivers/200808/154.html)public class ActiveXPrinter extends Composite{private static Variant documents ; private static ActiveXPrinter printer;private static Display display;private static Shell shell; // Microsoft Internet Explorer ProgID: Shell.Explorer.2// Codesoft ProgID : Lppx2.Applicationprivate static String progId = "Lppx2.Application";private static OleFrame. myFrame;private static OleControlSite controlSite;private static OleAutomation automatio
Struts2的properties配置文件详解
### 指定加载struts2配置文件治理器,默认为org.apache.struts2.config.DefaultConfiguration### 开发者可以自定义配置文件治理器,该类要实现Configuration接口,可以自动加载struts2配置文件。# struts.configuration=org.apache.struts2.config.DefaultConfiguration### 设置默认的locale和字符编码# struts.locale=en_USstruts.i18n.encoding=UTF-8### 指定struts的工厂类# struts.objectFactory = spring### 指定spring框架的装配模式### 装配方式有: name, type, auto, and constructor struts.objectFactory.spring.autoWire =
Spring,hibernate,struts的面试笔试题
Hibernate工作原理及为什么要用?原理:1.读取并解析配置文件2.读取并解析映射信息,创建SessionFactory3.打开Sesssion4.创建事务Transation5.持久化操作6.提交事务7.关闭Session8.关闭SesstionFactory为什么要用:1. 对JDBC访问数据库的代码做了封装,大大简化了数据访问层繁琐的重复性代码。2. Hibernate是一个基于JDBC的主流持久化框架,是一个优秀的ORM实现。他很大程度的简化DAO层的编码工作3. hibernate使用Java反射机制,而不是字节码增强程序来实现透明性。4. hibernate的性能非常好,因为它是个轻量级框架。映射的灵活性很出色。
条件查询JSP
哥哥姐姐们我的查询需要根据开始时间和结束时间来查询,我不会写啊,不知道咋办了 jsp <table width="400" height="150"> <tr> <td>开始日期 </td> <td> <input type="text" style="width: 70px" onfocus="HS_setDate(this)"> </td> </tr> <tr> <td>结束日期 </td> <td> <input type="text" style="width: 70px" onfocus
struts2标签总结
转载觉得不错 Struts2标签使用 (1):<s:textfield> ---- 文本输入框 使用:<s:textfield name=”实体Bean。属性”></s:textfield> (2):<s:textarea> ----- 文本域输入框 使用:<s:textarea name=”实体Bean。属性”></s:textarea> (3):<s:password> ----- 密码输入框 使用:<s:password name=”实体Bean。属性”></s:password> 前三个基本都是一样的。如果是要显示值的话可以这样:value = “实体Bean。Get***()”。 (4):<s:radio list=””>
关键字: 读取表单中最简单的数据
2008-09-22 从表单中读取提交数据 最简单的例子!!! demo01.html 内容如下 <form action="demo01.jsp" method="post"> 输入内容:<input type="text" name="content"> <input type="submit" value="提交"> </form> demo01.jsp <%@ page contentType="text/html;charset=gbk"%> <h1>输入内容为:<%=request.getParameter("content")%></h1> [@more@]值得学习
JBoss JBPM 实践系列(一)--- 安装配置(Tomcat 6.0 + MySQL 5.1)
jBPM,全称是Java Business Process Management,是一种基于J2EE的轻量级工作流管理系统。jBPM是公开源代码项目,遵循Apache License。jBPM在2004年10月18日,发布了2.0版本,并在同一天加入了JBoss,成为了JBoss企业中间件平台的一个组成部分,它的名称也改成JBoss jBPM。 jBPM 有两大特色,使他成为市场的一大两点。其中最大的特色就是它的业务逻辑定义没有采用目前的一些规范,如WfMC´s XPDL, BPML, ebXML, BPEL4WS等,而是它自己定义的JBoss jBPM Process definition language (jPdl)。jPdl把一个业务逻辑流程看作是一个UML
DBCP library
commons-collectioncommons-dbcpcommon-pool[@more@]NO
常用的JavaScript代码
(1).在打开的子窗口刷新父窗口的代码里如何写? window.opener.location.reload() (2).如何设定打开页面的大小 <body onload="top.resizeTo(300,200);"> 打开页面的位置<body onload="top.moveBy(300,200);"> (3).在页面中如何加入不是满铺的背景图片,拉动页面时背景图不动 <STYLE> body { background-image:url(/logo.gif); background-repeat:no-repeat;
阿加莎的JSP(2day)
今天的学习内容有: Spring插件的安装和使用 安装中文补丁 启动时清除eclipse内存 阅读SPRINGSIDE文档 代码事例分析 关于代码中中文乱码问题的处理 Spring插件的安装 1.考文件org.springside.ide_1.0.0.jar到D:J2EEeclipseplugins中 2.重新启动ECLIPSE 加参数-CLEAR 3.在新建OTHER中看有没有SPRING项目 Spring插件的使用 1.新建其他项目 2.选择SPRINGSIDE PROJECT 3.填入名字 4.选择组件 以后组件还可以再增加 5.这样一个项目就生成了:)嘿嘿 安装中文补丁 1. 解压NLpack1-eclipse-SDK-3.2
eXtremeComponents Button error
列名 列名 列名 列名 操作 111 111 111 111 删除 更新操作那一列可以是按钮跟超连接。我想用extremecomponents 做出个这样的效果, 但我怎么改也出不来。 <form name="htmlForm" action="${pageContext.request.contextPath}/test.do"> <a href="${pageContext.request.contextPath}/add.jsp" target="_blank">添加 </a> <ec:table items="result" action="${pageContext.request.contextPath}/index.do" imagePath="${pag
eXtremeComponents使用
转自:http://hi.baidu.com/myitlyj/blog/item/9d34314e8ec13a0cb3de059b.html 1. <ec:table items="presidents" var="pres" imagePath="${pageContext.request.contextPath}/images/*.gif" action="${pageContext.request.contextPath}/presidents.run" filterable="false" sortable="false" > ... </ec:table> <ec:table>里的属性还有: a. rowsDisplayed,rowsDisplayed也可以在extremecomponents.properties文件中设定 b.
struts2和jasper reports
在应用中,我们普遍是先通过iReport等工具生成编译后的*.jasper,然后交Struts2,Struts2的Action负责提供数据源及组装. 本例为了说明更清楚,我们用iReport只生成jasper_template.xml,即没经过编译的报表设计文件,那么Struts2有多了一项任务就是编译报表。好了我们进正题。 一、在struts2中使用jasperreports生成报表除了常规struts2工程需要的Jar文件之外还需要两个Jar文件 1、struts2-jasperreports-plugin-2.0.11.jar(在struts2发布包的lib目录下可以找到)(必须) 2、jasperreports-2.0.2.jar(在jasperreports的发布包中,
eXtremeComponents (http://code.google.com/p/jmesa/)
http://www.blogjava.net/lucky/articles/33380.html#setup-requirements[@more@]http://hi.baidu.com/236633818/blog/item/c5192b2a5be9933f5243c162.html
[转]strust20标签实践总结
Normal 0 false false false MicrosoftInternetExplorer4 /* Style Definitions */ table.MsoNormalTable {mso-style-name:"Table Normal"; mso-tstyle-rowband-size:0; mso-tstyle-colband-size:0; mso-style-noshow:yes; mso-style-parent:""; mso-padding-alt:0in 5.4pt 0in 5.4pt; mso-para-margin:0in; mso-para-margin-bottom:.0001pt; mso-pagination:widow-orphan; font-size:10.0pt; font-family:"Times New
从list到struts和spring
package com.sterning.commons;import java.sql.Connection;import java.sql.DriverManager;import java.sql.PreparedStatement;import java.sql.ResultSet;import java.sql.SQLException;import java.util.ArrayList;import java.util.List;import com.sterning.books.model.Student;public class PageDAO { private Connection conn ; private PreparedStatement pstmt ; private ResultSet rs ; private static final String DRIVER = "com.mysql.jdbc.Driver" ; private static final String URL = &qu
mysql与jsp乱码解决方法
在数据库连接时添加:Connection Conn=DriverManager.getConnection("jdbc:mysql://localhost /test?useUnicode=true&characterEncoding=gb2312(或utf-8)","root",""); 将mysql中的filed charset 属性设置为gbk. 添加类SetEncodingFilter import javax.servlet.Filter; import javax.servlet.FilterConfig; import javax.servlet.ServletException; import javax.servlet.ServletRequest; import javax.servlet.ServletResponse; import javax.servlet.FilterChain; import java.io.IOExc
struts2 与spring 相结合做出的登陆实例
原代码如下: LoginService.java package org.test.service; public interface LoginService { public boolean isLogin(String username,String password); } LoginServiceImpl .java package org.test.service.impl; import org.test.service.LoginService; public class LoginServiceImpl implements LoginService { public boolean isLogin(String username, String password) { //判断用户所以输入的数据是否为gao,qin,如果是则登陆成功,否则失败 // TODO Auto-generated method stub if(username.eq