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

Friday, March 30, 2012

Marking Multiple Records?

I have a crystal report that I have been asked to modify for a new process.

This report will take a look at our scheduling system and display which Dies are needed for each order. The Problem I am running into is I need a way to be able to denote that a Die is at another operation if the die number is previously listed in the report. This would be fine if I could sort by Die number, but the report has to be sorted by time so our Die room staff knows when a die is due to a machine and are able to just run through the list without having to search through the report for the next order.

This report is currently grouped by run date (so we can keep shifts straight) and sorted by Run Start Time and then by machine number.
This is the order is has to be in, and I cannot deviate from that.

Attached is an example of the current layout of the report

My issue is that I need some way to Denote that the die for the last order 278381-1 is at another machine (the First 2 orders 278385-1) so our Die Room staff are not searching for the Die on Rack 51 when they go to get the dies for the the last order.

I have thought long and hard about this, and I cannot figure out a way to get through this issue without reordering the report, which I cant do.

Any assistance or direction would be greatly appreciatedProblem has been resolved
The solution involved creating a Sub-Report and filtering out the extra records that did not match and then adding a Formatting to the Field to denote a Duplicate record.

Mark a textbox "not for data-csv export"

Is it possible to mark a textbox in a report to not be exported to csv. This
would be similar to the "Data Output" tab for textboxes - but for csv instead
of xml?Setting the DataElementOutput value affects all "data-centric" rendering
extensions. I.e. CSV and XML. You cannot control CSV specifically in this
case.
-- Robert
This posting is provided "AS IS" with no warranties, and confers no rights.
"DBA72" <DBA72@.discussions.microsoft.com> wrote in message
news:F6027B38-C0C4-4C89-B9B2-5CCD6A33987B@.microsoft.com...
> Is it possible to mark a textbox in a report to not be exported to csv.
> This
> would be similar to the "Data Output" tab for textboxes - but for csv
> instead
> of xml?sql

Margin rendering

When running a SSRS 2005 Report on local machines (running Windows XP) A certain Textbox Label is not wrapping and is sized with .25 inch blank spacing at the end of the text. When running thru a datadriven Subscription this label is wrapping to next line on the PDF file that is produced.

We went to the SSRS 2005 server( Windows server 2003) and opened the report and it shows this label wrapping and the text is not fitting in the label box. But on every client box that we open this report on it shows it not wrapping. Is there a setting on the Server that we need to set for this report to render correctly.

Hi Brad,

A couple questions for you:

1) Are all machines running the same version of SSRS?

2) Are you exporting to PDF in all cases?

3) Do the various servers on which the different reports run have differing DPI settings?

Many thanks,

Chris

Margin and Paper Orientation programmatically

Hello.

I have a report but by default it prints Portrait and 1.0inch Margin. I would like to programmatically set the values of my report to 0.2 inch margin and Landscape. I am using RDLC (Local Report).

Does anyone has an idea how to achieve this?

Jose

Pls try, Report ->properties ->layout.

Over here u cans et margins as well as width and height of the report.

|||

Report -> Properties -> Layout does not exists.

i don't think it has something to do with the report itself, but the PrintDoc related to the Report Control.

Based on my analysis, The Report Control MIGHT create a PrintDoc on the fly and set the Rendered Report to it. So, i guess we could try to trap that PrintDoc before is sent to Printer.

But, so far... i can't find the "way" to "meet up" with this PrintDoc chic.

Any other suggestion?

|||

Ok. I see what you mean now. Those Margins and Padding are related to the Control itself. For example, any other control inside the Reprt Control. It's like <Table> in HTML. You can set Margins and Paddings of its cells for other controls inside.

Well... i keep on looking a solution.... I trapped the Print Event but nothing about any hint to set Printing Margin and Orientation... Sad

|||

I found this solution but still is not what i am looking for. So far this solution only works with IMAGE output and it's really messy. So, i'll try to figure out what to do.

http://blogs.msdn.com/bryanke/articles/71491.aspx

Nobody can help please?

Mapping Report Model Entities to Drill-through Reports

When you use Sql Mgmt Studio to assign a report as a drill-through target for
a model entity, you can assign reports for both "Single Instance" and
"Multiple Instance". Does anyone know what this means? I had a 2+-hour
support session with a member of MS SQL Reporting team, and he didn't know
either.
cheers,
Helen
--
Helen Warn, PhD
Agile Software Inc.
www.agile-soft.comBy default when you save the file, where the datasource is connected through
RB,
If you have opened RB through some other server then you can attach where it
is for multiple instance of the servers. Basically to update on the report
server database of multiple servers is called multiple instance and single
server is called single instance.
Amarnath
"Helen Warn" wrote:
> When you use Sql Mgmt Studio to assign a report as a drill-through target for
> a model entity, you can assign reports for both "Single Instance" and
> "Multiple Instance". Does anyone know what this means? I had a 2+-hour
> support session with a member of MS SQL Reporting team, and he didn't know
> either.
> cheers,
> Helen
> --
> Helen Warn, PhD
> Agile Software Inc.
> www.agile-soft.com|||Actually that is not what it is used for. From
http://msdn2.microsoft.com/en-us/library/ms345298.aspx
(Lesson 12: Specifying Clickthrough Report Options from BOL):
"There are two clickthrough templates for each entity: a single instance
template and a multi-instance template. A single instance template is used
when the user clicks an instance of the entity. A multi-instance template is
used when the user clicks an aggregate value and multiple instances of the
entity are displayed."
I am sure that I am not the only person who fervently wishes that the
reference sectins of the documentation contained such information.
Cheers,
Helen
--
Helen Warn, PhD
Agile Software Inc.
www.agile-soft.com
"Amarnath" wrote:
> By default when you save the file, where the datasource is connected through
> RB,
> If you have opened RB through some other server then you can attach where it
> is for multiple instance of the servers. Basically to update on the report
> server database of multiple servers is called multiple instance and single
> server is called single instance.
> Amarnath
> "Helen Warn" wrote:
> > When you use Sql Mgmt Studio to assign a report as a drill-through target for
> > a model entity, you can assign reports for both "Single Instance" and
> > "Multiple Instance". Does anyone know what this means? I had a 2+-hour
> > support session with a member of MS SQL Reporting team, and he didn't know
> > either.
> >
> > cheers,
> >
> > Helen
> > --
> > Helen Warn, PhD
> > Agile Software Inc.
> > www.agile-soft.com

