 |
|
 |
this coding work finely
some suggestions
if your report has multiple data bases comment this line " ConInfo.ConnectionInfo.DatabaseName = "
For index = 0 To objReport.ReportDefinition.Sections.Count - 1
For intCounter = 0 To _
objReport.ReportDefinition.Sections(_
index).ReportObjects.Count - 1
With objReport.ReportDefinition.Sections(index)
If .ReportObjects(intCounter).Kind = _
CrystalDecisions.Shared.ReportObjectKind.SubreportObject Then
mySubReportObject = CType(.ReportObjects(intCounter), _
CrystalDecisions.CrystalReports.Engine.SubreportObject)
mySubRepDoc = _
mySubReportObject.OpenSubreport(mySubReportObject.SubreportName)
For intCounter1 = 0 To mySubRepDoc.Database.Tables.Count - 1
mySubRepDoc.Database.Tables(_
intCounter1).ApplyLogOnInfo(_
ConInfo)sp;
mySubRepDoc.Database.Tables(_
intCounter1).ApplyLogOnInfo(ConInfo)
Next
End If
End With
Next
Next
in the above code fragment their is a two letters "sp" and ";" this will give error. but im remove it after the this coding work fine
|
|
|
|
 |
|
 |
Thanks for this guys...I hate the reporting part of a project almost as much as the user docs :=(
|
|
|
|
 |
|
 |
Great stuff but..how do I send Parameters to a SubReport that I use ? I've been trying to figure this out for 2days would appreciate if you could let me know at the earliest, thanks...
|
|
|
|
 |
|
 |
i am using vb.net & crystal report
i have put the fields in crystal & when i browse the individual fields i get the values but when i preview the report the data is not displayed
|
|
|
|
 |
|
 |
Hi to all, i have problem calling my report using crystal report 8.5 in vb.net.
Is there anybody uses crystal report 8.5 in vb.net. please help..tnx
|
|
|
|
 |
|
 |
i want to set the logon info dynamically to crystal report as its not taking from app.config file
i have used similar code for setting logon info but i get the error
" values cannot be NULL"
|
|
|
|
 |
|
 |
I am new to VB .net programing. Originally an unix/c guy. If someone can show me how to display a crystal report on a VB .Net project. Everytime I try it, it shows 25 errors. Any help will appriciate. I tried Danish's article and I don't seem to figure out where to place the code?
Any help will be appreciated.
Altaf
|
|
|
|
 |
|
|
 |
|
|
 |
|
 |
i have the header part which comes from a procedure and the body part from another procedure. with the help of your code i have call the report but i am unable to pass the parameter in subReport procedure please help how to pass the parameter in subreport. i am using vb.net 2008 and crystal report 11
|
|
|
|
 |
|
 |
Hi Experts,
I Have Win7/VB Express 2010/CR 8.5. I am able to use the crystal report control on the VB Express 2010 Form. But when I drag and drop the Crystal report viewer on the form, VB crashes. Do you know what is the problem. Can I use CR8.5 with VBExpress 2010.
2nd question::
Let say I have a VB Express 2010 from wiht a text box and command button on it. I want to pass the textbox text to crystal report(wchih is stored in D drive) when the command button is pressed.
What the code would be..Is it doable? Do i have to make some control(formula, textbox)on the crystal report which is able receive the text from vb form.. Plz help me..
Thanks in advance..
waseemsmirza@gmail.com
Regards
Waseem
|
|
|
|
 |
|
 |
I often get VB 2003/2005 code snippets that do not work with Vb 2008/2010, so I would like to request Danish to kindly update the code for later versions.
|
|
|
|
 |
|
 |
Very usefull i am in debt to you!
|
|
|
|
 |
|
 |
Hello,
I am pretty new to VB but have been using Crystal Reports and MS SQL for 2 years now. I am having a bit of a problem understanding your code. I was wondering if any body could help. I have a vb form with a button on it that calls the report. I copied the code that does the report call and get an error on this line: objForm.ViewReport("C:\contract.rtp", , "@prmRecId=RecId&@prmBgnDate='06/01/09'")
the error is with the objForm.ViewReport it says "ViewReport" is not a member of projectname.frmViewReport, here is the entire code
Private Sub btnContract_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnContract.Click
Dim objForm As New frmViewReport
objForm.ViewReport("C:\Develop\JawoodSql-New\CrystlRpts\contracttest.rpt", "@prmCmpny=jawood=&@prmRpt=contract&@prmPayBillId=13935")
objForm.Show()
End Sub
Also, where does the long bit of code go for the Friendly, becasue no matter where I put it some of the code shows up fine and the rest of the code isgrayed out.
Any help in this matter is greatly appreciated.
Thanks,
John
|
|
|
|
 |
|
 |
Excuse me... can someone send me an example from his project with his crystal reports? thnx
|
|
|
|
 |
|
 |
I'm having problems with crystal report, if anyone can help.............
the problem arises from tables that have a one to many relation ships.
in my project i have used three tables, which are EMPLOYEE, LANGUAGE AND ALLOWANCES.In which an employee can have more than one allowance and languages.
so that when the report is displayed, the output looks like this:
Id Name Languages Alownces Allow Name
001 John English 200.00 Transport
001 John English 300.00 Fuel
001 John French 200.00 Transport
001 John French 300.00 Fuel
but the Desired Out put should look like this (with out the values are being repeated :
Id Name Languages Alownces Allow Name
001 John English 200.00 Transport
001 John French 300.00 Fuel
Grouping couldn't be a solution to ma problem
|
|
|
|
 |
|
 |
Dear Friend
I am using a Crystal reports 8.5 with VB 2008 Express. I am able to view the report in my own machine. But when I install in another machine I get a Blank grey screen without any warning. I used Try catch, without use.
Am I missing any dll file .
Thanks for ur help
ananthaas
|
|
|
|
 |
|
 |
hi expert
i have made report with frmviewreport.
after user click print dialog there will be another form.
to choose -> print-cancel-apply.
how i know the user click the button?
print/cancel/apply.
i need to know the what button user choose.
because after the document success printed the document can't be
print anymore,so after user click print i must update the database
and give a flag of the data.
vs2005(vb.net),mssql2005,cr2008
tq
|
|
|
|
 |
|
 |
i have been making this report for last one month but cant understand what i am doing wrong. here after debugging i dont want login window to see database.
Option Strict On
Option Explicit On
Imports System.Data
Imports System.Configuration
Imports System.Data.SqlClient
Imports CrystalDecisions.CrystalReports.Engine
Public Class para_list
Inherits System.Windows.Forms.Form
Dim con As String = System.Configuration.ConfigurationManager.AppSettings("connectingstring")
#Region " Windows Form Designer generated code "
Public Sub New()
MyBase.New()
' This call is required by the Windows Form Designer.
InitializeComponent()
' Add any initialization after the InitializeComponent() call.
End Sub
#End Region
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
Me.Close()
End Sub
Private Sub Button2_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button2.Click
Dim tbCurrent As CrystalDecisions.CrystalReports.Engine.Table
Dim tliCurrent As CrystalDecisions.Shared.TableLogOnInfo
Dim rptshow As New ReportDocument()
Try
rptshow.Load("parameterlist.rpt")
For Each tbCurrent In rptshow.Database.Tables
tliCurrent = tbCurrent.LogOnInfo
With tliCurrent.ConnectionInfo
End With
tbCurrent.ApplyLogOnInfo(tliCurrent)
Next tbCurrent
crystalreportviewer1.ReportSource = rptshow
crystalreportviewer1.Zoom(2)
Catch ex As Exception
MsgBox(ex.Message, MsgBoxStyle.Critical, "General Error")
End Try
End Sub
Private Sub CrystalReportViewer1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles crystalreportviewer1.Load
End Sub
End Class
|
|
|
|
 |
|
 |
Hello dear,
I am from Bangladesh. Hope you are well. I need your help as i want to use crystal reports in my applications. I am bigginer in this reports. I am trying to create a report using three tables from oracle database. I dont know how to write sql statement in crystal reports sql expressions. Previously I used vb 6.0 reports and oracle reports. plz help me with some of your advice...
|
|
|
|
 |
|
 |
I faced the same problem. Anybody please help us.
|
|
|
|
 |
|
 |
dear friends
i have a problem. i have created report in Visual Basic 6.0 using crstal report 8.0. i have create setup of my project.
when i load this setup in other computer which not have crstal report 8.0.
then report not run.
any body help me
|
|
|
|
 |
|
 |
to work with Crystal report You have to install "Crystal Reports Redistributable" in the client pc
try to google search for download this setup or you can get this setup in your crystal report installation Cd's redist folder
|
|
|
|
 |
|
 |
Hello There,
I have been searching hoe to pass parameters in crystal report Using VB.Net 2.0 with MS Access for a very long time. I have not found anything which can help me in this.
Could be please kind enough to send me a complete functionality to how send parameters to crystal report.
Basically I am making an Desktop application using MS-Access as backend. My requirement is simple to generate Receipt from the Database and give it Client.
So I have choose Crystal report so that user can store it in Harddisk as PDF files and later give printouts for the same
I am very new to Crystal reports and I have not made a single report for any of my projects yet.
So please be very Clear how make a crystal report using parameters.
Thanks
|
|
|
|
 |
|
 |
I used the code sample in a test application I'm developing. The app loads a Crystal Reports 10 file, sets the database server and name, applies a parameter, logs in to the database tables, then tries to display the report in the viewer (by setting the ReportSource of the viewer to the ReportDocument I created and am working with). The report comes up but reports that the parameter was not set. Am I missing a step? Is there a refresh or something that needs to be applied?
To be sure that the parameter was applied, I've walked through the source code and checked out various properties of the ReportDocument object. Before I set the parameter, the HasCurrentValue is False. After I set the property, it is True. That makes me think that I have actually set the value for the property. However, I can't find a property that allows me to actually "see" the value that I just set for the property, which I'd like to do to be 100% sure that I've actually set it.
Thanks in advance for any help!
|
|
|
|
 |