Showing posts with label net. Show all posts
Showing posts with label net. Show all posts

Sunday, March 25, 2012

Crystal Running Group Total equivilent in Report Services

I'm trying to use Reporting Services Developer edition with SQL Server 2000
and Visual Studio 2003. Net to create a report that already existed in
Crystal Reports 8.5 so that the report can be distributed via email and other
things that Report Services allows.
The Crystal Report uses something called a 'Running Total' field that
summarizes a field and evaluates a value for each chance of the field and
resets the value on the change of a group.
Who would you go about solving this problem in Report Services?
Thanks,
JimCheck out the RunningValue value function in BOL...
"Jim" <Jim@.discussions.microsoft.com> wrote in message
news:8DDF9D20-B55F-4DD1-8B69-937AD2ACD859@.microsoft.com...
> I'm trying to use Reporting Services Developer edition with SQL Server
> 2000
> and Visual Studio 2003. Net to create a report that already existed in
> Crystal Reports 8.5 so that the report can be distributed via email and
> other
> things that Report Services allows.
> The Crystal Report uses something called a 'Running Total' field that
> summarizes a field and evaluates a value for each chance of the field and
> resets the value on the change of a group.
> Who would you go about solving this problem in Report Services?
> Thanks,
> Jim|||What is BOL and how do you get access to it?
"Jim" wrote:
> Check out the RunningValue value function in BOL...
> "Jim" <Jim@.discussions.microsoft.com> wrote in message
> news:8DDF9D20-B55F-4DD1-8B69-937AD2ACD859@.microsoft.com...
> > I'm trying to use Reporting Services Developer edition with SQL Server
> > 2000
> > and Visual Studio 2003. Net to create a report that already existed in
> > Crystal Reports 8.5 so that the report can be distributed via email and
> > other
> > things that Report Services allows.
> >
> > The Crystal Report uses something called a 'Running Total' field that
> > summarizes a field and evaluates a value for each chance of the field and
> > resets the value on the change of a group.
> >
> > Who would you go about solving this problem in Report Services?
> >
> > Thanks,
> > Jim
>
>|||BOL is Reporting Services Books On Line.
You can also find them on MSDN:
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/rscreate/htm/rcr_creating_expressions_v1_1l6b.asp
--
This posting is provided "AS IS" with no warranties, and confers no rights.
"Jim" <Jim@.discussions.microsoft.com> wrote in message
news:74ABD5D6-72D0-43E5-97C7-BD433A7F6876@.microsoft.com...
> What is BOL and how do you get access to it?
> "Jim" wrote:
> > Check out the RunningValue value function in BOL...
> >
> > "Jim" <Jim@.discussions.microsoft.com> wrote in message
> > news:8DDF9D20-B55F-4DD1-8B69-937AD2ACD859@.microsoft.com...
> > > I'm trying to use Reporting Services Developer edition with SQL Server
> > > 2000
> > > and Visual Studio 2003. Net to create a report that already existed in
> > > Crystal Reports 8.5 so that the report can be distributed via email
and
> > > other
> > > things that Report Services allows.
> > >
> > > The Crystal Report uses something called a 'Running Total' field that
> > > summarizes a field and evaluates a value for each chance of the field
and
> > > resets the value on the change of a group.
> > >
> > > Who would you go about solving this problem in Report Services?
> > >
> > > Thanks,
> > > Jim
> >
> >
> >

Crystal Reports: Displaying percentages of total qty?

I'm creating a .NET crystal report sales report that lists the total # of each item sold and the percentage of total sales that the item contributed towards however, before I can calculate the percentage for each row, I need to know the total qty of the report, which I don't know how to retrieve.

So a sample report of 500 items sold may look like this:
------------------
Category | Qty Sold | Percentage
------------------
Electronics | 200 | 40%
Books | 100 | 20%
Movies | 150 | 30%
Games | 50 | 10%
------------------
Total | 500 | 100%
------------------

How can I calculate a percentage for something like this?
Thanks.

-Goalie35http://forums.belution.com/en/crystal/000/061/54.shtml

Crystal Reports Viewer [2003]

Hello,

I have a load of crystal reports which have been created previously, and what I'd like to do is print / preview these from my VB.NET application.

Ideally I'd want a form in VB which will list all of the crystal reports in a particular location on my hard drive. Then I'd like to be able to click onto the reports and print / preview them in the Crystal Viewer.