Monday, March 26, 2012

Many-to-Many data

If you have ever ran across the same problem you will now what I am talking about.

The designer gave us a report to develop that displays many to many data. The traditional approach of hierarchal data reporting just will not work. Any ideas on hwo to display this data?

Here is a quick example:

Think of Musician to Albums. A musician can have many albums, and an album can have many musicians.

The report will list grouped by musician thier albums and the total sales, but when you sum up the sales it will be overstated because an album can have multiple artists. Also, if three artists contributed to the same album, it should list the three artists, then the one album, not artist/album X3.

So... what is the best approach to displayign this type of data on a report? We are stumped.

Thanks,
Eric

I was able to solve it. The trick was two have two seperate groups for Albums, then show/hide depending on conditions.

Friday, March 23, 2012

Many tabelview in one report

Hello
We are using SPSS and we combine many frequencies(table) in one report.
SPSS frequencies can look like this:
Ordinært avviklet
1 Poliklinikk 3 Innleggelse
1 Mann 50 11 61
2 Kvinne 100 15 115
Total 150 26 176
Nyhenviste
1 Poliklinikk 2 Dagbehandling 3 Innleggelse Total
1 Mann 33 14 47
2 Kvinne 61 2 10 73
Total 94 2 24 120
We wish to combine many sql queries in one report. I have seen a little
about the matrix report, but can't see it has a solution for many queries.
Anybody how has a good solution?One simple question: How to merge reports.(many rdl to one)
"CJ" wrote:
> Hello
> We are using SPSS and we combine many frequencies(table) in one report.
> SPSS frequencies can look like this:
> Ordinært avviklet
> 1 Poliklinikk 3 Innleggelse
> 1 Mann 50 11 61
> 2 Kvinne 100 15 115
> Total 150 26 176
> Nyhenviste
> 1 Poliklinikk 2 Dagbehandling 3 Innleggelse Total
> 1 Mann 33 14 47
> 2 Kvinne 61 2 10 73
> Total 94 2 24 120
>
> We wish to combine many sql queries in one report. I have seen a little
> about the matrix report, but can't see it has a solution for many queries.
> Anybody how has a good solution?
>

Wednesday, March 21, 2012

many blank pages when report is exported to pdf

I have a problem in exporting my report to pdf file, there are so many
blank pages appear in pdf. I dont know why it happens. Anyone please
help me. I really need a solution on this for the release of our
project.
Thanks,
AltheaIs you report slightly wider than the page?
Kulgan.|||Hi,
I had the same issue and it took me couple of days to figure it out why it
was happening. Check the folowing:
1. Report Size
2. Report Body Size
3. Shrink the Table that holds the data..
Suresh
"Kulgan" wrote:
> Is you report slightly wider than the page?
> Kulgan.
>|||Make sure there isn't a lot of unused white space. That seemed to help me.
"Kulgan" <nickamckenna@.gmail.com> wrote in message
news:1123142322.629081.102570@.g14g2000cwa.googlegroups.com...
> Is you report slightly wider than the page?
> Kulgan.
>|||For another "fix" although maybe a long shot, see my post to the "UnWanted
Blank Pages" on 8/4/2005
"tulips_2812" wrote:
> I have a problem in exporting my report to pdf file, there are so many
> blank pages appear in pdf. I dont know why it happens. Anyone please
> help me. I really need a solution on this for the release of our
> project.
> Thanks,
> Althea
>

Monday, March 19, 2012

manually manipulate parameter info

If i want to go directly against the ReportServer database to manipulate parameter info for a particular report definition, which table is that data stored in?

Probably not something you can do like that, you may need web service.
The Catalog table contains information that may help you (text & binary blobs though)

Manually kick off a subscription

