不废话,直接到主题,小龙发现数据库不能启动,现状就是,在使用前面的两篇文章制作的精简版的时候,出现问题是:当程序在中文路径下运行,MySQL运行不起来。 经过检查,是程序中写INI文件的时候,编码方式使用的是默认的编码方式,根据操作系统而言,一般都是UTF8,从而使得BaseDir和DataDir的文本为乱码。MySQLD不能正确启动。 这个问题的解决方式很简单,在上一篇文章的代码中,修改如下代码 ShowMessage("重置数据库配置信息...");           &nbs... [更多...]

精简版MySQL制作(源代码篇)

24 二月 2010 In: SQLReport, DotNet, 软件行业
因为涉及到一些因素,而且整个包也太大了,我就不贴出所有的代码,只贴出部分代码。我使用了一个DLL来包容整个MySQL的包。这个DLL的功能如下: 能够自动安装MySQL,包括解压MySQL到本地目录 自动配置My.INI 自动注册Windows系统服务 系统服务名可以自定义 能够自动启动服务 能够自动停止服务 能够自动启动进程,非系统服务模式启动,提供显示MySQLd的DOS窗口和隐藏这个窗口的选项 能够停止进程,无论是系统服务模式启动还是进程模式启动。 制作过程如下: 找到附加库ICSharpCode.SharpZipLib 和 mysql.data.dll,自己找,网上多得很 按照前面... [更多...]

兼容Java和DotNet的AES加密算法

14 十二月 2009 In: 软件行业, SQLReport, JAVA, DotNet
最近在做Java和DotNet之间的互通,本着简单的原则,我不使用HTTPS对通道进行加密,所以采用的是自己加密所有的数据的处理方式,即使在这种情况之下,安全性不能被保证,但是基础的数据安全是可以了,毕竟是行业应用软件,试图破解的渠道比较少,而且数据针对性太强,没有太大的意义。 我的设计是: 几乎所有在Web服务和客户端之间的交互数据都进行加密,数字和日期除外 加密之后都生成BASE64编码,所以几乎所有的参数都是字符串 客户端和服务器共享同样的密码生成机制,一般是时间戳加上固定密码的格式,客户端和服务器都使用这个密码进行加密和解密。 传递的对象,先经过序列化之后,加密成Byte数组... [更多...]

动态添加控件的备注

9 十二月 2009 In: DotNet, SQLReport, 软件行业
众所周知,要添加控件到WinForm的Control中,首先是目标控件必须是容器控件,例如Panel和GroupBox,然后新建控件,然后调用Control.Controls.Add/Insert/AddRange即可,这没有什么蹊跷和争论的地方,但是要实现细微的调整,则比较复杂一些。 我的目标是要实现动态添加参数的输入框到界面上,并且可以收集这些输入的值,具体的要求是: 每个输入控件(例如文本框、日期选择框、下拉列表等等)都要有一个说明的Label在前面,形成一个组。 每个组按照顺序依次的排列,组元素(Label和输入控件)需要对其,目前采用的是纵向单列排列,每组一行。 组内的输入控件可以... [更多...]
jSoapServer is a open source embedded Soap Server in java, the source code and lasted version could be got from http://jsoapserver.sourceforge.net. The newest version of it is 0.2.8. After downloaded, you may like to run the server to check what it done and how it looks, the start scripts are stored... [更多...]

开发的几点备注

