Showing posts with label control. Show all posts
Showing posts with label control. Show all posts

Wednesday, March 28, 2012

Parameter location

With 2005, is it possible to control the position of the parameter boxes? I have 3 parameters, the first 2 lay out horizontally, the third stacks up under the first. There is plenty of room across the report for all the parameters to display in one row.

You can not change this behavior if you are using Report Manager.

If you wanted to you could write your own web app and use the Viewer Controls and display the parameters anyway you want. This does however require you write a fair amount of code for rendering parameter areas.

Monday, March 26, 2012

parameter is missing a value error

I am trying to populate a report "rdlc" file within a reportviewer control in a webpage. It works fine when is ran as a RDL file as a report services solution. Now that I created my datasource that will populate my report, I get an error "The 'beg_date' parameter is missing a value", which is a field that is specified back from the result of the procedure. Anyone know how to approach this?

Private connAs String Protected Sub Page_Load(ByVal senderAs Object,ByVal eAs System.EventArgs)Handles Me.Load conn = System.Configuration.ConfigurationManager.ConnectionStrings("ESQLConn").ConnectionString()End Sub Protected Sub Button1_Click(ByVal senderAs Object,ByVal eAs System.EventArgs)Handles Button1.Click AddReportDataset()End Sub Private Sub AddReportDataset()Dim ds1As ReportDataSource =New ReportDataSource("DataSource1", sd1())Dim ds2As ReportDataSource =New ReportDataSource("DataSource2", sd2())Dim ds3As ReportDataSource =New ReportDataSource("DataSource3", sd3())Me.rptViewer.LocalReport.DataSources.Add(ds1)Me.rptViewer.LocalReport.DataSources.Add(ds2)Me.rptViewer.LocalReport.DataSources.Add(ds3)End Sub Private Function sd1()As SqlDataSourceDim compnameAs ControlParameter =New ControlParameter compname.DefaultValue =Me.txtCompany.Text.ToStringDim begdateAs ControlParameter =New ControlParameter begdate.DefaultValue =Me.txtBegDate.Text.ToStringDim enddateAs ControlParameter =New ControlParameter enddate.DefaultValue =Me.txtEndDate.Text.ToStringDim sqldsAs New SqlDataSource sqlds.ConnectionString = conn sqlds.SelectCommand ="csp_rpt_ef0115_db" sqlds.SelectCommandType = SqlDataSourceCommandType.StoredProcedure sqlds.SelectParameters.Add(compname) sqlds.SelectParameters.Add(begdate) sqlds.SelectParameters.Add(enddate)Return sqldsEnd Function Private Function sd2()As SqlDataSourceDim sqldsAs New SqlDataSource sqlds.ConnectionString = conn sqlds.SelectCommand ="SELECT DISTINCT RTRIM(Act_Type) + ISNULL(Act_Sub_Type,'') AS Type FROM AR_Act" sqlds.SelectCommandType = SqlDataSourceCommandType.Text Return sqlds End Function Private Function sd3() As SqlDataSource Dim sqlds As New SqlDataSource sqlds.ConnectionString = conn sqlds.SelectCommand = "select Item from dbo.Pick_Items with (nolock)
where fPick_Name='asxdbLocations" sqlds.SelectCommandType = SqlDataSourceCommandType.TextReturn sqldsEnd Function

hello,

you seem to be commenting some of you code out by using ' instead of "

See your original post and look at the text in green which is commented out. Could this be the problem?

Regards

Marco

|||

use those link it might help you http://www.c-sharpcorner.com/UploadFile/asif.blog/DynamicDataGrouping08042006115320AM/DynamicDataGrouping.aspx

Parameter Date Format!

Hi,

How to control the Datetime Parameter's format, such as I need the user input Date and Time, but default, the user can only select date, but can not input the time.

How to solve it?

Thank you.

Jeffers,

You could give your users two textbox parameter for date and time entry, combine to 2 strings ( "mm/dd/yyyy" + "00:00:00" ) and use a cdate function convert to the actual datetime field.

Ham

Parameter calendar control : week start date