Using Report Manger, is it possible to manually kick off a subscription?
For example, if I have 100 scheduled reports and for some reason they do not
go, or need to be resent (for example, in my case a replication error) can
those reports be manually kicked off? I certainly don't want to rerun each
report and manually email all of these reports.
ThanksNo, through report manager you cannot manually kick off a subscription. The
workaround isn't pretty:
You can use entreprise manager to kick off a particular schedule. The only
thing you need is to get the schedule ID that the subscription is tied to.
One problem with this approach is that you'll kick off everything that is
attached to the schedule.
If you're using a shared schedule. You can find out the schedule ID by
calling the GetSubscriptionProperties method. It will come back in the
match data.
If you're using a subscription specific schedule, the easiest way is to
resave the subscription. This will create a new job in SQL Agent. So if
there aren't other users creating schedules at the same time, you'll be able
to look at the list of jobs at the same time, you'll see an entry in the
list of jobs which has never executed. Odds are this is the schedule you're
looking for.
-Lukasz
This posting is provided "AS IS" with no warranties, and confers no rights.
"troark" <t.roark.n0spam@.excite.com> wrote in message
news:%23GL7nZbbEHA.1732@.TK2MSFTNGP09.phx.gbl...
> Using Report Manger, is it possible to manually kick off a subscription?
> For example, if I have 100 scheduled reports and for some reason they do
> not
> go, or need to be resent (for example, in my case a replication error) can
> those reports be manually kicked off? I certainly don't want to rerun
> each
> report and manually email all of these reports.
> Thanks
>|||I figured out part of this, but not all.
It looks like it's a better idea to use Shared Schedules for what I'm doing.
If I need to rerun the whole schedule, then I just modify the execution time
and change it back after it completes.
However, what if I have 100 reports and 50 need to be re-ran? Looks like
there is not a way to do this. Is that right? If not, it might be a good
idea to look at this for future releases. Allow us to choose individual
reports in a Shared Schedule and reprocess them.
Thanks
"troark" <t.roark.n0spam@.excite.com> wrote in message
news:#GL7nZbbEHA.1732@.TK2MSFTNGP09.phx.gbl...
> Using Report Manger, is it possible to manually kick off a subscription?
> For example, if I have 100 scheduled reports and for some reason they do
not
> go, or need to be resent (for example, in my case a replication error) can
> those reports be manually kicked off? I certainly don't want to rerun
each
> report and manually email all of these reports.
> Thanks
>|||Thanks for the response. I was hoping for a different answer. I will soon
have over 300 scheduled reports. It is very likely that I will have to
re-run reports for one reason or another. I was hoping that I would be able
to use Report Manager without having to write something myself. Hopefully
this feature will be discussed for future releases.
Thanks again.
"Lukasz Pawlowski [MSFT]" <lukaszp@.online.microsoft.com> wrote in message
news:eI8t8fcbEHA.3804@.TK2MSFTNGP10.phx.gbl...
> No, through report manager you cannot manually kick off a subscription.
The
> workaround isn't pretty:
> You can use entreprise manager to kick off a particular schedule. The
only
> thing you need is to get the schedule ID that the subscription is tied to.
> One problem with this approach is that you'll kick off everything that is
> attached to the schedule.
> If you're using a shared schedule. You can find out the schedule ID by
> calling the GetSubscriptionProperties method. It will come back in the
> match data.
> If you're using a subscription specific schedule, the easiest way is to
> resave the subscription. This will create a new job in SQL Agent. So if
> there aren't other users creating schedules at the same time, you'll be
able
> to look at the list of jobs at the same time, you'll see an entry in the
> list of jobs which has never executed. Odds are this is the schedule
you're
> looking for.
> -Lukasz
>
> --
> This posting is provided "AS IS" with no warranties, and confers no
rights.
>
> "troark" <t.roark.n0spam@.excite.com> wrote in message
> news:%23GL7nZbbEHA.1732@.TK2MSFTNGP09.phx.gbl...
> > Using Report Manger, is it possible to manually kick off a subscription?
> > For example, if I have 100 scheduled reports and for some reason they do
> > not
> > go, or need to be resent (for example, in my case a replication error)
can
> > those reports be manually kicked off? I certainly don't want to rerun
> > each
> > report and manually email all of these reports.
> >
> > Thanks
> >
> >
>|||Yes, we are considering such a feature for a future release.
The way to make this work is to create a shared schedule that never fires
(occurs once where that occurance is in the past). Then hook up your
subscription to this schedule.
The shared schedule will match a job in SQL Agent.
To run a report on demand, use the SQL Agent APIs to trigger the job.
I know, this solution sucks...
-Lukasz
--
This posting is provided "AS IS" with no warranties, and confers no rights.
"troark" <t.roark.n0spam@.excite.com> wrote in message
news:Or0ORjcbEHA.212@.TK2MSFTNGP12.phx.gbl...
>I figured out part of this, but not all.
> It looks like it's a better idea to use Shared Schedules for what I'm
> doing.
> If I need to rerun the whole schedule, then I just modify the execution
> time
> and change it back after it completes.
> However, what if I have 100 reports and 50 need to be re-ran? Looks like
> there is not a way to do this. Is that right? If not, it might be a good
> idea to look at this for future releases. Allow us to choose individual
> reports in a Shared Schedule and reprocess them.
> Thanks
>
> "troark" <t.roark.n0spam@.excite.com> wrote in message
> news:#GL7nZbbEHA.1732@.TK2MSFTNGP09.phx.gbl...
>> Using Report Manger, is it possible to manually kick off a subscription?
>> For example, if I have 100 scheduled reports and for some reason they do
> not
>> go, or need to be resent (for example, in my case a replication error)
>> can
>> those reports be manually kicked off? I certainly don't want to rerun
> each
>> report and manually email all of these reports.
>> Thanks
>>
>

Manually change report

Hello,

I use Reporting Services in my solution. The data i have as source is very uncertain. Sometimes i manually have to delete a record from the report (not the database itself). I woluld like to have a checkbox or something simular to delete from report and totals, grafs would be updated. At the same time I would like the report to make a comment that a record was taken away, alternative let the user make a comment. Is this possible? DO i have to make a own application for that?

Thank you for your help!

Best regards,

Luskan

If you want my personal opinion, I don't think RS would be the best application for this.

Personally I would return the data from SQL to something like Excel using ADO/VBA or even MSQuery

and base your report / charts on the data then in Excel.

Deleting/changing the data will then have no effect on the data in your SQL database and if

constructed correcly, your charts/reports in excel will be updated automatically...

|||

Well, thank you for your opinion! Smile

But i think I got a Solution. Besides exporting to Excel you can use cascading report parameters in order to to achive the same thing. The only problem i have know is that "Value field" and "label field" does not work as it is inteded to do.

Best regards,

Luskan Smile

Monday, March 12, 2012

manual activation of RS