I have found something called Crystal Reports Viewer on the toolbox, but I can only seem to link 1 report to that.

Can anyone help me with this please, or point me in the direction of some documentation which will help me do this?

Thanks,
J.use filedialogbox and set default path to ur local hard drive folder.

whattever file user selects map it to, reportsourse property of crystalreportviewer.

Crystal reports using .net objects

hi

I am using VS 2005 c#.net, in that crystal reports 10.

In my requirements i have to bind the databse with two data base objests.
With using one object i am able to get that data.

CrystalReport2 cryst = new CrystalReport2();
cryst.SetDataSource(cand.GetGeneralInfo());
crystalReportViewer1.ReportSource = cryst;

this GetGeneralInfo() method is of type list.
I am binding that list to my report.

Thanks
Raghudo you want to get data from two different servers?

Thursday, March 22, 2012

Crystal Reports on Web Host

Hi There,

I've built an asp.net application with visual studio 2003. The asp.net application has three crystal reports, they all work fine when i run them on the development machine(my computer) but when I run my program thats on the web I recieve a "Cannot find KeyCodev2.dll or invalid keycode error". Anyway my question is this, the webhost obviously has the .net framework installed, will it ever be possible for my crystal reports to work on the web? Do I need to get my webhost to somehow install crystal reports on the web in order for my reports to work?

Your help would be greatly appreciated.

Thanks.

SimonTry registering that dll and check

Crystal Reports on VB.Net 2003

Is crystal reports XI compatible with VB.Net or is there a specific version forv it? How can I use CR 11 for VB.net?Yes u can use CR XI with visual studio 2003,u can use CRXI Developer version|||Thanks for the reply, but how do I integrate those two and use the runtime design?

I'm using crdev XI.

Thanks~|||u can design reports in CR XI and then call that in VB.Net|||Ahwww ok! now I've figured it out. I used the RDC reference instead of CR for VS.Net. Thanks ~

Crystal Reports Export Problem

Hi, Im using crystal reports integrated with visual studio.net 2005. Currently, i have a 3 page report, it shows perfectly in the crystal report viewer, but it has problems when i export it.
When i export to word format, only the first page is exported along with a blank page and when i export to PDF format, total 6 pages are exported 3 being the report pages and 3 being blank pages after each report page. I require to export to word format but i have no idea wats causing this problem...any help will b greatly appreciated...its urgent!You could try exporting to RTF, then open that with word...sql

Crystal Reports Exception in ASP.NET

Hi All...!!!
Im new() here :cool:
Well, ive been working on Crystal Reports in ASP.Net (using vb.net). While genrating reports (@. runtime) i encountered few problems... Im not able to make head or tails of these exceptions. Can anyone explain to me wht r these exceptions n y these occur?

1. CrystalDecisions.CrystalReports.Engine.LogOnException: Logon failed.
2. QueryEngineFailure

ThanX in advance...

Regards,
ReiO :Dhi,
freind.
You may not installed crystal report components while installing .NET.
Please reinstall all components.
I hope it will work

regard
RKK|||Try this

remove @. in .net code where u set parameter field

hope this helps you|||i am getting the same error. i have seperately installed the components as said above and still no luck

whats weird is dat it works fine in a windows app bt not asp

y this occurs is beyond human understanding bt losing my job over it is not!

Tuesday, March 20, 2012

Crystal Reports +Selection of a particular section

Hi
I am new to .NET and my first assignment is to make to develop Crystal Reports for an applicaiton.This is a pure windows based application.
I have different types of data to be printed based on the selection in a check box.

Can I make a section added by me "visible" based on the data that i checked to be pritned.If so ,please help me with some sampel code.Visible I mean ,the checked data should be shown after I run the application

Hope to hear from some one soon.I spent the whole day searching for some tips!!!Hi,

At first create one Project and add one form into the project...... add option controls to it and add 1 button control to it and name it as generate report..in Generate report click event add this code.....Don't forget to get Crystal Report Viewer on to the form....

Declaration section.........

Public ReportType As String
Public FAErlangs As New FA_ErlangProjections
Public FARProjections As New FA_RadiosProjection
Public FATProjections As New FA_TimeslotsProjection

in button click event......