With Reporting Services (SQL Server 2005), if you include a parameter with a
data type of DateTime, you get a calendar control for the parameter on your
report.
How do you change the first day of the week from Sunday to Monday?
Thanks,
CraigIs your question related to calender control, because you have asked
seperately,
in fact you cant change the calender control. Ofcourse in sql server yes you
can by giving
SET DATEFIRST 1 (Monday)
SET DATEFIRST 7 (Sunday - Default)
Amarnath
"CraigHB" wrote:
> With Reporting Services (SQL Server 2005), if you include a parameter with a
> data type of DateTime, you get a calendar control for the parameter on your
> report.
> How do you change the first day of the week from Sunday to Monday?
> Thanks,
> Craig

Friday, March 23, 2012

Parameter Array with dynamic SQL

I'm building an interface that will allow the user to dynamically make from
1-5 selections from a control. The @.catList parameter is a comma-delimited
string of paramater values.
When I run it and make one selection from the control, it returns a row.
However, when I make more than one selection, no rows are returned.
Should I be using "sp_executesql" or the "exec" statements in the query?
ALTER PROCEDURE sp_GetJobsByFilter
@.catList nvarchar(100),
@.Travel varchar(50),
@.Tax varchar(50)
AS
SELECT J.Category, J.Travel, J.Tax
FROM JB_Post J
INNER JOIN JB_Cats C on J.Category = C.Category WHERE C.Category IN
(@.catList) AND J.Travel = @.Travel AND J.Tax = @.Tax
RETURN
--
seandevHere are links to a couple of articles by SQL Server MVP Erland Sommarskog
you might find interesting:
http://www.sommarskog.se/dynamic_sql.html
http://www.sommarskog.se/arrays-in-sql.html
Hope this helps.
Dan Guzman
SQL Server MVP
"sdev" <sdev@.discussions.microsoft.com> wrote in message
news:43B76434-6EC9-41D3-90D9-1ABE20A33D92@.microsoft.com...
> I'm building an interface that will allow the user to dynamically make
> from
> 1-5 selections from a control. The @.catList parameter is a
> comma-delimited
> string of paramater values.
> When I run it and make one selection from the control, it returns a row.
> However, when I make more than one selection, no rows are returned.
> Should I be using "sp_executesql" or the "exec" statements in the query?
>
> ALTER PROCEDURE sp_GetJobsByFilter
> @.catList nvarchar(100),
> @.Travel varchar(50),
> @.Tax varchar(50)
> AS
> SELECT J.Category, J.Travel, J.Tax
> FROM JB_Post J
> INNER JOIN JB_Cats C on J.Category = C.Category WHERE C.Category IN
> (@.catList) AND J.Travel = @.Travel AND J.Tax = @.Tax
>
> RETURN
> --
> seandev

Parameter area in RS2000

Hi,

Is there any way to have some kind of control over the controls in the reporting services htmlviewer parameter area.

What i really wan't to do is set a minimum width to the combobox's in that area, or a fixed width,it would be good too.

Thanks.

To keep it short and simple, no.

HTH, jens Suessmeyer.

http://www.sqlserver2005.de|||

Unlike Rs2005 there is no css file for the htmlviewer in rs2000? Or anything that resembles that?

Thank's

|||Oh sure yes there is a css file, I was not aware that you can influence the display behaviour of the controls by these files.

http://www.sqlserver2005.de|||

At least RS2005 we can. I think that in RS2000 things are a bit diferent. I can′t seem to find the file htmlviewer.css (this is the file we can tweak in RS2005 to provide some control over the display behaviour), on anything that resembles.

Thanks.

parameter area extension

How can I extend Reporting services UI to include into input
parameter's area TreeView control like to calendar picker ?
Thank you in advance,
L.Lubich,
MCSD, Web programmerneed to write your own UI, since SSRS doesn't provide facitilites for
changing the UI of the report.
Amarnath
"Lubich" wrote:
> How can I extend Reporting services UI to include into input
> parameter's area TreeView control like to calendar picker ?
> Thank you in advance,
> L.Lubich,
> MCSD, Web programmer
>

Wednesday, March 7, 2012

Pagination Control