Hi
I'm having problems manually activating the report server after installation
on Windows 2000 server sp4 , SQL Server 2000 sp3 and Reporting Services sp1.
I have followed other fixes I have seen but still get the same error "The
Report Server Web service has not generated a public key"
I have done the following:
rskeymgmt -d
rsactivate -c"C:\Program Files\Microsoft SQL Server\MSSQL\Reporting
Services\ReportServer\RSReportServer.config" -t
but still get the same error. Can anyone help?
Thanks,
JezHi jez,
From your descriptions, I understood that you encounter error message "The
Report Server Web service has not generated a public key" during your
Reporting Services installation. Have I understood you? Correct me if I was
wrong.
Based on my experience, RSActivate is only used for setting up web farms.
As the error states, the problem is most likely an unrelated failure when
the web service starts. You can get a more detailed description of the
underlying problem by navigating to http://localhost/reportserver.
Please give full permissions to IUSR, IWAM, and ASPNET users on the
following key using regedt32 and reinstalled SQL Server Reporting Services
HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\Eventlog\Application
Let me know whether it works or you need more detailed steps about how to
perform these steps.
Sincerely yours,
Michael Cheng
Microsoft Online Partner Support
When responding to posts, please "Reply to Group" via your newsreader so
that others may learn and benefit from your issue.
=====================================================
This posting is provided "AS IS" with no warranties, and confers no rights.|||Cheng,
Yes you have understood this correctly.
In the past I have successfully install RS on XP but now I'm trying to
install it on Windows 2000 Server and I run into this error. I have tried
to follow your advice but have observed the following:
1) When I try and access the page reportserver I get "HTTP 500 - Internal
Server error". I then checked that the configuration pointed to version
1.1.4322 of the .NET Framework which it did.
Then I looked at the Event Viewer and the only messages in there relating to
Reporting Services where entries every 12 hours by the "Schedule and
Delivery" source recording "The ReportServer service has been activated"
2) regedit - On Windows 2000 Server I do not get a "permissions" option when
I right click the registry key as you would on XP. I have checked under the
"Local User and Groups" heading in the Computer Management console and noted
that these users belonging to the following groups:
IUSR - Guest
IWAM - Guest
ASPNET - Administrators; Guest; VS Developers; Web Applications
I then added IUSR and IWAM to the administrators group and reinstalled RS
but still get the same error.
Can you suggest what I should do next?
Thanks,
Jez
"Michael Cheng [MSFT]" <v-mingqc@.online.microsoft.com> wrote in message
news:uzEVYw0CFHA.2768@.cpmsftngxa10.phx.gbl...
> Hi jez,
> From your descriptions, I understood that you encounter error message "The
> Report Server Web service has not generated a public key" during your
> Reporting Services installation. Have I understood you? Correct me if I
> was
> wrong.
> Based on my experience, RSActivate is only used for setting up web farms.
> As the error states, the problem is most likely an unrelated failure when
> the web service starts. You can get a more detailed description of the
> underlying problem by navigating to http://localhost/reportserver.
> Please give full permissions to IUSR, IWAM, and ASPNET users on the
> following key using regedt32 and reinstalled SQL Server Reporting Services
> HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\Eventlog\Application
> Let me know whether it works or you need more detailed steps about how to
> perform these steps.
>
> Sincerely yours,
> Michael Cheng
> Microsoft Online Partner Support
> When responding to posts, please "Reply to Group" via your newsreader so
> that others may learn and benefit from your issue.
> =====================================================> This posting is provided "AS IS" with no warranties, and confers no
> rights.
>
>
>|||Hi jez,
Expand the Registery Key to
HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\Eventlog\Application
Right click "Application" in the Left Panel,
Click "Permissions..."
Add IUSR, IWAM and ASPNET full permissions explicitly
Let me know whether it works.
Sincerely yours,
Michael Cheng
Microsoft Online Partner Support
When responding to posts, please "Reply to Group" via your newsreader so
that others may learn and benefit from your issue.
=====================================================This posting is provided "AS IS" with no warranties, and confers no rights.|||Cheng,
To administer the server I'm using NetMeeting or Terminal Services and
logging on as the local Administrator but when I right click "Application" I
do not see a Permissions option. The only choices I have are:
Collapse
New
Find
Delete
Rename
Copy Key Name
Are you sure that this option is avaible under Windows 2000 Server?
If it is then it must be the properties of NetMeeting or Terminal Services
but I just don't understand that?
Thanks,
Jez
"Michael Cheng [MSFT]" <v-mingqc@.online.microsoft.com> wrote in message
news:Iwt07ORDFHA.644@.cpmsftngxa10.phx.gbl...
> Hi jez,
> Expand the Registery Key to
> HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\Eventlog\Application
> Right click "Application" in the Left Panel,
> Click "Permissions..."
> Add IUSR, IWAM and ASPNET full permissions explicitly
> Let me know whether it works.
>
> Sincerely yours,
> Michael Cheng
> Microsoft Online Partner Support
> When responding to posts, please "Reply to Group" via your newsreader so
> that others may learn and benefit from your issue.
> =====================================================> This posting is provided "AS IS" with no warranties, and confers no
> rights.
>|||Hi Jez,
Oops, I didn't realize that you are using Windows 2000
So, please follow the steps below to open Regstry Editor
- Start -> Run -> "regedt32"
- Go to
HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\Eventlog\Application
- Click Menu "Security" -> "Permissions"
Let me know whether it works this time.
Sincerely yours,
Michael Cheng
Microsoft Online Partner Support
When responding to posts, please "Reply to Group" via your newsreader so
that others may learn and benefit from your issue.
=====================================================This posting is provided "AS IS" with no warranties, and confers no rights.|||Cheng,
User error on my behalf as I was using regedit and not regedt32!!! Have set
the permissions and reinstalled RS but still get the same error on
installation that reporting services requires manual activation.
Any ideas where to look next?
Many thanks for your help,
Jez
"Michael Cheng [MSFT]" <v-mingqc@.online.microsoft.com> wrote in message
news:j6wYYTaDFHA.3152@.cpmsftngxa10.phx.gbl...
> Hi Jez,
> Oops, I didn't realize that you are using Windows 2000
> So, please follow the steps below to open Regstry Editor
> - Start -> Run -> "regedt32"
> - Go to
> HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\Eventlog\Application
> - Click Menu "Security" -> "Permissions"
> Let me know whether it works this time.
>
> Sincerely yours,
> Michael Cheng
> Microsoft Online Partner Support
> When responding to posts, please "Reply to Group" via your newsreader so
> that others may learn and benefit from your issue.
> =====================================================> This posting is provided "AS IS" with no warranties, and confers no
> rights.
>|||Cheng,
In the end I reinstalled the .Net 1.1 framework and then reinstalled RS and
it now all works!
Thanks for you help,
Jez
"jez" <jnel@.nospam.nospam> wrote in message
news:eSM45JcDFHA.3928@.TK2MSFTNGP15.phx.gbl...
> Cheng,
> User error on my behalf as I was using regedit and not regedt32!!! Have
> set the permissions and reinstalled RS but still get the same error on
> installation that reporting services requires manual activation.
> Any ideas where to look next?
> Many thanks for your help,
> Jez
> "Michael Cheng [MSFT]" <v-mingqc@.online.microsoft.com> wrote in message
> news:j6wYYTaDFHA.3152@.cpmsftngxa10.phx.gbl...
>> Hi Jez,
>> Oops, I didn't realize that you are using Windows 2000
>> So, please follow the steps below to open Regstry Editor
>> - Start -> Run -> "regedt32"
>> - Go to
>> HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\Eventlog\Application
>> - Click Menu "Security" -> "Permissions"
>> Let me know whether it works this time.
>>
>> Sincerely yours,
>> Michael Cheng
>> Microsoft Online Partner Support
>> When responding to posts, please "Reply to Group" via your newsreader so
>> that others may learn and benefit from your issue.
>> =====================================================>> This posting is provided "AS IS" with no warranties, and confers no
>> rights.
>|||Hi Jze,
Thanks for your kindly letting me know about this, it's great to hear that
it!
Based on my experience, setting the permission will do resolve this issue,
anyway, it's great to hear that it works now. If you have any questions or
concerns next time, don't hesitate to let me know. We are always here to be
of assistance!
Sincerely yours,
Michael Cheng
Microsoft Online Partner Support
When responding to posts, please "Reply to Group" via your newsreader so
that others may learn and benefit from your issue.
=====================================================Business-Critical Phone Support (BCPS) provides you with technical phone
support at no charge during critical LAN outages or "business down"
situations. This benefit is available 24 hours a day, 7 days a week to all
Microsoft technology partners in the United States and Canada.
This and other support options are available here:
BCPS:
https://partner.microsoft.com/US/technicalsupport/supportoverview/40010469
Others: https://partner.microsoft.com/US/technicalsupport/supportoverview/
If you are outside the United States, please visit our International
Support page:
http://support.microsoft.com/default.aspx?scid=%2finternational.aspx.
=====================================================This posting is provided "AS IS" with no warranties, and confers no rights.

