在vb.net和sql server数据库中使用crystal report进行报告 [英] make a report with crystal report in vb.net and sql server database

查看:70
本文介绍了在vb.net和sql server数据库中使用crystal report进行报告的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

亲爱的,亲爱的所有最好的程序员,



这是我的第一篇文章或者也许是一个问题,但希望尽管我是vb .net的初学者和新手你会喜欢帮助解决我的问题。



i当我使用sql server数据库在vb.net中使用水晶报表制作报表应用程序时遇到一些问题。我做一个简单的应用程序,包括一个按钮显示报告和一个水晶报告viwer。我把代码放到按钮show report:

  Imports  CrystalDecisions.CrystalReports.Engine 

公开 Form1

私有 Sub Button1_Click(发件人作为 对象,e As EventArgs)句柄 Button1.Click
Dim cryRpt As ReportDocument
cryRpt .Load( Data Source =(localdb)\Projects; Initial Catalog = crystaldb; Integrated Security = True
CrystalReportViewer1.ReportSource = cryRpt
CrystalReportViewer1.Refresh()

结束 Sub

结束 班级









当我运行该程序时,实际上没有问题,但为什么我必须首先进行操作登录。动作登录包含一些字段,它们是服务器名称,数据库,id和密码。服务器名称自动填充,数据库字段为空,但我无法填写。对于空的ID和密码,我必须能够填写它。



的id和pasword字段,我不知道我是什么东西必须填写该领域。希望任何人都能清楚地理解我的问题和问题,并尽快帮助我。





谢谢和最诚挚的问候,





toni firnandes。

解决方案

这是突然的数据库登录表单应用程序当我开始该程序时出现。


hello dear all the best programmer,

this is my first posting or maybe a question but hopely although i am the beginner and newbie in vb .net you would like to help for solving my problem.

i get some problem when i was making a report application with crystal report in vb.net using sql server database. i make simple application that consist one button "show report" and one crystal report viwer. i put code to the button "show report" :

Imports CrystalDecisions.CrystalReports.Engine

Public Class Form1

    Private Sub Button1_Click(sender As Object, e As EventArgs) Handles Button1.Click
        Dim cryRpt As New ReportDocument
        cryRpt.Load("Data Source=(localdb)\Projects;Initial Catalog=crystaldb;Integrated Security=True")
        CrystalReportViewer1.ReportSource = cryRpt
        CrystalReportViewer1.Refresh()

    End Sub

End Class





and when i run the program, actually there is no problem but why i must first ly to do an action login. the action login consist of some field , they are server name, databse , id and pasword. the server name was automatically filled and the database field was empty and but i can''t fill in it. and for id and password that were empty to and i must and able to fill that.

for the id and pasword field, i don''t know what thing i must to fill in that field. hopely anybody can understand my question and problem clearly and as soon as possible would like to help me.


thanks and best regards,


toni firnandes.

解决方案

that was suddenly database login form application appear when i start that program.


这篇关于在vb.net和sql server数据库中使用crystal report进行报告的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