Hi Ppl
I have alot of headache with pagination control on reporting services. Is
there a way to control how many groups/items/rows in one page?
Is there a way to show all items on 1 big page, instead of paging them? I've
try to set the report hieght, but that doesn't help at all.
If pagination must happen, then is there a way to search through all pages
for a perticular string?
Lastly is there a way to stop a group being seperated into 2 pages, (I know
you can have 1 group per page, but thats not what i want). The height of the
group are dynamic, so i can adjust the height group with the report size to
make them not break.See Inline
--
Wayne Snyder, MCDBA, SQL Server MVP
Mariner, Charlotte, NC
www.mariner-usa.com
(Please respond only to the newsgroups.)
I support the Professional Association of SQL Server (PASS) and it's
community of SQL Server professionals.
www.sqlpass.org
"gMaster" <gMaster@.discussions.microsoft.com> wrote in message
news:8EBFCE2B-F794-4550-AB86-FB3F6058A0AA@.microsoft.com...
> Hi Ppl
> I have alot of headache with pagination control on reporting services. Is
> there a way to control how many groups/items/rows in one page?
I have placed 2 examples in the downloads section for reporting services->
RDL on
http:://www.msbicentral.com
They are called PagedTableParameters (This uses a Parameter to allow dynamic
selection of the number of rows which should be placed on a page... nice...
uses Northwind.) and PageBreakSample.RDL (For Beginners, take a look at the
page breaks on each grouping. Uses the Northwind Data Source.)
> Is there a way to show all items on 1 big page, instead of paging them?
I've
> try to set the report hieght, but that doesn't help at all.
Simply do not turn on page breaks for the groups, etc... IN html you will
get one long page. when you export to PDF however you will get pages (
because you will print on to actual paper.)
> If pagination must happen, then is there a way to search through all pages
> for a perticular string?
IN html there is a Find textbox at the top with the parameters after you run
a report, simply type in the text you wish to find...
> Lastly is there a way to stop a group being seperated into 2 pages, (I
know
> you can have 1 group per page, but thats not what i want). The height of
the
> group are dynamic, so i can adjust the height group with the report size
to
> make them not break.
There is a group property called Keeptogether( I tink that is the name) turn
this property on...|||Hi,
I kinda have the same prob. I also want everything on one page. There's no
grouping / page breaking or whatever in my rdl. I Have 1 table with +/- 500
rows, and i want them all on one page. I do use the reportviewer control, so
on top, you can see "page x of x". Perhaps it's a setting there ?
Thanks
"Wayne Snyder" wrote:
> See Inline
> --
> Wayne Snyder, MCDBA, SQL Server MVP
> Mariner, Charlotte, NC
> www.mariner-usa.com
> (Please respond only to the newsgroups.)
> I support the Professional Association of SQL Server (PASS) and it's
> community of SQL Server professionals.
> www.sqlpass.org
> "gMaster" <gMaster@.discussions.microsoft.com> wrote in message
> news:8EBFCE2B-F794-4550-AB86-FB3F6058A0AA@.microsoft.com...
> > Hi Ppl
> > I have alot of headache with pagination control on reporting services. Is
> > there a way to control how many groups/items/rows in one page?
> I have placed 2 examples in the downloads section for reporting services->
> RDL on
> http:://www.msbicentral.com
> They are called PagedTableParameters (This uses a Parameter to allow dynamic
> selection of the number of rows which should be placed on a page... nice...
> uses Northwind.) and PageBreakSample.RDL (For Beginners, take a look at the
> page breaks on each grouping. Uses the Northwind Data Source.)
>
> > Is there a way to show all items on 1 big page, instead of paging them?
> I've
> > try to set the report hieght, but that doesn't help at all.
> Simply do not turn on page breaks for the groups, etc... IN html you will
> get one long page. when you export to PDF however you will get pages (
> because you will print on to actual paper.)
> >
> > If pagination must happen, then is there a way to search through all pages
> > for a perticular string?
> IN html there is a Find textbox at the top with the parameters after you run
> a report, simply type in the text you wish to find...
> >
> > Lastly is there a way to stop a group being seperated into 2 pages, (I
> know
> > you can have 1 group per page, but thats not what i want). The height of
> the
> > group are dynamic, so i can adjust the height group with the report size
> to
> > make them not break.
> There is a group property called Keeptogether( I tink that is the name) turn
> this property on...
>
>