If optTrafficProjections.Checked = True Then
CrystalReportViewer1.ReportSource = FAErlangs
CrystalReportViewer1.EnableDrillDown = False
ElseIf optFARProj.Checked = True Then
CrystalReportViewer1.ReportSource = FARProjections
CrystalReportViewer1.EnableDrillDown = False
ElseIf optFATProj.Checked = True Then
CrystalReportViewer1.ReportSource = FATProjections
CrystalReportViewer1.EnableDrillDown = False
End If

hope this works for you...... if you have any questions mail me at garlapati76@.yahoo.com.

Thanks.sql

crystal reports (the coder way) ?

Hi

I have a .NET application that needs to obtain the details of the parameters for a crystal report.

I have written some code, that opens a report into the crystal viewer and the gets the parameter info and displays it in a msgbox.

However, the viewer prompts for the parameters, before i get a chance to get the information and display it.:(

My question is, does anyone know of a way that i can get the parameter information from a report, without the user being prompted for the parameters ?

Thanks in anticipation[Moved thread]|||YOu need to populate the parameters to the report before viewing it the viewer or printing it to the printer.

here is a sample from VB on how to populate parameters and formulas.

Dim crFormula As CRAXDRT.FormulaFieldDefinition
Dim crParam As CRAXDRT.ParameterFieldDefinition

crReport.DiscardSavedData

For Each crParam In crReport.ParameterFields
Select Case crParam.Name
Case "{?SortType}"
crParam.AddCurrentValue m_strSortType

End Select
Next crParam


For Each crFormula In crReport.FormulaFields
Select Case crFormula.Name
Case "{@.StartDate}"
crFormula.Text = "DATE( 2001, 01, 01)"
Case "{@.EndDate}"
crFormula.Text = "DATE( 2002, 03, 30)"
crFormula.Text = """All Offices"""
Case "{@.DetailOrSummaryFlag}"
crFormula.Text = """" & m_strSummaryDetailFlag & """"
Case "{@.Seperate}"
crFormula.Text = """FALSE"""
Case "{@.SetShowWarning}"
crFormula.Text = """FALSE"""
Case Else
'do nothing
End Select
Next crFormula|||Hi

I have a .NET application that needs to obtain the details of the parameters for a crystal report.

I have written some code, that opens a report into the crystal viewer and the gets the parameter info and displays it in a msgbox.

However, the viewer prompts for the parameters, before i get a chance to get the information and display it.:(

My question is, does anyone know of a way that i can get the parameter information from a report, without the user being prompted for the parameters ?

Thanks in anticipation

Dim APP As New CRAXDRT.Application
Dim REPORT As CRAXDRT.Report
REPORT = APP.OpenReport("C:\SHIPMENT_SCHEDULE\REPORTS\XL.rpt")

REPORT.EnableParameterPrompting = False
(this is the one you should include...disabling the parameter prompting)

Crystal Reports & pdf

Hi,

I have a question. How can i fill a report made in CrystalReports in .net

Thanks in advance

YOu should post that in Crystal reports related forums rather than in a SQL forum.

Jens K. Suessmeyer.

http://www.sqlserver2005.de

crystal reports

Dear Friends,

Please help me urgent.

I have tried to create the code in vb.net 2003 in crystal reports 10. I had my code as follows:-

Con.ConnectionString = _
"Provider=Microsoft.Jet.OLEDB.4.0;Data Source=" & _
"C:\Program Files\inventory.MDB;" & _
"Persist Security Info=False;" & _
"Jet OLEDB:Database Password = tz_2006"
Con.Open()

Private Sub Form2_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load

RS = New ADODB.Recordset
Dim strReportName As String

CHECK_STRING = "SELECT * FROM CITY_CITIES"
RS.Open(CHECK_STRING, Con, ADODB.CursorTypeEnum.adOpenDynamic, ADODB.LockTypeEnum.adLockOptimistic)

strReportName = "CITIES"
Dim strReportPath As String = "C:\Program Files\REPORTS" & "\" & strReportName & ".rpt"

'Check file exists
If Not IO.File.Exists(strReportPath) Then
Throw (New Exception("Unable to locate report file:" & vbCrLf & strReportPath))
End If

Dim rptDocument As New CrystalDecisions.CrystalReports.Engine.ReportDocument

rptDocument.Load(strReportPath)
rptDocument.SetDataSource(RS)
AxCRViewer1.EnableGroupTree = False
AxCRViewer1.ReportSource = rptDocument
AxCRViewer1.ViewReport()
End Sub

The Error I am getting is the 3rd line from below (i.e. AxCRViewer1.ReportSource = rptDocument) which the Error states that "an unhanded exception of type 'system.invalidcastexception' occured in axinterop.crviewerlib.dll" and "Additional information: No such interface supported"

Thanks.Open the report and Do verify Database

crystal reports

I have vb.net 2003 and crystal reports v10.

1) how shall I add component of crystal reports in my vb.net?

2) In crystal reports how do you find the number of the days in a particular month.(e.g. aug has 31 days & sept has 30 days). (e.g in vb.net MYDAYS_MONTH = DateTime.DaysInMonth(Now.Year, Now.Month)

3) what shall i do in order that my reports shall be displayed in vb.net while running the program. (i.e If I run the program it does not display the report but if I run the report separately then I can view the datas).