Manipulation in the front end

Hi

I have a scenario while creating a report where I need to maintain the same number of rows for a column, even if the data grows or shrinks for that column

example

Each Scenario is grouped by ID

Scenario 1

columnA

Row1 X X

Row2 X

Row3 X

Row4 XYZ

Scenario 2

columnA

Row1 XA

Row2 XYZ

In both scenario's I need to control from front end

the number of row should remain 4

I am grouping by row field say Type

This field Type varies for each ID group

This seems to work.

1. Use a table with a group on the ID field.

2. Use four rows in the detail section

3. On the first detail row Hidden property use this expression.

=iif(RowNumber("table1_Group1")<=4,False,True)

4. On the second detail row Hidden property use this expression.

=iif(CountRows()=1,False,True)

5. On the third detail row Hidden property use this expression.

=iif(CountRows()=1 or (CountRows()=2 and RowNumber("table1_Group1")=2) ,False,True)

6. On the third detail row Hidden property use this expression.

=iif(CountRows()=1 or (Countrows()=2 and and RowNumber("table1_Group1")=2) or (Countrows()=3 and and RowNumber("table1_Group1")=3) ,False,True)

Manipulating parameters passed into a report - errors with parameters

Hi,
I've discovered a problem with repserv sp1 that I just can't see a way
around at the moment.
Basically we have a custom front end that allows the user to select
the params from either dropdown controls or textboxes. The text boxes
allow four states:
1/ All records
2/ Exact match
3/ Partial Match
4/ Starts with
The partial match is causing me the problem. Basically in the code
behind i'm prepending/appending the like clause character % to the
contents of the textbox i.e.
user enters 0123 into the textbox, the param passed into the report is
%0123%
Thats where the problem lies, repserv doesnt seem to accept that as a
valid param. It doesnt give any errors but it doesnt display the
required resultset. In the params returned to the user on the report,
it shows
23% has been passed in. The same thing happens if I type the url in
manually i.e.
http://localhost/Reportserver/MyReports/ListReport&rs:Command=Render&rs:Format=HTML4.0&rc:parameters=false&NameRefValue=%0123%&NameRefType=3
NameRefValue is declared as a string param, NameRefType is declared as
an integer param
Anyone have any ideas on this? Is it possible to manipulate the params
passed into the report before the engine actually processes them? If
this is possible I could just pass in the string without the %
characters & based on NamRefType value, add the % in the report itself
before the dataset is returned.
Cheers
SiSi wrote:
> Hi,
> I've discovered a problem with repserv sp1 that I just can't see a way
> around at the moment.
> Basically we have a custom front end that allows the user to select
> the params from either dropdown controls or textboxes. The text boxes
> allow four states:
> 1/ All records
> 2/ Exact match
> 3/ Partial Match
> 4/ Starts with
> The partial match is causing me the problem. Basically in the code
> behind i'm prepending/appending the like clause character % to the
> contents of the textbox i.e.
> user enters 0123 into the textbox, the param passed into the report is
> %0123%
>
Just read this the other day:
"NOTE Wildcards in Your SQL The filters you specify for your reports
are based on Visual Basic .Net 2003 syntax, so you'll find that the
pattern matching with the Like operator uses * as a wildcard and not %,
as you might use in SQL Like expressions."
_Hitchhiker's Guide to SQL Server 2000 Reporting Services_ by Peter
Blackburn and William R. Vaughan, Addison-Wesley 2005, p. 272.
hth
--Mike|||Thanks Mike,
I've just tried it and although the strange corruption of the
parameter is now ok, I still get incorrect results returned.
I use the % syntax in the starting with section with no problems, it
just seems to fail on integers and partial matches
Cheers anyway, it gave me a couple of ideas there!
Si
On Mon, 14 Feb 2005 07:54:53 -0600, "Mike Donnellan"
<spamspamspamandspam@.AT@.donnellanDOTcom> wrote:
>Just read this the other day:
>"NOTE Wildcards in Your SQL The filters you specify for your reports
>are based on Visual Basic .Net 2003 syntax, so you'll find that the
>pattern matching with the Like operator uses * as a wildcard and not %,
>as you might use in SQL Like expressions."
>_Hitchhiker's Guide to SQL Server 2000 Reporting Services_ by Peter
>Blackburn and William R. Vaughan, Addison-Wesley 2005, p. 272.
>hth
>--Mike|||Percent character is used to URL encode/escape other characters, so it
should itself also be encoded.
Check if this url works:
http://localhost/Reportserver/MyReports/ListReport&rs:Command=Render&rs:Format=HTML4.0&rc:parameters=false&NameRefValue=%250123%25&NameRefType=3
--
This posting is provided "AS IS" with no warranties, and confers no rights.
"Si" <no@.spam.thanks> wrote in message
news:mn4111pcl3qv3p6803i6pbstmhpch4lcge@.4ax.com...
> Hi,
> I've discovered a problem with repserv sp1 that I just can't see a way
> around at the moment.
> Basically we have a custom front end that allows the user to select
> the params from either dropdown controls or textboxes. The text boxes
> allow four states:
> 1/ All records
> 2/ Exact match
> 3/ Partial Match
> 4/ Starts with
> The partial match is causing me the problem. Basically in the code
> behind i'm prepending/appending the like clause character % to the
> contents of the textbox i.e.
> user enters 0123 into the textbox, the param passed into the report is
> %0123%
> Thats where the problem lies, repserv doesnt seem to accept that as a
> valid param. It doesnt give any errors but it doesnt display the
> required resultset. In the params returned to the user on the report,
> it shows
> 23% has been passed in. The same thing happens if I type the url in
> manually i.e.
> http://localhost/Reportserver/MyReports/ListReport&rs:Command=Render&rs:Format=HTML4.0&rc:parameters=false&NameRefValue=%0123%&NameRefType=3
> NameRefValue is declared as a string param, NameRefType is declared as
> an integer param
> Anyone have any ideas on this? Is it possible to manipulate the params
> passed into the report before the engine actually processes them? If
> this is possible I could just pass in the string without the %
> characters & based on NamRefType value, add the % in the report itself
> before the dataset is returned.
> Cheers
> Si|||Thanks Lev,
Yes that does seem to work ok. IS there a specific way I should be
encoding these characters or simply replace % with %25 ?
Cheers
Si
On Mon, 14 Feb 2005 21:16:54 -0800, "Lev Semenets [MSFT]"
<levs@.microsoft.com> wrote:
>Percent character is used to URL encode/escape other characters, so it
>should itself also be encoded.
>Check if this url works:
>http://localhost/Reportserver/MyReports/ListReport&rs:Command=Render&rs:Format=HTML4.0&rc:parameters=false&NameRefValue=%250123%25&NameRefType=3|||As a rule, I always try to limit query-string parameter values to the
actual value, and do formatting elsewhere.
Instead of passing the value %0123% via the query-string, why don't you
just pass the 0123 and add the "%" characters via an expression within
the RDL. This should completely avoid the problem you encountered with
encoding.
~Lance
http://weblogs.asp.net/lhunt/|||Thanks Lance,
Thats what I originally wanted to do but was unsure as to how to
manipulate the parameters before passing through to the stored proc.
In the end i've passed it all through as you say but direct to the
stored proc for processing & it now works fine.
I'd still be interested to know how to do it the way you mention.
Regards
Si
On 15 Feb 2005 07:02:36 -0800, "Lance" <lancehunt@.gmail.com> wrote:
>As a rule, I always try to limit query-string parameter values to the
>actual value, and do formatting elsewhere.
>Instead of passing the value %0123% via the query-string, why don't you
>just pass the 0123 and add the "%" characters via an expression within
>the RDL. This should completely avoid the problem you encountered with
>encoding.
>~Lance
>http://weblogs.asp.net/lhunt/|||I would normally recommend using the exact solution you chose, except I
wasnt sure if you were using a StoredProcedure or SQL. You definitely
should stick with your current implementation.
However, there are some cases where you can't use Stored Procedures,
such as with many ODBC connections to legacy systems. In such cases, I
recommend dynamically building your value for the LIKE expression in
the RDL.
Here are the basic steps:
1. Open "Data" tab from designer.
2. Select your DataSet from dropdown
3. Click on the "..." to go to properties.
4. Click on the Parameters tab
5. Locate the parameter in question
6. Modify the parameter value (right hand column) to use an expression.
7. Use the expression:
"="%" & Parameters!MyParam.Value & "%"
Instead of the default expression
"=Parameters!MyParam.Value"
8. Close Properties and you're ready to go!
Enjoy!
Lance Hunt
http://weblogs.asp.net/lhunt/