Monday, February 20, 2012

Page number reseting

Are there any plans in RS 2005 to have greater control over page numbers with
regard to group breaks?
For example, if we have a multi-page report for each group with page numbers
"page x of y" in the page footer, we would like the page number reset on each
group break so that group 1 may have 3 pages (page 1 of 3, page 2 of 3, page
3 of 3) and group b may have 2 pages, (page 1 of 2, page 2 of 2), etc...
Thank you,You may want to check the following blog posting:
http://blogs.msdn.com/bwelcker/archive/2005/05/19/420046.aspx
It is not fully achieve what you are looking for - but at least it provides
you a way to reset the page numbers.
-- Robert
This posting is provided "AS IS" with no warranties, and confers no rights.
"Dave Sundell" <DaveSundell@.discussions.microsoft.com> wrote in message
news:0E32BF23-F294-4E2E-868C-FE5F20154A7A@.microsoft.com...
> Are there any plans in RS 2005 to have greater control over page numbers
> with
> regard to group breaks?
> For example, if we have a multi-page report for each group with page
> numbers
> "page x of y" in the page footer, we would like the page number reset on
> each
> group break so that group 1 may have 3 pages (page 1 of 3, page 2 of 3,
> page
> 3 of 3) and group b may have 2 pages, (page 1 of 2, page 2 of 2), etc...
> Thank you,
>|||Thanks for the reply. I was able to get it to work with custom code shared in
another posting. I would still like to get a reply from someone at Microsoft
on whether or not there are plans to have greater control over page number as
worded in my original post.
"Robert Bruckner [MSFT]" wrote:
> You may want to check the following blog posting:
> http://blogs.msdn.com/bwelcker/archive/2005/05/19/420046.aspx
> It is not fully achieve what you are looking for - but at least it provides
> you a way to reset the page numbers.
> -- Robert
> This posting is provided "AS IS" with no warranties, and confers no rights.
> "Dave Sundell" <DaveSundell@.discussions.microsoft.com> wrote in message
> news:0E32BF23-F294-4E2E-868C-FE5F20154A7A@.microsoft.com...
> > Are there any plans in RS 2005 to have greater control over page numbers
> > with
> > regard to group breaks?
> >
> > For example, if we have a multi-page report for each group with page
> > numbers
> > "page x of y" in the page footer, we would like the page number reset on
> > each
> > group break so that group 1 may have 3 pages (page 1 of 3, page 2 of 3,
> > page
> > 3 of 3) and group b may have 2 pages, (page 1 of 2, page 2 of 2), etc...
> >
> > Thank you,
> >
> >
>
>|||Having "document sections" within a report with independent page numbers
etc. is under consideration for inclusion in a future release. It won't be
available in the upcoming SQL Server 2005 release.
-- Robert
This posting is provided "AS IS" with no warranties, and confers no rights.
"Dave Sundell" <DaveSundell@.discussions.microsoft.com> wrote in message
news:6045763F-2BE2-496E-8654-0A07FCBCFBCB@.microsoft.com...
> Thanks for the reply. I was able to get it to work with custom code shared
> in
> another posting. I would still like to get a reply from someone at
> Microsoft
> on whether or not there are plans to have greater control over page number
> as
> worded in my original post.
> "Robert Bruckner [MSFT]" wrote:
>> You may want to check the following blog posting:
>> http://blogs.msdn.com/bwelcker/archive/2005/05/19/420046.aspx
>> It is not fully achieve what you are looking for - but at least it
>> provides
>> you a way to reset the page numbers.
>> -- Robert
>> This posting is provided "AS IS" with no warranties, and confers no
>> rights.
>> "Dave Sundell" <DaveSundell@.discussions.microsoft.com> wrote in message
>> news:0E32BF23-F294-4E2E-868C-FE5F20154A7A@.microsoft.com...
>> > Are there any plans in RS 2005 to have greater control over page
>> > numbers
>> > with
>> > regard to group breaks?
>> >
>> > For example, if we have a multi-page report for each group with page
>> > numbers
>> > "page x of y" in the page footer, we would like the page number reset
>> > on
>> > each
>> > group break so that group 1 may have 3 pages (page 1 of 3, page 2 of 3,
>> > page
>> > 3 of 3) and group b may have 2 pages, (page 1 of 2, page 2 of 2),
>> > etc...
>> >
>> > Thank you,
>> >
>> >
>>|||Thank you
"Robert Bruckner [MSFT]" wrote:
> Having "document sections" within a report with independent page numbers
> etc. is under consideration for inclusion in a future release. It won't be
> available in the upcoming SQL Server 2005 release.
>
> -- Robert
> This posting is provided "AS IS" with no warranties, and confers no rights.
> "Dave Sundell" <DaveSundell@.discussions.microsoft.com> wrote in message
> news:6045763F-2BE2-496E-8654-0A07FCBCFBCB@.microsoft.com...
> > Thanks for the reply. I was able to get it to work with custom code shared
> > in
> > another posting. I would still like to get a reply from someone at
> > Microsoft
> > on whether or not there are plans to have greater control over page number
> > as
> > worded in my original post.
> >
> > "Robert Bruckner [MSFT]" wrote:
> >
> >> You may want to check the following blog posting:
> >> http://blogs.msdn.com/bwelcker/archive/2005/05/19/420046.aspx
> >>
> >> It is not fully achieve what you are looking for - but at least it
> >> provides
> >> you a way to reset the page numbers.
> >>
> >> -- Robert
> >> This posting is provided "AS IS" with no warranties, and confers no
> >> rights.
> >>
> >> "Dave Sundell" <DaveSundell@.discussions.microsoft.com> wrote in message
> >> news:0E32BF23-F294-4E2E-868C-FE5F20154A7A@.microsoft.com...
> >> > Are there any plans in RS 2005 to have greater control over page
> >> > numbers
> >> > with
> >> > regard to group breaks?
> >> >
> >> > For example, if we have a multi-page report for each group with page
> >> > numbers
> >> > "page x of y" in the page footer, we would like the page number reset
> >> > on
> >> > each
> >> > group break so that group 1 may have 3 pages (page 1 of 3, page 2 of 3,
> >> > page
> >> > 3 of 3) and group b may have 2 pages, (page 1 of 2, page 2 of 2),
> >> > etc...
> >> >
> >> > Thank you,
> >> >
> >> >
> >>
> >>
> >>
>
>|||Dave,
I am trying to do the same thing. Can you post a reply with a link to the
thread with the code you are referring below, I can't seem to find it?
"I was able to get it to work with custom code shared in
another posting."
Thanks.
Shawn Shannon
"Dave Sundell" wrote:
> Thanks for the reply. I was able to get it to work with custom code shared in
> another posting. I would still like to get a reply from someone at Microsoft
> on whether or not there are plans to have greater control over page number as
> worded in my original post.
> "Robert Bruckner [MSFT]" wrote:
> > You may want to check the following blog posting:
> > http://blogs.msdn.com/bwelcker/archive/2005/05/19/420046.aspx
> >
> > It is not fully achieve what you are looking for - but at least it provides
> > you a way to reset the page numbers.
> >
> > -- Robert
> > This posting is provided "AS IS" with no warranties, and confers no rights.
> >
> > "Dave Sundell" <DaveSundell@.discussions.microsoft.com> wrote in message
> > news:0E32BF23-F294-4E2E-868C-FE5F20154A7A@.microsoft.com...
> > > Are there any plans in RS 2005 to have greater control over page numbers
> > > with
> > > regard to group breaks?
> > >
> > > For example, if we have a multi-page report for each group with page
> > > numbers
> > > "page x of y" in the page footer, we would like the page number reset on
> > > each
> > > group break so that group 1 may have 3 pages (page 1 of 3, page 2 of 3,
> > > page
> > > 3 of 3) and group b may have 2 pages, (page 1 of 2, page 2 of 2), etc...
> > >
> > > Thank you,
> > >
> > >
> >
> >
> >