Showing posts with label report. Show all posts
Showing posts with label report. Show all posts

Friday, March 23, 2012

recovering file from report server

Hi
Is it possiable to recover a .rdl file from the report server? I deleted a
report file from Visual Studio, but it was succesfully published to the
report server.
Any help is appreciated.
thanksImRhcndpbiIgPGRhcndpbkBkaXNjdXNzaW9ucy5taWNyb3NvZnQuY29tPiB3cm90ZSANCj4gSXMg
aXQgcG9zc2lhYmxlIHRvIHJlY292ZXIgYSAucmRsIGZpbGUgZnJvbSB0aGUgcmVwb3J0IHNlcnZl
cj8gIEkgZGVsZXRlZCBhIA0KPiByZXBvcnQgZmlsZSBmcm9tIFZpc3VhbCBTdHVkaW8sIGJ1dCBp
dCB3YXMgc3VjY2VzZnVsbHkgcHVibGlzaGVkIHRvIHRoZSANCj4gcmVwb3J0IHNlcnZlci4NCmdv
IHRvIHRvIHlvdXIgcmVwb3J0IHNlcnZlciANCjxzZXJ2ZXIgbmFtZT4vUmVwb3J0cw0KZmluZCB5
b3UgcmVwb3J0DQpvcGVuIGl0IA0KYW5kIGluIHByb3BlcnRpZXMgdGFiIHlvdSdsbCBmaW5kIGVk
aXQgYnV0dG9uLCBwcmVzcyBpdCBhbmQgeW91J2xsIGdldCB5b3UgcmRsIGZpbGUu|||As well as Report Manager you can also use Reporting Services Scripter. If
you need to get multiple reports from the server this will be quicker
http://www.sqldbatips.com/showarticle.asp?ID=62
--
HTH
Jasper Smith (SQL Server MVP)
http://www.sqldbatips.com
I support PASS - the definitive, global
community for SQL Server professionals -
http://www.sqlpass.org
"darwin" <darwin@.discussions.microsoft.com> wrote in message
news:792A43C5-18E9-478E-B086-BC6639880020@.microsoft.com...
> Hi
> Is it possiable to recover a .rdl file from the report server? I deleted
> a
> report file from Visual Studio, but it was succesfully published to the
> report server.
> Any help is appreciated.
> thanks|||Thanks to you both. I was rather a bit nervous thinking I would have to
reproduce that report from scratch. Jasper, Thanks for the code link. And a
new site to read!
;)
"Jasper Smith" wrote:
> As well as Report Manager you can also use Reporting Services Scripter. If
> you need to get multiple reports from the server this will be quicker
> http://www.sqldbatips.com/showarticle.asp?ID=62
> --
> HTH
> Jasper Smith (SQL Server MVP)
> http://www.sqldbatips.com
> I support PASS - the definitive, global
> community for SQL Server professionals -
> http://www.sqlpass.org
> "darwin" <darwin@.discussions.microsoft.com> wrote in message
> news:792A43C5-18E9-478E-B086-BC6639880020@.microsoft.com...
> > Hi
> >
> > Is it possiable to recover a .rdl file from the report server? I deleted
> > a
> > report file from Visual Studio, but it was succesfully published to the
> > report server.
> >
> > Any help is appreciated.
> > thanks
>
>

Tuesday, March 20, 2012

Recover Removed Report

If I remove a report from a project, can it be recovered to that project or
another project? How?Did you just remove it or did you delete it? If you just removed it, you can
right-click on the Reports folder in your Solution Explorer window, click Add
and click Add Existing Item. You can find the folder and click on the
report. If you've deleted it, you'll need to recover the .rpt file from a
backup.
"kcqueen" wrote:
> If I remove a report from a project, can it be recovered to that project or
> another project? How?|||Report was removed not deleted. So that did it. Thanks for the quick response
"daw" wrote:
> Did you just remove it or did you delete it? If you just removed it, you can
> right-click on the Reports folder in your Solution Explorer window, click Add
> and click Add Existing Item. You can find the folder and click on the
> report. If you've deleted it, you'll need to recover the .rpt file from a
> backup.
> "kcqueen" wrote:
> > If I remove a report from a project, can it be recovered to that project or
> > another project? How?

