Thursday, March 29, 2012
Can I Insert Line Numbers?
assigned to each row. For example, the values 1-99 below would be computed at
report run time:
1 Transaction-A
2 Transaction-B
:
99 Transaction-x
I thought I could solve this by using a global variable and function within
the report code block such as:
Private Dim itemCount As Integer
Public Function GetCount() As Integer
itemCount += 1
Return itemCount
End Function
And then create a calculated field (Called LineNumber) that calls the
function:
=Code.GetCount()
But what I get is a seemingly random assignment of line numbers; I assume
due to ReptSvcs resolving the rows in a non-linear fashion.
Any thoughts on how I can get ordered line numbers?Try using static variables in the code
>--Original Message--
>Hi. We are creating long reports that need to have unique
reference numbers
>assigned to each row. For example, the values 1-99 below
would be computed at
>report run time:
>1 Transaction-A
>2 Transaction-B
> :
>99 Transaction-x
>I thought I could solve this by using a global variable
and function within
>the report code block such as:
>Private Dim itemCount As Integer
>Public Function GetCount() As Integer
> itemCount += 1
> Return itemCount
>End Function
>And then create a calculated field (Called LineNumber)
that calls the
>function:
>=Code.GetCount()
>But what I get is a seemingly random assignment of line
numbers; I assume
>due to ReptSvcs resolving the rows in a non-linear
fashion.
>Any thoughts on how I can get ordered line numbers?
>
>
>.
>|||The problem with statics in embedded code is that they are shared
among all instances of the report that are running. If two of the
reports using the static execute at the same time the results could
interleave.
--
Scott
http://www.OdeToCode.com
On Sat, 4 Sep 2004 11:51:17 -0700, "Ravi" <ravikantkv@.rediffmail.com>
wrote:
>Try using static variables in the code|||Thanks for the tips, but I think I got it working.
I used the same code as I mentioned below, but added an "ORDER BY"
quailifier to the dataset to sort the data in the same sequence as the report
displayed. This gave me sequentual numbers.
"Scott Allen" wrote:
> The problem with statics in embedded code is that they are shared
> among all instances of the report that are running. If two of the
> reports using the static execute at the same time the results could
> interleave.
> --
> Scott
> http://www.OdeToCode.com
> On Sat, 4 Sep 2004 11:51:17 -0700, "Ravi" <ravikantkv@.rediffmail.com>
> wrote:
> >Try using static variables in the code
>sql
Can I hide data fields in a Chart?
Field #2 a line. I would like to allow the user to choose via a parameter if
the line is displayed.
I tried the following expression for the Field:
=iif(Parameters!ShowTrend.Value=True,Fields!Trend.Value,False)
But rather than hiding the line, it makes all values zero with the line
still showing.
Is there some way to hide the line?
Thanks.You may want to try:
=iif(Parameters!ShowTrend.Value=True, Fields!Trend.Value, Nothing)
--
This posting is provided "AS IS" with no warranties, and confers no rights.
"bill" <bill@.discussions.microsoft.com> wrote in message
news:745AF66D-CC9D-4D91-845C-FD4227C08E59@.microsoft.com...
> I have a Bar/Line Chart with two data fields. Field #1 is displayed as a
bar,
> Field #2 a line. I would like to allow the user to choose via a parameter
if
> the line is displayed.
> I tried the following expression for the Field:
> =iif(Parameters!ShowTrend.Value=True,Fields!Trend.Value,False)
> But rather than hiding the line, it makes all values zero with the line
> still showing.
> Is there some way to hide the line?
> Thanks.
>|||Show/hide is not supported in charts.
But why don't you try a dynamic series grouping and filter those series
groupings that you don't want show (the Grouping&Sorting dialog for every
chart grouping has a filter tab where you can define expressions to filter
data). This should also take care of the chart legend issue.
--
This posting is provided "AS IS" with no warranties, and confers no rights.
"bill" <bill@.discussions.microsoft.com> wrote in message
news:6B4516F9-D415-4522-838F-BCBAF0789F30@.microsoft.com...
> Thanks for the reply, but "Nothing" gives me the same results as "False"
...
> the line shows-up on bottom with zero values.
> I can get the effect of hiding (sort of) by setting color to transparent.
> But the data series still displays in the legend box.
> Is there no way to dynamically let the user specify what data elements
they
> want to show/hide on a chart?
> Bill
> "Robert Bruckner [MSFT]" wrote:
> > You may want to try:
> > =iif(Parameters!ShowTrend.Value=True, Fields!Trend.Value, Nothing)
> >
> > --
> > This posting is provided "AS IS" with no warranties, and confers no
rights.
> >
> >
> > "bill" <bill@.discussions.microsoft.com> wrote in message
> > news:745AF66D-CC9D-4D91-845C-FD4227C08E59@.microsoft.com...
> > > I have a Bar/Line Chart with two data fields. Field #1 is displayed as
a
> > bar,
> > > Field #2 a line. I would like to allow the user to choose via a
parameter
> > if
> > > the line is displayed.
> > >
> > > I tried the following expression for the Field:
> > >
> > > =iif(Parameters!ShowTrend.Value=True,Fields!Trend.Value,False)
> > >
> > > But rather than hiding the line, it makes all values zero with the
line
> > > still showing.
> > >
> > > Is there some way to hide the line?
> > >
> > > Thanks.
> > >
> > >
> >
> >
> >
Sunday, March 25, 2012
Can I export a report as PDF files within a DOS batch file?
Is there any command line tool that helps me to export a report into a PDF
file?
I need to do that within a batch file. I am trying to avoid C# coding to do
that.
Any help would be appreciated,
Maxyes, rs.exe should do what you are trying to accomplish.
--
Shaun Beane, MCT, MCDST, MCDBA
dbageek.blogspot.com
"Maxwell2006" <alanalan@.newsgroup.nospam> wrote in message
news:eU8dFLcXGHA.3724@.TK2MSFTNGP02.phx.gbl...
> Hi,
> Is there any command line tool that helps me to export a report into a PDF
> file?
> I need to do that within a batch file. I am trying to avoid C# coding to
> do that.
> Any help would be appreciated,
> Max
>|||Great! Do you know any link to a sample that shows me how to export and save
the report into a PDF file?
"Shaun Beane" <shaun.beane@.gmail.nojunk.com> wrote in message
news:OhIWIZcXGHA.4148@.TK2MSFTNGP03.phx.gbl...
> yes, rs.exe should do what you are trying to accomplish.
> --
> Shaun Beane, MCT, MCDST, MCDBA
> dbageek.blogspot.com
> "Maxwell2006" <alanalan@.newsgroup.nospam> wrote in message
> news:eU8dFLcXGHA.3724@.TK2MSFTNGP02.phx.gbl...
>> Hi,
>> Is there any command line tool that helps me to export a report into a
>> PDF file?
>> I need to do that within a batch file. I am trying to avoid C# coding to
>> do that.
>> Any help would be appreciated,
>> Max
>>
>|||Hi Maxwell,
You can use the RS.exe Utility to export the report to the PDF file.
RS.exe will read a script file which should be written by VB.NET.
Here is a article posted some sample code, you may try to refer.
http://groups.google.com/group/microsoft.public.sqlserver.reportingsvcs/brow
se_frm/thread/e608c8fecc95d08/8a2dcc6ca82bf3fc?tvc=1&q=RS+utility+export+pdf
&hl=zh-CN#8a2dcc6ca82bf3fc
Hope this will be helpful.
Sincerely,
Wei Lu
Microsoft Online Community 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.
Thursday, March 22, 2012
Can I define global or static variables?
I need to number each "Detail" line, but I can't use the "Record Number" of "Special Fields" because each database record can create more than one detail line. I try to solve this problem using a global or static variable, but if isn't possible, what do you suggest me?
Thanks and sorry for my bad English.I've just done this very thing in a report I've been working on. The method I used is dependent on using a group header along with the details section.
1) Create a formula field (I called mine CounterReset) and use the following formula:
WhilePrintingRecords;
Global numbervar GroupRecCount;
GroupRecCount := 0;
2) Add this field to your group header. You can supress it if you don't want it to show on your report.
3) Crate another formula field (I called mine CountOfRecordsInGroup) and paste the following formula:
WhilePrintingRecords;
Global numbervar GroupRecCount;
GroupRecCount := GroupRecCount + 1;
4) Use this field in your details section as the line number. It will reset to zero when your groupnumber advances and *sounds* like what you are looking for from the description of your problem.
Hope this helps!
Z|||Thank you very much zilonox!! I've been asking this for several days and nobody could help me.
Greetings,
Christian J.
Tuesday, March 20, 2012
Can I connect to SQL Server via PPPoE?
If SQL Server was located in internet and i use a PPPoE (ADSL) line to
connect to internet, can I connect to SQL Server via PPPoE?
Thanks a lot.
Hi
Yes. As long as you use the IP address, your routing is correct and you have
the correct ports open. The default port for SQL Server is 1433.
Regards
Mike Epprecht, Microsoft SQL Server MVP
Zurich, Switzerland
IM: mike@.epprecht.net
MVP Program: http://www.microsoft.com/mvp
Blog: http://www.msmvps.com/epprecht/
<stevegao2003@.163.com> wrote in message
news:1135330289.992162.176130@.g43g2000cwa.googlegr oups.com...
> I am a fresh guy for networking and here is a question seeking help.
> If SQL Server was located in internet and i use a PPPoE (ADSL) line to
> connect to internet, can I connect to SQL Server via PPPoE?
> Thanks a lot.
>
|||Thanks.
Mike Epprecht (SQL MVP) wrote:[vbcol=seagreen]
> Hi
> Yes. As long as you use the IP address, your routing is correct and you have
> the correct ports open. The default port for SQL Server is 1433.
> Regards
> --
> Mike Epprecht, Microsoft SQL Server MVP
> Zurich, Switzerland
> IM: mike@.epprecht.net
> MVP Program: http://www.microsoft.com/mvp
> Blog: http://www.msmvps.com/epprecht/
> <stevegao2003@.163.com> wrote in message
> news:1135330289.992162.176130@.g43g2000cwa.googlegr oups.com...
Can I connect to SQL Server via PPPoE?
If SQL Server was located in internet and i use a PPPoE (ADSL) line to
connect to internet, can I connect to SQL Server via PPPoE?
Thanks a lot.Hi
Yes. As long as you use the IP address, your routing is correct and you have
the correct ports open. The default port for SQL Server is 1433.
Regards
--
Mike Epprecht, Microsoft SQL Server MVP
Zurich, Switzerland
IM: mike@.epprecht.net
MVP Program: http://www.microsoft.com/mvp
Blog: http://www.msmvps.com/epprecht/
<stevegao2003@.163.com> wrote in message
news:1135330289.992162.176130@.g43g2000cwa.googlegroups.com...
> I am a fresh guy for networking and here is a question seeking help.
> If SQL Server was located in internet and i use a PPPoE (ADSL) line to
> connect to internet, can I connect to SQL Server via PPPoE?
> Thanks a lot.
>|||Thanks.
Mike Epprecht (SQL MVP) wrote:
> Hi
> Yes. As long as you use the IP address, your routing is correct and you have
> the correct ports open. The default port for SQL Server is 1433.
> Regards
> --
> Mike Epprecht, Microsoft SQL Server MVP
> Zurich, Switzerland
> IM: mike@.epprecht.net
> MVP Program: http://www.microsoft.com/mvp
> Blog: http://www.msmvps.com/epprecht/
> <stevegao2003@.163.com> wrote in message
> news:1135330289.992162.176130@.g43g2000cwa.googlegroups.com...
> >
> > I am a fresh guy for networking and here is a question seeking help.
> >
> > If SQL Server was located in internet and i use a PPPoE (ADSL) line to
> > connect to internet, can I connect to SQL Server via PPPoE?
> >
> > Thanks a lot.
> >
Can I connect to SQL Server via PPPoE?
If SQL Server was located in internet and i use a PPPoE (ADSL) line to
connect to internet, can I connect to SQL Server via PPPoE?
Thanks a lot.Hi
Yes. As long as you use the IP address, your routing is correct and you have
the correct ports open. The default port for SQL Server is 1433.
Regards
--
Mike Epprecht, Microsoft SQL Server MVP
Zurich, Switzerland
IM: mike@.epprecht.net
MVP Program: http://www.microsoft.com/mvp
Blog: http://www.msmvps.com/epprecht/
<stevegao2003@.163.com> wrote in message
news:1135330289.992162.176130@.g43g2000cwa.googlegroups.com...
> I am a fresh guy for networking and here is a question seeking help.
> If SQL Server was located in internet and i use a PPPoE (ADSL) line to
> connect to internet, can I connect to SQL Server via PPPoE?
> Thanks a lot.
>|||Thanks.
Mike Epprecht (SQL MVP) wrote:[vbcol=seagreen]
> Hi
> Yes. As long as you use the IP address, your routing is correct and you ha
ve
> the correct ports open. The default port for SQL Server is 1433.
> Regards
> --
> Mike Epprecht, Microsoft SQL Server MVP
> Zurich, Switzerland
> IM: mike@.epprecht.net
> MVP Program: http://www.microsoft.com/mvp
> Blog: http://www.msmvps.com/epprecht/
> <stevegao2003@.163.com> wrote in message
> news:1135330289.992162.176130@.g43g2000cwa.googlegroups.com...
Sunday, March 11, 2012
Can fields span TableGroups independantly of columns
Hi,
I'm trying to add a heading to my report using Table and TableGroups. But I don't want my group headings to line up with the detail rows. This seems like a common requirement in my mind but I can't figure out how to do it.
See made up example of a report below:
Person Name Address <-Report header
Area: A12 3BC, Newtown, Someplace <-TableGroup header
Mr Some Body 1 The Street <-Detail rows
Mrs Anne Other 2 The Street
Area: B23 4CD, Oldtown, Someplace <-TableGroup header
Mr Ran Dom 3 The Avenue <-Detail rows
So the TableGroup displays Area which is grouped by Post code, city etc.
The detail rows displays individual people and their street address.
NOTE: The Area fields do not line up with the Person fields in fact they overlap how can I do this in SSRS?
Thanks in advance for your help,
Mike G
I've found out how to do this now...
You need to have a single column in the table that spans the whole width of the report, (as opposed to having one column in the table control for each field)
Then add rectangle controls to each of the cells (Report header, table group headers and details etc.)
Then you can add textbox controls onto the rectangle controls and put them where you like within the cell.
It's a shame you have to do it this way because you loose the nice feature that lines up the details columns with the labels you've added in the report heading.
Hope that all makes sense, it's difficult to explain graphical layout issues in text!
-MIke G
|||have you tried the list control?
Can fields span TableGroups independantly of columns
Hi,
I'm trying to add a heading to my report using Table and TableGroups. But I don't want my group headings to line up with the detail rows. This seems like a common requirement in my mind but I can't figure out how to do it.
See made up example of a report below:
Person Name Address <-Report header
Area: A12 3BC, Newtown, Someplace <-TableGroup header
Mr Some Body 1 The Street <-Detail rows
Mrs Anne Other 2 The Street
Area: B23 4CD, Oldtown, Someplace <-TableGroup header
Mr Ran Dom 3 The Avenue <-Detail rows
So the TableGroup displays Area which is grouped by Post code, city etc.
The detail rows displays individual people and their street address.
NOTE: The Area fields do not line up with the Person fields in fact they overlap how can I do this in SSRS?
Thanks in advance for your help,
Mike G
I've found out how to do this now...
You need to have a single column in the table that spans the whole width of the report, (as opposed to having one column in the table control for each field)
Then add rectangle controls to each of the cells (Report header, table group headers and details etc.)
Then you can add textbox controls onto the rectangle controls and put them where you like within the cell.
It's a shame you have to do it this way because you loose the nice feature that lines up the details columns with the labels you've added in the report heading.
Hope that all makes sense, it's difficult to explain graphical layout issues in text!
-MIke G
|||have you tried the list control?
Can fields span TableGroups independantly of columns
Hi,
I'm trying to add a heading to my report using Table and TableGroups. But I don't want my group headings to line up with the detail rows. This seems like a common requirement in my mind but I can't figure out how to do it.
See made up example of a report below:
Person Name Address <-Report header
Area: A12 3BC, Newtown, Someplace <-TableGroup header
Mr Some Body 1 The Street <-Detail rows
Mrs Anne Other 2 The Street
Area: B23 4CD, Oldtown, Someplace <-TableGroup header
Mr Ran Dom 3 The Avenue <-Detail rows
So the TableGroup displays Area which is grouped by Post code, city etc.
The detail rows displays individual people and their street address.
NOTE: The Area fields do not line up with the Person fields in fact they overlap how can I do this in SSRS?
Thanks in advance for your help,
Mike G
I've found out how to do this now...
You need to have a single column in the table that spans the whole width of the report, (as opposed to having one column in the table control for each field)
Then add rectangle controls to each of the cells (Report header, table group headers and details etc.)
Then you can add textbox controls onto the rectangle controls and put them where you like within the cell.
It's a shame you have to do it this way because you loose the nice feature that lines up the details columns with the labels you've added in the report heading.
Hope that all makes sense, it's difficult to explain graphical layout issues in text!
-MIke G
|||have you tried the list control?Wednesday, March 7, 2012
Can chart be transparent
but with transparent background so I can see the data on both. Please point
me to some resource if it is possible.
Thanks!Yes, you can make the chart area and the plot area transparent. In report
designer, right-click on the chart to open the chart properties dialog.
Click on the "Chart Area Style" or "Plot Area Style" button and in the new
popup style properties dialog click on the Fill tab and type Transparent as
fill color.
--
This posting is provided "AS IS" with no warranties, and confers no rights.
"vibs" <vibs@.discussions.microsoft.com> wrote in message
news:03988C98-A0DC-4AEE-985E-0744566167A3@.microsoft.com...
> I want to put two charts, candle stick and line. Line on top of
candlechart
> but with transparent background so I can see the data on both. Please
point
> me to some resource if it is possible.
> Thanks!