Note:
a) the database is in access.
b) it has the database password.

ThanksI'm using Crystal Reports XI, but I think the code is just about the same.

To view a report using code:

1) Add the "Crystal Report Smart Viewer" control to your project (crviewer.dll)
2) Create a form, and add a CRViewer control to the form.
3) In order to view the report in the form, your would look something like the following (I haven't had much expirience with VB.NET, but I'm sure the code would look quite similar):

Declarations:
Private crxApplication As New CRAXDRT.Application
Private crxReport As CRAXDRT.Report

This goes in your Form_Load event:
Set crxApplication = New CRAXDRT.Application

When you need to display your report:
Set crxReport = crxApplication.OpenReport(ReportFile)
crxReport.DiscardSavedData

For X = 1 To crxReport.Database.Tables.Count - 1
crxReport.Database.Tables(X).Location = FullDBPath
Next X

CrViewer.ReportSource = crxReport
CrViewer.ViewReport

I hope this helps.
-- Heather|||Dear Heather,

Thanks for your help.

I would like to inform you that I followed all your steps as you have said put still all my reports are not been displayed in my application.

Can I have your help please.

Thanks|||Did you get error or the page is not displayed properly?

Monday, March 19, 2012

Crystal report Viewer Load Slowly with data .net

Hi All,
Can anyone suggest how to solve Crystal report Viewer Load Slowly with data .net .
It takes more than one or two minutes . Any Patch of cr to run or any thing to be modified in Coding.
Thanx
shaliniHow many records are shown in the report?

crystal report sql statement

i am using vs.net 2003 thats comes with crystal report, i create the report look, now i wan tot set some sql statement on there, is there and where i can create in crystal report and not from vb.net programming code? i saw there is a sql expression field but there is not those, select, update, delete command for me to choose. can you all guide me how?When you add fields to the report, and create groups, Crystal is building its own SQL statement, which you see in the SQL Statement.
So once you have defined a connection to the database, and then selected tables and defined their links, the FROM part of an SQL statement has been created by crystal.
Then when you add fields, they will appear in the SELECT portion of the statement.
When you create a group, this should appear in the GROUP BY clause.

And so on.

If you have some conditions that you wish to apply (like a date range or similar), use the "Edit Selection Formula" under the Rport heading to define what will appear in your WHERE statement.

Having said that, once Crystal has built up this SQL statement, it is possible to do some editing on it to further define your fields. Say you want to add a calculated field as part of your SQL output, in the SELECT statement you might add something like this:
,
(BoxesMade * NumberInBox) as TotalProduction

and Crystal should make that Field available to add to the report (because its data calculated from data already available in the linked tables).

Hope this helps you understand what's going on behind the scenes

Dave

Crystal Report Query Engine error

Hi,
My project is being done in Vb.Net 2003 and SQL Server2000. When I try to access the Crystal Report thru code only I get the query engine error. the Sql Query however works perfectly in Query Analyser.
The Query uses left outer join operation from 4 tables. Is there any way I can overcome my error?

Thanks in advance
JohnsyIt could be useful to know exactly what error message says, to figure out if we're dealing with connection problem, or there is an error in query.
Also, you could try running Profiler to see what happens on SQL Server when you run your report.|||hi johnsy,

i too got the same problem . please tell me the solution if had solved tat problem.
how to create dataset.xsd for 2 tables

Sunday, March 11, 2012

Crystal Report Performence Issue

Hi All,

I am new in Crystal Report.net2005.
I have used VB.net Application, Access 2003 as back end database.
I am using dataset for viewing crystal report.