Manipulating and deploying report models

All, we are reviewing the ad hoc report builder in SSRS 2005. This could be a big boon to our clients. But we have to be able to do some things first. First of all when we define our datasource view we need to be able to "filter" the available data in the view prior to being "delivered" to the report builder app the client gets to manipulate. We don't currently see a way to do this. But I'm working on it.

I'm thinking we may need to go the manual manipulation route using the Reporting Service2005 web service. So in a nutshell, I need to be able to pre filter the data a client gets prior to using the ad hoc report builder, we have too many clients to create views for each of them. So I've started giving it a go.

Thanks in advance

Marvin Hoffman

here's what I have so far, and it seems to be working, but I think maybe the URL is wrong, or I'm not calling the model name correctly. I'm getting this error "Client found response content type of '', but expected 'text/xml'.
The request failed with an empty response.
"

using System;

using System.Data;

using System.Configuration;

using System.Collections;

using System.Net;

using System.Web;

using System.Web.Security;

using System.Web.UI;

using System.Web.UI.WebControls;

using System.Web.UI.WebControls.WebParts;

using System.Web.UI.HtmlControls;

using ReportServiceAPI;

public partial class ReportBuilderExample : System.Web.UI.Page

{

protected void Page_Load(object sender, EventArgs e)

{

ReportingService2005 rs = new ReportingService2005();

rs.Url = "http://servername/reportserver/ReportingService2005.asmx";

NetworkCredential nc = new NetworkCredential("username", "password");

rs.Credentials = nc;

byte[] b = rs.GetModelDefinition("modelname");

}

}

I think that model name includes path and should start with slash, i.e.

byte[] b = rs.GetModelDefinition("/modelname");

Manipulating a text box in custom code.

Hi there,

A simple question I hope. I have got a textbox on a report and I'm trying to populate it by calling a custom assembly. I know I can reference it directly in the textbox (this works) but I am trying to do this from the code block. The following code didn't work:

Protected Overrides Sub OnInit()
ReportItems!textbox2.Value = POCCustomAssembly.CustAssembly.Hello()
End Sub

The TextBox is called textbox2 and the custom assembly simply returns a string.

I get an error message "The is an error on line 1 of custom code: [BC30469] Reference to a non-shared member requires an object reference".

What am I doing wrong?

Hi,

I know you submitted this months ago...but I was wondering if you found the solution to your problem? I essentially am trying to do the exact same thing and can't figure out the error. I would appreciate any help.