Wednesday, March 7, 2012

Recordset in Crystal Report 8

Hello,
The problem:

I have a report performed with the crystal assist.The report is label style and the crystal Reports creates a image of the label for every row in the recordset.The problem occurs when i pass the recordset from the VB 6.

Before printing I create the crystalreport object, the crystalreport datababase object and the crystalreporttable object pointing to the ttx file.But when I execute the CrystalReport preview method, the report dont shows any data.

Here is a sample of teh code:

Set report = app.OpenReport(Path & FicheroRPT)
Set reportDb = report.Database
Set reportTables = reportDb.Tables
Set reportTable = reportTables.Item(1)
Call reportTable.SetPrivateData(3, Data)

Call report.preview

The Report has many detail sections ( from "a" to "v").Could this be the problem.

If anyone can help me...Open the Report and Do Verify Database
Uncheck the option "Saved Data"

RecordSelectionFormula

hi , i am newbie in crstal report,
I had face a problem when i try to set the formula for selection.

I hope to query record that inv_date and c_date bigger than certain date.
so i set the formula like below:

r.RecordSelectionFormula =
"{ViewReportTraking.inv_date} >= DateValue('" & datefrom.ToString() & "') or {ViewReportTraking.c_date} >= DateValue('" & datefrom.ToString() & "')"

What happen is the query only select the record inv_date >= certainDate,
but not the c_date >=certainDate.

when i try to set it to opposite
r.RecordSelectionFormula =
"{ViewReportTraking.c_date} >= DateValue('" & datefrom.ToString() & "') or {ViewReportTraking.inv_date} >= DateValue('" & datefrom.ToString() & "')"

I need query either inv_date or c_date >= certainDate.Are you wanting to retrieve records back where both the inv_Date and c_date are >= your "certain date"? If so change your "or" to "and", then you will get back records where both conditions are true.

GJ|||No, i need either inv_date > certainDate or c_date > certainDate is true then query record.
but the 'or' look like not function, but the 'and' is function.

Saturday, February 25, 2012

Records appearing and then disappearing

Hi,

We have a SQL server db backend for our ERP system. I have written a
Crystal Report to extract data from one particular table called
itemspecbomw (c.30000 records) which contains amongst other things
Bill of Materials costings. When I run the report I know that some
rows are missing as when I look at values through the ERP system
itself, the values are different.

What I have found is that when I run the equivalent ERP system report,
the Crystal Report I have written shows extra rows. SQL Query Analyser
behaves exactly the same as the report I have written even when using
a "select * from". I have tested opening up a bigger tables (c. 700000
records) which appears without a problem. If anyone knows why this
mystery is happening, I woould be grateful for your help.

Many thanks,

Tony.tkennedy@.blenders.ie (Tony Kennedy) wrote in message news:<f25d55e1.0402170538.4d2c54f4@.posting.google.com>...
> Hi,
> We have a SQL server db backend for our ERP system. I have written a
> Crystal Report to extract data from one particular table called
> itemspecbomw (c.30000 records) which contains amongst other things
> Bill of Materials costings. When I run the report I know that some
> rows are missing as when I look at values through the ERP system
> itself, the values are different.
> What I have found is that when I run the equivalent ERP system report,
> the Crystal Report I have written shows extra rows. SQL Query Analyser
> behaves exactly the same as the report I have written even when using
> a "select * from". I have tested opening up a bigger tables (c. 700000
> records) which appears without a problem. If anyone knows why this
> mystery is happening, I woould be grateful for your help.
> Many thanks,
> Tony.

I don't completely follow your explanation, but you seem to be saying
that QA and Crystal give the same results, but your ERP report gives
different ones? If two tools are giving different results, then the
most likely explanation is that they are submitting different queries.
I would suggest using Profiler to trace the SQL sent to the server by
your ERP application, and then run the same SQL in QA - you may find
that it is constructing a query which is different from what you
expect.

Simon|||Hi Simon,

I checked out the query used in the system ERP report, but I found
when I cut'n pasted the query into query analyser and ran it, it
returned the exact same number of records as the one I wrote. It seems
to be a problem with the way I access the db or that the ERP program
has some sort of lock on the table...

