SQL Clone
SQLServerCentral is supported by Redgate
 
Log in  ::  Register  ::  Not logged in
 
 
 


Report Templates Using Stylesheets


Report Templates Using Stylesheets

Author
Message
Adam Aspin
Adam Aspin
SSCommitted
SSCommitted (1.7K reputation)SSCommitted (1.7K reputation)SSCommitted (1.7K reputation)SSCommitted (1.7K reputation)SSCommitted (1.7K reputation)SSCommitted (1.7K reputation)SSCommitted (1.7K reputation)SSCommitted (1.7K reputation)

Group: General Forum Members
Points: 1723 Visits: 1032
Good one Barry, this alternative avoids multiple calls to the database. I use something like this when returning metadata to dynamically generated tooltips for instance - and it saves passing data to parameters and using them as well.

Adam Smile
aaron mertes
aaron mertes
Valued Member
Valued Member (69 reputation)Valued Member (69 reputation)Valued Member (69 reputation)Valued Member (69 reputation)Valued Member (69 reputation)Valued Member (69 reputation)Valued Member (69 reputation)Valued Member (69 reputation)

Group: General Forum Members
Points: 69 Visits: 1745
I just wanted to thank you for the ideas, as a fellow report writer I've run into many of the refactoring nightmares you're talking about which keep you from creating the next report that will knock your customers dead. Appreciate the ideas and techniques shared, thanks!
saveena.kitten
saveena.kitten
Forum Newbie
Forum Newbie (2 reputation)Forum Newbie (2 reputation)Forum Newbie (2 reputation)Forum Newbie (2 reputation)Forum Newbie (2 reputation)Forum Newbie (2 reputation)Forum Newbie (2 reputation)Forum Newbie (2 reputation)

Group: General Forum Members
Points: 2 Visits: 7
I may be posting this question in the wrong place, but I can't seem to find any information on changing the way the information is displayed in a report. I know, I'm not making it clear yet... Right now all of my headers are horizontal and the data in vertical columns. I want to reverse that. Have a veritcal column of headers and the corresponding data being vertical.

I've done several Internet searches, but I can't find the answer I'm looking for. Can anyone help point me in the right direction please?

Thanks from a newbie to SRSS!
noxidjkram
noxidjkram
Valued Member
Valued Member (60 reputation)Valued Member (60 reputation)Valued Member (60 reputation)Valued Member (60 reputation)Valued Member (60 reputation)Valued Member (60 reputation)Valued Member (60 reputation)Valued Member (60 reputation)

Group: General Forum Members
Points: 60 Visits: 83
You mean the text in your column header to read vertically oriented rather than horizontally? or actually transposing (or rotating 90degrees) the whole table?

M

SQL Novice - Here to learn.
blackstonem
blackstonem
SSC-Enthusiastic
SSC-Enthusiastic (113 reputation)SSC-Enthusiastic (113 reputation)SSC-Enthusiastic (113 reputation)SSC-Enthusiastic (113 reputation)SSC-Enthusiastic (113 reputation)SSC-Enthusiastic (113 reputation)SSC-Enthusiastic (113 reputation)SSC-Enthusiastic (113 reputation)

Group: General Forum Members
Points: 113 Visits: 153
This is an amazing article. We are standardizing our reports to a familiar format. But I have a question about the database entries. I am looking at somehow to control the font and size in the body of the report. But I cannot see any property to set this globally. Any suggestions on what the expression would be and the insert statements for the database table?

Let me be a little more specific. What would the expression be for setting the Font globally for the body of the report? I don't see any property where this is set.

Thanks again for your help..
noxidjkram
noxidjkram
Valued Member
Valued Member (60 reputation)Valued Member (60 reputation)Valued Member (60 reputation)Valued Member (60 reputation)Valued Member (60 reputation)Valued Member (60 reputation)Valued Member (60 reputation)Valued Member (60 reputation)

Group: General Forum Members
Points: 60 Visits: 83
As far as I know font is set per element.

If you know you are only going to use one font (as we do) then store it in a field named something like 'GlobalFont' and apply GlobalFont to each element it is required upon. I'd suggest FontSize will be different for different types of elemnt on your report, e.g. 'TableHeaderFontSize' 10, 'ReportHeaderTitleFontSize' 16. You have to make a decision as to what is useful to be databased and that will be elements that are regularly the same between your reports. I have found that storing about 20-30 properties + 20-30 other metadata items gives me an optimal advantage.

M

SQL Novice - Here to learn.
saveena.kitten
saveena.kitten
Forum Newbie
Forum Newbie (2 reputation)Forum Newbie (2 reputation)Forum Newbie (2 reputation)Forum Newbie (2 reputation)Forum Newbie (2 reputation)Forum Newbie (2 reputation)Forum Newbie (2 reputation)Forum Newbie (2 reputation)

Group: General Forum Members
Points: 2 Visits: 7
Sorry about the LOOOONNNG delay in replying to your question. I was pulled off to another project and just now am getting back to this one.

Maybe this will help. Most reports are like:
HEADER HEADER HEADER
Result Result Result

I want my report to come out looking like
HEADER Result
HEADER Result
HEADER Result


Does that make more sense?
noxidjkram
noxidjkram
Valued Member
Valued Member (60 reputation)Valued Member (60 reputation)Valued Member (60 reputation)Valued Member (60 reputation)Valued Member (60 reputation)Valued Member (60 reputation)Valued Member (60 reputation)Valued Member (60 reputation)

Group: General Forum Members
Points: 60 Visits: 83
Yes - i understand now.

If you wish to display your data in a table, then transpose your results (within your SQL Stored Procedure/Query) and send through the required 'header' as the first record for each row.
e.g.

Field1 Field2 Field3 Field4
HEADER DATA1 DATA2 DATA3

Make sense?

Its also possible you could use a matrix to good effect, although I tend to find their display flexibility reduces their display capability when it comes to formatting.

M

SQL Novice - Here to learn.
Go


Permissions

You can't post new topics.
You can't post topic replies.
You can't post new polls.
You can't post replies to polls.
You can't edit your own topics.
You can't delete your own topics.
You can't edit other topics.
You can't delete other topics.
You can't edit your own posts.
You can't edit other posts.
You can't delete your own posts.
You can't delete other posts.
You can't post events.
You can't edit your own events.
You can't edit other events.
You can't delete your own events.
You can't delete other events.
You can't send private messages.
You can't send emails.
You can read topics.
You can't vote in polls.
You can't upload attachments.
You can download attachments.
You can't post HTML code.
You can't edit HTML code.
You can't post IFCode.
You can't post JavaScript.
You can post emoticons.
You can't post or upload images.

Select a forum

































































































































































SQLServerCentral


Search