|||

The error message you're getting suggests that the code wouldn't even work in the textbox value property, although the message could be wrong and misleading.

Is the method you have in your assembly "Shared" (VB) or "static" (c#)?

If not, try to make it shared/static. If that's not possible to do,

you can add objects to the report in Report > Report Properties > References > Classes

add the class name and your desired instance name for the object. Then you can use this instance name in your custom code.

|||

Thank you for the responose. Here is my code:

I basically wrote an assembly to calculate percentages and handle situations to divide by zero.

namespace Calculations

{

public class calcPercentage

{

public decimal Percentage(decimal decValueOne, decimal decValueTwo)

{

decimal decPercentage = 0;

if (decValueOne == 0 || decValueTwo == 0)

{

decPercentage = 0;

}

else

{

decPercentage = (decValueOne - decValueTwo) / decValueOne;

}

return decPercentage;

}

}

}

Then in my textbox I put:

=Calculations.CalcPercentage.Percentage(SUM(Fields!PreviousYTDExpenseAmount.Value, "Template_OutputData_Sales"), SUM(Fields!PreviousYTDExpenseAmount.Value, "Template_OutputData_CGS"))

I referenced the assembly and added it to C:\Program Files\Microsoft Visual Studio 8\Common7\IDE\PrivateAssemblies and I still get that error message so I do not know what the problem is.

Then after carefully reading your response, I realized I didn't write "static" in my method even though that's what I meant it to be. Now the program builds successfully but when I run it and try to produce the PDF file it catches on error when it tries to render it as a PDF. Now to figure out that error...which I will save for tomorrow....I must have screwed something up in the process.

Thanks so much for you help! If you have any suggestions about my next error...i'm all ears!

|||Also, when I removed the assembly from my report and reran it they worked fine...so if you have any suggestions let me know.|||

I cannot get the report to render to design mode while using a custom assembly. As soon as I remove the assembly, it works just fine. can anyone suggest what might be the problem? All my code is listed above and what steps I have already taken.

Thanks!

|||

Any custom assemblies used for SSRS must be declared SHARED for VB or STATIC for C#.

So for instance:

vb sample:

Public Class Class1

Public Shared Function CallMeIshmal() as string

Return "Call Me Ishaml"

End Function

Any other functions or subs must also be declared as Shared or Static.

You also need to either add the compiled dll to the GAC or copy it to the reportserver and reportbuilder directories.

You may also need to modify the reportserver.config file for permissions.

this link:

http://support.microsoft.com/default.aspx/pwebcst

has a list of webcasts, the first one is about using custom assemblies in SSRS>

Daryl

Manipulating a text box in custom code.

Hi there,

A simple question I hope. I have got a textbox on a report and I'm trying to populate it by calling a custom assembly. I know I can reference it directly in the textbox (this works) but I am trying to do this from the code block. The following code didn't work:

Protected Overrides Sub OnInit()
ReportItems!textbox2.Value = POCCustomAssembly.CustAssembly.Hello()
End Sub

The TextBox is called textbox2 and the custom assembly simply returns a string.

I get an error message "The is an error on line 1 of custom code: [BC30469] Reference to a non-shared member requires an object reference".

What am I doing wrong?

Hi,

I know you submitted this months ago...but I was wondering if you found the solution to your problem? I essentially am trying to do the exact same thing and can't figure out the error. I would appreciate any help.

|||

The error message you're getting suggests that the code wouldn't even work in the textbox value property, although the message could be wrong and misleading.

Is the method you have in your assembly "Shared" (VB) or "static" (c#)?

If not, try to make it shared/static. If that's not possible to do,

you can add objects to the report in Report > Report Properties > References > Classes

add the class name and your desired instance name for the object. Then you can use this instance name in your custom code.

|||

Thank you for the responose. Here is my code:

I basically wrote an assembly to calculate percentages and handle situations to divide by zero.

namespace Calculations

{

public class calcPercentage

{

public decimal Percentage(decimal decValueOne, decimal decValueTwo)

{

decimal decPercentage = 0;

if (decValueOne == 0 || decValueTwo == 0)

{

decPercentage = 0;

}

else

{

decPercentage = (decValueOne - decValueTwo) / decValueOne;

}

return decPercentage;

}

}

}

Then in my textbox I put:

=Calculations.CalcPercentage.Percentage(SUM(Fields!PreviousYTDExpenseAmount.Value, "Template_OutputData_Sales"), SUM(Fields!PreviousYTDExpenseAmount.Value, "Template_OutputData_CGS"))

I referenced the assembly and added it to C:\Program Files\Microsoft Visual Studio 8\Common7\IDE\PrivateAssemblies and I still get that error message so I do not know what the problem is.

Then after carefully reading your response, I realized I didn't write "static" in my method even though that's what I meant it to be. Now the program builds successfully but when I run it and try to produce the PDF file it catches on error when it tries to render it as a PDF. Now to figure out that error...which I will save for tomorrow....I must have screwed something up in the process.

Thanks so much for you help! If you have any suggestions about my next error...i'm all ears!

|||Also, when I removed the assembly from my report and reran it they worked fine...so if you have any suggestions let me know.|||

I cannot get the report to render to design mode while using a custom assembly. As soon as I remove the assembly, it works just fine. can anyone suggest what might be the problem? All my code is listed above and what steps I have already taken.

Thanks!

|||

Any custom assemblies used for SSRS must be declared SHARED for VB or STATIC for C#.

So for instance:

vb sample:

Public Class Class1

Public Shared Function CallMeIshmal() as string

Return "Call Me Ishaml"

End Function

Any other functions or subs must also be declared as Shared or Static.

You also need to either add the compiled dll to the GAC or copy it to the reportserver and reportbuilder directories.

You may also need to modify the reportserver.config file for permissions.

this link:

http://support.microsoft.com/default.aspx/pwebcst

has a list of webcasts, the first one is about using custom assemblies in SSRS>

Daryl

Manipulating a reports visual appearance

Hi,
we are changing at the moment our reporting system from crystal report to MS
Reporting services. Our reports are highly customizable during display. In
Crystal Reports we were using scripts into the reports to set the text align
and the column back- and foreground color by user decisions. It was also
possible to choose whether the report should be displayed in landscape or
portrait format. Now I need to give the reports with MS Reporting Services
the same abilities but I didn't find any possiblity to that yet. Because our
main application in which the reports are shown is written in good old MFC
we are using URL access to render and display the reports.
Does anyone here knows how to solve one or all of my issues described above?
Thanks in Advance
Markus
P.S. I'm a really newbie in MS Reporting Services.Style properties (like text alignment and color) can be expressions. These
expressions can depend on parameters to the report.
For example:
<TextAlign>=Parameters!TextAlign.Value</TextAlign>
Or:
<Color>=iif(Parameters!ColorScheme.Value="Rainbow","HotPink","LightBrown")</
Color>
For page orientation, you can set the page height and width via parameters
in the URL (something like rc:PageHeight=8.5... Check the documentation for
details)
My employer's lawyers require me to say:
"This posting is provided 'AS IS' with no warranties, and confers no
rights."
"Markus Heid" <markus.heid@.logasys.com> wrote in message
news:efgHn3$YEHA.1448@.TK2MSFTNGP12.phx.gbl...
> Hi,
> we are changing at the moment our reporting system from crystal report to
MS
> Reporting services. Our reports are highly customizable during display. In
> Crystal Reports we were using scripts into the reports to set the text
align
> and the column back- and foreground color by user decisions. It was also
> possible to choose whether the report should be displayed in landscape or
> portrait format. Now I need to give the reports with MS Reporting Services
> the same abilities but I didn't find any possiblity to that yet. Because
our
> main application in which the reports are shown is written in good old MFC
> we are using URL access to render and display the reports.
> Does anyone here knows how to solve one or all of my issues described
above?
> Thanks in Advance
> Markus
> P.S. I'm a really newbie in MS Reporting Services.
>|||TextAlign, BackgroundColor, and ForegroundColor can be expressions, so you
can make them user-driven using user-entered parameters. Check
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/RSCREATE/htm/rcr_creating_expressions_v1_3983.asp
for details.
Ravi Mumulla (Microsoft)
SQL Server Reporting Services
This posting is provided "AS IS" with no warranties, and confers no rights.
"Markus Heid" <markus.heid@.logasys.com> wrote in message
news:efgHn3$YEHA.1448@.TK2MSFTNGP12.phx.gbl...
> Hi,
> we are changing at the moment our reporting system from crystal report to
MS
> Reporting services. Our reports are highly customizable during display. In
> Crystal Reports we were using scripts into the reports to set the text
align
> and the column back- and foreground color by user decisions. It was also
> possible to choose whether the report should be displayed in landscape or
> portrait format. Now I need to give the reports with MS Reporting Services
> the same abilities but I didn't find any possiblity to that yet. Because
our
> main application in which the reports are shown is written in good old MFC
> we are using URL access to render and display the reports.
> Does anyone here knows how to solve one or all of my issues described
above?
> Thanks in Advance
> Markus
> P.S. I'm a really newbie in MS Reporting Services.
>|||Thank you very much. It is much easier than I though!
"Chris Hays [MSFT]" <chays@.online.microsoft.com> wrote in message
news:uetiBzFZEHA.2972@.tk2msftngp13.phx.gbl...
> Style properties (like text alignment and color) can be expressions.
These
> expressions can depend on parameters to the report.
> For example:
> <TextAlign>=Parameters!TextAlign.Value</TextAlign>
> Or:
>
<Color>=iif(Parameters!ColorScheme.Value="Rainbow","HotPink","LightBrown")</
> Color>
> For page orientation, you can set the page height and width via parameters
> in the URL (something like rc:PageHeight=8.5... Check the documentation
for
> details)
>
> --
> My employer's lawyers require me to say:
> "This posting is provided 'AS IS' with no warranties, and confers no
> rights."
> "Markus Heid" <markus.heid@.logasys.com> wrote in message
> news:efgHn3$YEHA.1448@.TK2MSFTNGP12.phx.gbl...
> > Hi,
> > we are changing at the moment our reporting system from crystal report
to
> MS
> > Reporting services. Our reports are highly customizable during display.
In
> > Crystal Reports we were using scripts into the reports to set the text
> align
> > and the column back- and foreground color by user decisions. It was also
> > possible to choose whether the report should be displayed in landscape
or
> > portrait format. Now I need to give the reports with MS Reporting
Services
> > the same abilities but I didn't find any possiblity to that yet. Because
> our
> > main application in which the reports are shown is written in good old
MFC
> > we are using URL access to render and display the reports.
> > Does anyone here knows how to solve one or all of my issues described
> above?
> >
> > Thanks in Advance
> >
> > Markus
> >
> > P.S. I'm a really newbie in MS Reporting Services.
> >
> >
>

Friday, March 9, 2012

Managing user-defined properties for report items

[crossposted to MS Community forums as well]
I have defined a user-defined property for several reports. The coding
for GetProperty/SetProperty is straightforward, but it looks as if
there is no management/admin capability through Report Manager or SQL
Management Studio for user-defined properties. Is this correct?
If that capability does not exist, Is there any plan for future
versions of RM/SqlMgtStudio to support getting/setting user-defined
properties?
Thanks!
Regards,
MichaelJust to follow up on this - I've submitted this as a product request to
Microsoft - they've basically postponed any action on it and said
they'll look at it for a future release. *shrug*
Michael

Wednesday, March 7, 2012

Managing Encryption Keys

Hello,
Just a few days ago, I extracted a copy of the encryption
key from the report server database. Since extracting the
key the diskette has become damaged. Can I run this
command a again ?
rskeymgmt -e -fa:\rsdbkey.txt -p<password>
Thanks,
DebAs long as your report server is up and running, you can run the tool as
many times as you want.
--
This posting is provided "AS IS" with no warranties, and confers no rights
"Deb" <anonymous@.discussions.microsoft.com> wrote in message
news:0d8301c49cec$126fd3b0$3501280a@.phx.gbl...
> Hello,
> Just a few days ago, I extracted a copy of the encryption
> key from the report server database. Since extracting the
> key the diskette has become damaged. Can I run this
> command a again ?
> rskeymgmt -e -fa:\rsdbkey.txt -p<password>
> Thanks,
> Deb