Thanks for your advice,

Tony.

sql@.hayes.ch (Simon Hayes) wrote in message news:<60cd0137.0402171042.2caa5e1c@.posting.google.com>...
> tkennedy@.blenders.ie (Tony Kennedy) wrote in message news:<f25d55e1.0402170538.4d2c54f4@.posting.google.com>...
> > Hi,
> > We have a SQL server db backend for our ERP system. I have written a
> > Crystal Report to extract data from one particular table called
> > itemspecbomw (c.30000 records) which contains amongst other things
> > Bill of Materials costings. When I run the report I know that some
> > rows are missing as when I look at values through the ERP system
> > itself, the values are different.
> > What I have found is that when I run the equivalent ERP system report,
> > the Crystal Report I have written shows extra rows. SQL Query Analyser
> > behaves exactly the same as the report I have written even when using
> > a "select * from". I have tested opening up a bigger tables (c. 700000
> > records) which appears without a problem. If anyone knows why this
> > mystery is happening, I woould be grateful for your help.
> > Many thanks,
> > Tony.
> I don't completely follow your explanation, but you seem to be saying
> that QA and Crystal give the same results, but your ERP report gives
> different ones? If two tools are giving different results, then the
> most likely explanation is that they are submitting different queries.
> I would suggest using Profiler to trace the SQL sent to the server by
> your ERP application, and then run the same SQL in QA - you may find
> that it is constructing a query which is different from what you
> expect.
> Simon

RecordNumber by Group?

Hello,

Is it possible to show a record number or count by group? I know the RecordNumber field will show me the number for the whole report but what I would like is the following:

Group A
1
2
3
Group B
1
2
3

Instead of group B being 4,5,6...

I'm trying to figure out how to number the lines per group heading. I hope that makes sense.

Many thanks,