22 十一月 2009 In: DotNet, JAVA, SQLReport, 似水年华
只是几点备注,整理到一起来,避免忘记了 Krypton中的Button当边框太小的时候,就会出现无法显示的错误,解决的办法就是设置Button的AutoSize属性为真,KryptonButtonAutoSize Issue Krypton的中文输入法存在问题,需要手工设置全角和半角,最好的办法是设置空间的IMEMode为一个支持半角的输入法,KryptonToolkit TextBox不能输入中文 Krypton的显示风格可以从代码中取得 m_colorSelected = KryptonManager.CurrentGlobalPalette.G... [更多...]
又是一个忙碌的周末,难怪有才在说要请我吃饭要看我有没有时间。周末二哥从马庙上来,说了一个消息,敖家中学的H1N1事件,喝酒的时候我说没看到,二哥说不可能,逐级上报,百多人都被隔离,这事没法隐瞒,我笑笑,回家我查了一下,没得问题,在教育局网站上能看到那条消息,今天已经换成了9月中旬的通报了,呵呵,这下子没得话说了,Google不出来了。 回到标题。 不得不说,ComponentFactory的Krypton组件的确是非常优秀的组件,关键是,免费啊。 在一个产品中,测试人员总说按钮不能显示文本,我一直都是使用加宽按钮来实现,但是昨天在王总的机器上测试的时候,出现无法显示的问题,直接傻眼,都不知道为... [更多...]
All source code is available at http://code.google.com/p/sqlreport/. As I mentioned, I failed to integrate SQLReport’s Java source code with C#  using Ja.Net.  So it embarrassed that I have to port all Java source code into C#, here is no good way to do it, I have to port the source code f... [更多...]
In the preceding article(http://www.loveayang.com.cn/post/2009/10/26/Embedded-Sqlitee28099s-Date-type-in-Java-and-DotNet.aspx) , I mentioned that the difference of Date Time in SQLite embedded version of DotNet and Java, I have not give out the solution, here is the solution for Java and DotNet. You... [更多...]
  All of the following content were digested from http://www.visifire.com/blog/2009/10/16/step-by-step-breakdown-of-visifire-rendering-logic/comment-page-1/#comment-3973 Introduction Since the release of Visifire, we have got a lot of positive response from users on the simplicity, looks, cus... [更多...]
I found two bugs in the standard version of bam.exe which provided by Ja.Net, the symptoms is: When merging any assemblies as “bam cvf a.dll *****”, if there is no folder information for the target assemble name (“a.dll”), the bam.exe will throw a null-pointer except... [更多...]
How to use IKVM to integrate Java to DotNet Using Ja.Net to integrate Java and DotNet(c#): Basic Using Ja.Net to integrate Java and DotNet(c#): Class and Type Using Ja.Net to integrate Java and DotNet(c#): More detailed basic issues Using Ja.Net to integrate Java and DotNet(c#): Encoding and Proper... [更多...]
How to use IKVM to integrate Java to DotNet Using Ja.Net to integrate Java and DotNet(c#): Basic Using Ja.Net to integrate Java and DotNet(c#): Class and Type Using Ja.Net to integrate Java and DotNet(c#): More detailed basic issues Using Ja.Net to integrate... [更多...]
How to use IKVM to integrate Java to DotNet Using Ja.Net to integrate Java and DotNet(c#): Basic Using Ja.Net to integrate Java and DotNet(c#): Class and Type Using Ja.Net to integrate Java and DotNet(c#): More detailed basic issues Using Ja.Net to integrate Java and DotNet(c#): Encoding and Pr... [更多...]
How to use IKVM to integrate Java to DotNet Using Ja.Net to integrate Java and DotNet(c#): Basic Using Ja.Net to integrate Java and DotNet(c#): Class and Type Using Ja.Net to integrate Java and DotNet(c#): More detailed basic issues Using Ja.Net to integrate Java and DotNet(c#): Encoding and Proper... [更多...]

SqlReport documentation: Users Model

16 九月 2009 In: JAVA, SQLReport, 软件行业
Users, who using the SQLReport engine to retrieve data from data sources and view the results, are necessary in the report system. The users information which class name is “ReportUserWrapper”, can be used in: Some reports are private report, only the users registered in the sys... [更多...]
How to use IKVM to integrate Java to DotNet Using Ja.Net to integrate Java and DotNet(c#): Basic Using Ja.Net to integrate Java and DotNet(c#): Class and Type Using Ja.Net to integrate Java and DotNet(c#): More detailed basic issues Using Ja.Net to integrate Java and DotNet(c#): Encoding and Proper... [更多...]
目前算得上有一份稳定的工作,而且比以前轻松了许多,所以业余时间大部分都是我自己的,我也在准备开始继续报表的开发,算起来已经搁浅了将近3个月了。在开发之前我想弄一份报表源代码授权,在选择GPL/LGPL和BSD之后,我还是看上了BSD。原因是: 对于代码的所属问题上,我一直比较含糊,如果要开源,那就开一个彻底,否则开源做什么? 对于代码的修改权限,我看的更淡,每个人都有自己的看法和建议,但是很多时候我可能不会去考虑某些人的想法,简单的说,代码,每个人都可以修改,但是我不保证修改的代码就会包含到下一个发布版本中。 对于支持,我觉得很累,很多的代码,只是我自己练手用的,所以我... [更多...]

报表工具:4.0发展计划

1 三月 2009 In: JAVA, SQLReport
经过一段时间的整理,我想我应该是对报表系统勇士版本进行一次完整的蓝图规划的时候了。 展现: 1、增加自定义行显示格式,对汇总行可以显示 XXX收入YY元 2、支持PDF导出 3、支持Word导出 4、支持分发 5、支持调度 6、基于字典和维度的授权模式支持,所谓的行集授权模式。(postponed) 7、支持使用脚本语言定义的函数 8、支持脚本语言的表达式分析。 脚本支持准备支持 Groovy、BeanShell、JRuby和JavaScript可以使用松散的注入方式。 9、支持数... [更多...]

关于用户和权限系统设计

24 二月 2009 In: 软件行业, DotNet, JAVA, SQLReport
我觉得主键还是使用Varchar,这样移植性比较好,不依赖数据库。另外呢,对于使用Hibernate的GUID生成(包括自增INT类型数据生成),不是很适合我们目前的应用,例如用户在界面上新增加了两个站点和一条连接这两个站点的光纤,我们需要保存三个对象,光纤需要知道两个站点的主键以便构造自己的实例,如果依赖Hibernate生成则需要先存储两个站点之后才能得到站点的主键,如果我们自己生成GUID则不会这么麻烦。另外自己生成INT类型的GUID,在多线程、并发的环境中算法是很复杂很复杂的,而Varchar则有现成的算法(聪哥哥在一年多前已经无耻的验证过没有问题了)所以我建议使用Varchar类... [更多...]

About Jeason Zhao

Jeason,蜀人,才高三斗,学富一箱。自比子建,放荡不拘行迹,豪语难晓天高;不敢自诩风流,任人笑我痴狂。不欲仕途,个性使然。所到之处,三言不尽,五言难足,鸡飞狗跳盖矣。谓蜀者,鼠也!

What's SqlReport

SQL Report is an open source web-based reporting system that integrates with your Java/J2EE application to produce compelling reports.
  >> Totally free and open source.
  >> Pure web-based user interface. All functions, including viewing reports and administrative, can be done in IE and FF. No extra applications to be needed.
  >> Easy to deploy, no TagLibs, only one servlet. Even you have choice to use pool JSP to access reports without configuring any sevlet.
  >> Having fun with built-in functions. You can create a complex report with a single SQL and set redering from a web-based GUI.