My prob is that:

For th first time my reports are taking too much time to show.
But the next time it's not taking so much time.

It's happening every time when i exit the application.

Please give solution

Thank in Advance

Mayukh.What happens if you run the Crystal generated SQL directly in Access? Is it slow the first time and quicker next time?|||First time to make connection and pull data it takes sometime. But next time it would be faster as connection is already there until you refresh the report

Crystal Report Parameters

Hi guys, i am new around here, so be gentle!

I am trying to make a crystal report using vb.net 2005. When i add a new item to my website (crystal report) i choose "Add Command". I write the following code:

--------------------
select panathdate from properties where pid=@.id
--------------------

It then asks me to declare @.id. So i write the following:
--------------------
declare @.id integer
select panathdate from properties where pid=@.id
--------------------
and then i add a new parameter named "@.id".

Then, in the code behind of my webpage (after i added a crystalreportviewer) i write the following code:

--------------------
Dim paramField As New ParameterField
Dim pFields As New ParameterFields()
paramField.ParameterFieldName = "@.id"
paramField.CurrentValues.AddValue(Request("id"))
pFields.Add(paramField)

CrystalReportViewer1.ParameterFieldInfo = pFields
CrystalReportViewer1.DisplayGroupTree = False
CrystalReportViewer1.ReportSource = crReportDocument
--------------------

For some reason, although when i print the @.id it shows the correct number, i cant see the desired record from the database, except a blank report.

Any ideas or a detailed tutorial on how to bring the desired records in the crystal report would be ideal!!

Thanks in advance!Refresh report viewer by calling
CrystalReportViewer1.RefreshReport()
(Please correct the syntax since i am not VB programmer)

Crystal Report in VB.net Why Server Login?

I have created a report in VB.Net and use Crystal Report viewer to view it...but when I try to display the report it asked for a login to the server. I am using Intregated Security for all my other db connections in my application...how do I get that for the report?
Thanks,
CathyI've noticed that a report will ask for a database log-in, even if it was saved with data, and isn't automatically refreshed, if the database that the report was connected to when it was created, is not "locatable". I noticed this because when working at home, I would be prompted, and at work, I would not be. If I changed the data source (at home), it would no longer prompt for log-in info.|||I am at work and I'm not prompted when I connect to the same data for my forms...only with Crystal...
Thanks,
Cathy|||Cathy,

Don't know if this might apply in your situation, but, the thread "How to load a database name at runtime" http://www.dev-archive.com/forum/showthread.php?t=288950, shows people providing the log-in info just before the reports are opened, by coding it into the program. That doesn't really answer why, but it sounds like a workaround.

john

Crystal Report Graph

Hi Everybody,
I have just started to work with Crystal Report(shipped with vb.net 2003) and I am facing I problem in drawing a line graph.I have to draw a simple graph from a table where one column is time(datatype is datetime in sql server) and another column is Flow(datatype is float).Flow is recorded in every minute.I have to plot the graph where time is at X axis and flow at Y axis(no summerized value).
But in Chart expert whenever I select time in X axis(that is on change of value), I find Find flow is coming as summerized value like sum,average etc(but I want simple plotting without summerization).
If I take 'each record' option from chart expert for time column,I find X axis is showing mere numbers like 0,1,2.... instead of time which I require.
If anybody can help me I will be greatful to this group.
Thanking you.
Siddhartha.In both the cases what values are coming on the Y axis|||Hi
Thank you for your help,can you tell me how can I change at least one series to x axis.I am using Crystal report shipped with vb.net 2003.
Siddhartha|||If possible can you send me the project in zipped as a zip file|||I am facing the same problem too, I used the advanced layout in the chart expert , but still i get summarized values ,once i choose the "on change of value"
The don't summarize check box is disabled too.
I am using crystal report version 10

Could anyone pleease help,|||Since you are trying to draw a graph between two values, on change of 1 value so X-axis will have only 1 entry for 1 value. Lets say your table looks like this

Time Value

10:34 10.13
10:34 10.14
10:34 9.5
10:35
10:35
10:36

then as you see there are 3 entries for same time value (10:34) so how this will be displayed in the graph since a graph will have only 1 entry for 10:34. Thats why when you choose the value it comes to be a summarized value. So you can choose the corect type of summarization for your report it can be average, sum or any other even you own function. I think this clears your problem. :)