StephenInsert a count() into the footer and count how you want. It gives the choices|||Thank you for the suggestions but I'm looking to get a count (like a row number) at the detail level however and I don't think I can do it that way (that I'm aware of).|||You have to do it manually for each Group. Increment and show the counter in the detail and reset in the Group Header/footer.|||You can create a running total:

select a field to summarize;
type of summaries: count
evaluate: for each record
reset: on change of group (select one you need)
:wave:

Monday, February 20, 2012

Record Selection Formula. Impossible?

I have a problem selecting records in my crystal report. There are two string parameters, dateFrom and dateTo. The record selection formula is:

{payroll_history.dateModified} in CDate({?dateFrom}) to CDate({?dateTo})

When typing in the string parameters in crystal, the report works fine, suggesting the fault is in the parsing from vb to crystal. See code below:

Report.Parameters.getItemByName("dateFrom").setCurrentValue(strDateFrom)
Report.Parameters.getItemByName("dateFrom").setCurrentValue(strDateFrom)

HOWEVER, I can display these parameters on the screen perfectly fine when executing the report from VB. Surely this means the selection formula is incorrect?? But it works from within crystal! Argh!

Any help anyone can give me will be so much appreciated.My first thought is that you have a DateTime field, but are trying to use a string parameter. Is payroll_history.dateModified a DateTime field in the database? If so, you need to pass it a DateTime. Also, if it is DateTime and not just Date, you will need to add the hour which, if you don't use a time, will have to be 00:00:00, so the parameter passed would have to be something like 08/12/2006 00:00:00 or else it won't work.

Record selection Formula

Hi all

my report is having a selection formula like this

BooleanVar CRef;
CRef :=({@.Is_CrossRef}=False) and ({AccVchHead.VchType}='Inv' or {AccVchHead.VchType}='Purch');
{AccVchHead.Vch_ID} > 0 AND
(CRef and {AccVchDet_1.Party_ID}={AccVchDet.Party_ID} Or
(Not CRef And {AccVchDet_1.Party_ID}<>{AccVchDet.Party_ID} And
(({AccVchDet_1.Amount}>0 and {AccVchDet.Amount}<0) or ({AccVchDet_1.Amount}<0 and {AccVchDet.Amount}>0))))

And i need to pass selection formula value from vb also

crystalreport.selectionformula=strsel (one selection formula)
crystalreport.action=1

This procedure gives error message saying BooleanVar Cref; Fieldname not found

Expecting positive replies

TonyBooleanVar CRef;
CRef :=({@.Is_CrossRef}=False) and ({AccVchHead.VchType}='Inv' or {AccVchHead.VchType}='Purch');
{AccVchHead.Vch_ID} > 0 AND
(CRef and {AccVchDet_1.Party_ID}={AccVchDet.Party_ID} Or
(Not CRef And {AccVchDet_1.Party_ID}<>{AccVchDet.Party_ID} And
(({AccVchDet_1.Amount}>0 and {AccVchDet.Amount}<0) or ({AccVchDet_1.Amount}<0 and {AccVchDet.Amount}>0))))
I assume this is the formula that is in the Crystal Reports formula and not the one from VB, correct?

crystalreport.selectionformula=strsel (one selection formula)
crystalreport.action=1

What is this --> strsel (one selection formula) ?

Try this:

crystalreport.selectionformula = "BooleanVar CRef; " & vbCrLf _
& "CRef :=({@.Is_CrossRef}=False) " _
& "and ({AccVchHead.VchType}='Inv' " _
& "or {AccVchHead.VchType}='Purch'); " & vbCrLf _
& "{AccVchHead.Vch_ID} > 0 " _
& "AND (CRef and {AccVchDet_1.Party_ID}={AccVchDet.Party_ID} " _
& "Or (Not CRef And {AccVchDet_1.Party_ID}<>{AccVchDet.Party_ID} " _
& "And (({AccVchDet_1.Amount}>0 and {AccVchDet.Amount}<0) " _
& "or ({AccVchDet_1.Amount}<0 and {AccVchDet.Amount}>0)))) "|||Hi Malll

Thanx for replying my query is as u specified it is a recordselection formula in crystal report but i need to pass extra one through vb that is why i specified strsel
which is a variable thru' which i'm going to pass another formula

abstract:

i already have one selection formula in crystal report and need to pass one more through vb. normally it is working but if u r specifying a variable in the record selection formula in crystal report it gives error messages

Tony

Record Selection Crystal Reports

I'm trying to get Crystal reports to prompt the user each time they run the report for the company they want to run the report an the date range they want to run the report on. Unfortunatly I can only get it to do the company at run time. In order to filter out the date range and the company I have to use the selection expert which dosent really help my users is there anyway to filter both sets of values when running the report live for the customer?Cant you pass these values thru the Application you are using?

Record Selection - CR9

Hi

I want my report to output data if any one of three date fields is greater or equal to today.

In my record selection i entered "datefield1" >= currentdate OR "datefield2" >= currentdate OR "datefield3" >= currentdate. However, report itself seems to only act after the first datefield is true and does not output data if the others are true. Crystal seems to ignore the subsequent record selections...

Where am I going wrong? Thanks...this is the code that is not working fully.. I have also tried xor

{tblKeyDates.datPODDue}>= currentdate or
{tblKeyDates.datHearing}>= currentdate or
{tblKeyDates.datPt8Iss}>= currentdate|||Is what you've shown the entire record selection formula?

Record navigation

I have created a one-page client summary report. My problem is that I can only get the report to show one client and there are many. How do I add record navigation functionality to my report?

LAT,

Group your report by the client and then set group to break on each page, you will then have a summary report for each client and this will allow you to navigate to each client page.

Ham

|||

Ham,

Thanks for the suggestion. Unfortunatly, I'm still having problems. The report is a free-form and I am unable to get the grouping to work. Any other suggestions?

|||

Lat4551,

Can you clarify what you mean by "report is a free-form" ? Also what are you using at a datasource?

Ham

|||

Ham,

I am using data from Microsoft CRM which is housed on a SQL server. Prior to migrating to CRM, we used Access to house/track our sales activities. I had a number of reports that I created in Access and am now trying to re-create in SSRS. Access allows the user to format reports with any layout desired, not limiting to tables, charts and matrices. Using SSRS, I have "dragged and dropped" just as I would for the Access report and it looks the same, just can't get it to show more than one report.