Showing posts with label formatting. Show all posts
Showing posts with label formatting. Show all posts

Monday, March 26, 2012

Formatting/Returning stored proc results as XML

I have a stored proc that contains a simple select statement. The select statement does not use the 'FOR XML' clause, nor can the select statement be modified to use the 'FOR XML' clause (for compatibility reasons)

Is there a way to execute the stored proc such that it returns its output in XML? I'm looking for something similar to this:

Code Snippet

exec spGetUserDetails @.ID = 1234 for xml raw

Thanks.

I found an approach that would preserve backwards compatibility while allowing me to manipulate results retrieved by a stored proc. It has to do with Table-valued user-defined functions:

Move the select statement from the stored proc into a user--defined function that returns TABLE:

Code Snippet

-- Example from Books Online

CREATE FUNCTION fn_SalesByStore (@.storeid int)
RETURNS TABLE
AS
RETURN ( SELECT * from Products where StoedID = @.storeid );

Modify the original stored proc to call this user-defined function, i.e., the stored proc wraps the UDF hence preserving backwards compatibility:

Code Snippet

-- Inside the stored proc comment the select statement and call the UDF

-- SELECT * from Products where StoedID = @.storeid -- No longer needed

select * from fn_SalesByStore (@.storeid);

Now I can call the UDF to retreive the same results that would have been retrieved by the original stroed proc, and more importantly, manipulate them as required.

Code Snippet

select * from fn_SalesByStore (@.storeid) for xml raw

Yazan

Formatting/CR in Report Manager Report Description

Is there any way to format or add a CR to the report description in report manager?

Thanks!

BobP

I'm afraid there is no way of doing this.|||

Ya know... I knew you were going to say that...

Thanks!

Formatting, pdf, and SP2

I have a strange issue that I need help resolving. Basically, the formatting
on a report that I am exporting to pdf changed when I updated my VS to the
SP2 of the Reporting Services. Here's what I am trying to do and what SP2 did:
I have a report that I created that makes address labels. I made it to where
it has three columns, and it fit 10 rows on one page. It worked great, until
I installed SP2. Now, it will only print three across the top of the page,
then move on to the next page.
So, my questions are: 1) should I reinstall pre-SP2 RS so that I can do this
report the way that I had it, or 2) does anyone know of an example that will
help me to do what I had done in the pre-SP2 installation?
Any help would be greatly appreciated!!!It sounds weird, and at least I don't know if this is either caused by the
SP2. But what you can do is redefine your report's margins

Formatting within a Textbox possible?

Hi all.
Have been coming accross this same issue more and more. I am needed to take
in some HTML and print it in a TextBox so that we can render a PDF with
custom formatting.
Up until now, I've written some custom code that replaces known HTML tags
with ascii characters or line breaks, etc. But now I am required to recognize
the BOLD and ITALICS properties of fonts. As far as I know, its imposible to
set the format of text within a textbox (in line), without setting the entire
object's format. Is that correct?
The only thing I've come up with is the idea to create X amount of textboxes
that are split up and used to dynamically change formats of text. This sounds
like a huge thing to try and achieve, and I'm not sure it would even work.
Anyone have ideas, or work arounds? There is no ASCII within a fontset that
represtents the bold version that I could use?
Any idea if RS 2005 will support inline formatting like this?
Thanks,
AndreThe Program Manager for Reporting services has said this is high on the list
of needs for Reporting Services, but this did not make it into SQL 2005, but
will be in the following release...
--
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
"Arkiliknam" <Arkiliknam@.discussions.microsoft.com> wrote in message
news:8287446E-E4DD-4F90-B08D-DCEE258F9872@.microsoft.com...
> Hi all.
> Have been coming accross this same issue more and more. I am needed to
> take
> in some HTML and print it in a TextBox so that we can render a PDF with
> custom formatting.
> Up until now, I've written some custom code that replaces known HTML tags
> with ascii characters or line breaks, etc. But now I am required to
> recognize
> the BOLD and ITALICS properties of fonts. As far as I know, its imposible
> to
> set the format of text within a textbox (in line), without setting the
> entire
> object's format. Is that correct?
> The only thing I've come up with is the idea to create X amount of
> textboxes
> that are split up and used to dynamically change formats of text. This
> sounds
> like a huge thing to try and achieve, and I'm not sure it would even work.
> Anyone have ideas, or work arounds? There is no ASCII within a fontset
> that
> represtents the bold version that I could use?
> Any idea if RS 2005 will support inline formatting like this?
> Thanks,
> Andre|||Hi Wayne, thanks for the update, however do you know if it's possible or who
should be contacted in order to try to get this pushed up...possibly a
hotfix, this is something that is used in a number of reports if not all and
the workaround that was suggested above use to work prior to SP2 which
removes leading spaces therefore does not allow you to line up your "manually
formatted text" correctly. Any help in this matter is greatly appreciated.
"Wayne Snyder" wrote:
> The Program Manager for Reporting services has said this is high on the list
> of needs for Reporting Services, but this did not make it into SQL 2005, but
> will be in the following release...
> --
> 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
> "Arkiliknam" <Arkiliknam@.discussions.microsoft.com> wrote in message
> news:8287446E-E4DD-4F90-B08D-DCEE258F9872@.microsoft.com...
> > Hi all.
> >
> > Have been coming accross this same issue more and more. I am needed to
> > take
> > in some HTML and print it in a TextBox so that we can render a PDF with
> > custom formatting.
> >
> > Up until now, I've written some custom code that replaces known HTML tags
> > with ascii characters or line breaks, etc. But now I am required to
> > recognize
> > the BOLD and ITALICS properties of fonts. As far as I know, its imposible
> > to
> > set the format of text within a textbox (in line), without setting the
> > entire
> > object's format. Is that correct?
> >
> > The only thing I've come up with is the idea to create X amount of
> > textboxes
> > that are split up and used to dynamically change formats of text. This
> > sounds
> > like a huge thing to try and achieve, and I'm not sure it would even work.
> >
> > Anyone have ideas, or work arounds? There is no ASCII within a fontset
> > that
> > represtents the bold version that I could use?
> >
> > Any idea if RS 2005 will support inline formatting like this?
> >
> > Thanks,
> > Andre
>
>|||Greetings. I have the same issue. Our developers came accross a utility that
they run within their .Net code that strips off the tags but that is not what
I need. For example, the results is one big paragraph after it strips off all
<br>, etc... Is your custom code available for our use? Thanks.
Dave.Sundell@.Fiserv.Com
"Arkiliknam" wrote:
> Hi all.
> Have been coming accross this same issue more and more. I am needed to take
> in some HTML and print it in a TextBox so that we can render a PDF with
> custom formatting.
> Up until now, I've written some custom code that replaces known HTML tags
> with ascii characters or line breaks, etc. But now I am required to recognize
> the BOLD and ITALICS properties of fonts. As far as I know, its imposible to
> set the format of text within a textbox (in line), without setting the entire
> object's format. Is that correct?
> The only thing I've come up with is the idea to create X amount of textboxes
> that are split up and used to dynamically change formats of text. This sounds
> like a huge thing to try and achieve, and I'm not sure it would even work.
> Anyone have ideas, or work arounds? There is no ASCII within a fontset that
> represtents the bold version that I could use?
> Any idea if RS 2005 will support inline formatting like this?
> Thanks,
> Andre|||all my custom code does is StringReplace on a set of predefined things... and
then strips all remaining html out... nothing fancy
"Dave Sundell" wrote:
> Greetings. I have the same issue. Our developers came accross a utility that
> they run within their .Net code that strips off the tags but that is not what
> I need. For example, the results is one big paragraph after it strips off all
> <br>, etc... Is your custom code available for our use? Thanks.
> Dave.Sundell@.Fiserv.Com
> "Arkiliknam" wrote:
> > Hi all.
> >
> > Have been coming accross this same issue more and more. I am needed to take
> > in some HTML and print it in a TextBox so that we can render a PDF with
> > custom formatting.
> >
> > Up until now, I've written some custom code that replaces known HTML tags
> > with ascii characters or line breaks, etc. But now I am required to recognize
> > the BOLD and ITALICS properties of fonts. As far as I know, its imposible to
> > set the format of text within a textbox (in line), without setting the entire
> > object's format. Is that correct?
> >
> > The only thing I've come up with is the idea to create X amount of textboxes
> > that are split up and used to dynamically change formats of text. This sounds
> > like a huge thing to try and achieve, and I'm not sure it would even work.
> >
> > Anyone have ideas, or work arounds? There is no ASCII within a fontset that
> > represtents the bold version that I could use?
> >
> > Any idea if RS 2005 will support inline formatting like this?
> >
> > Thanks,
> > Andre|||I started the same thing. I am currently working on the List tags.
Thanks.
"Arkiliknam" wrote:
> Hi all.
> Have been coming accross this same issue more and more. I am needed to take
> in some HTML and print it in a TextBox so that we can render a PDF with
> custom formatting.
> Up until now, I've written some custom code that replaces known HTML tags
> with ascii characters or line breaks, etc. But now I am required to recognize
> the BOLD and ITALICS properties of fonts. As far as I know, its imposible to
> set the format of text within a textbox (in line), without setting the entire
> object's format. Is that correct?
> The only thing I've come up with is the idea to create X amount of textboxes
> that are split up and used to dynamically change formats of text. This sounds
> like a huge thing to try and achieve, and I'm not sure it would even work.
> Anyone have ideas, or work arounds? There is no ASCII within a fontset that
> represtents the bold version that I could use?
> Any idea if RS 2005 will support inline formatting like this?
> Thanks,
> Andresql

Formatting With Multiple Columns

Hello,

Is it possible to view the contents of a report in 2 columns?

for

example, if i had a report contained a table with 1 column, could I,

rather than epanding that table column down, use some of the room to

the right of the table to "repeat" the columns in the table to show

more of the data?

In crystal reports you could achieve this effect by using the "format with multiple columns" option.

If you need a better explanation please let me know.

Thanks in advance.All I want to know is confirmation that this can't be done.

thanks

formatting with expressions trouble

I am trying to make a whole row "bolder" if a field in that row return true.
iif(field = true,"bolder","normal")
Isnt that the way it is written inside the format weight in the properties.Should be =IIF(Fields!YourField.Value = True, "Bold", "Normal")
"Benw" <Benw@.discussions.microsoft.com> wrote in message
news:476371E6-E970-4144-8D40-10873AC9530B@.microsoft.com...
>I am trying to make a whole row "bolder" if a field in that row return
>true.
> iif(field = true,"bolder","normal")
> Isnt that the way it is written inside the format weight in the
> properties.

Formatting values being passed to Sql

I have a generic page with some fields on it, I would like to be able to "groom" the values so that the data is nice and consistent.

Example: input 1 -- user types in "bob" or "BOB" or "Bob" or "JOE" etc...

the resulting record in Sql would be "Bob", "Fred", "Joe"
nice and formted out.

Any suggestions?string str1, str2 , formattedname
str1 = (name.ToUpper()).SubString(0,1)
str2 = (name.ToLower()).SubString(1)

formattedname = String.concat(str1,str2)

wher name is the string that contains the name to format. hope this helps

formatting using style sheet

can style sheet classes be implemented in report parameter section?
How to include stylesheet files?
Let me know how to do it?
ThanksVV wrote:
> can style sheet classes be implemented in report parameter section?
> How to include stylesheet files?
> Let me know how to do it?
> Thanks
http://download.microsoft.com/download/7/f/b/7fb1a251-13ad-404c-a034-10d79ddaa510/SP1Readme_EN.htm

Formatting T-SQL Performacne Boost?

Hey, I'm using PHP with MSSQL, and I'm not having any performace problems or anything, but at the same time I'm trying to optimise our system to work as best as it can as it's going to have a very heavy load once we launch.

I'm running into the age old problem with the battle between optimizing your code and still keeping it readable. I read somewhere that using whitespace in SQL queries is really bad as it take a lot more bandwidth and puts more stress on SQL Server parsing the SQL it is sent. Right now I have a query like so:-

<?php
$
selQ = 'SELECT
n.pknewsID AS newsID,
n.title,
n.full_text,
n.publish_up AS datePublished,
CONCAT(u.fname," ",u.lname) AS author,
i.loc AS img_file,
i.descr AS img_caption
FROM tblnews n
LEFT JOIN tblusers u
ON n.fkcreated_by = u.pkuserID
LEFT JOIN tblnews_images i
ON i.fknewsID = n.pknewsID
WHERE
n.pknewsID = '.$articleID.' AND
n.published = 1
LIMIT 1';
$selQ = $DB->setQuery($selQ);

/**
* $DB->setQuery basically is a preg_replace function that
* removes all the tabs in the query string, and replaces them
* with a single space.
*
*/

echo $selQ;

/**
* Printed out it looks like this :-
* SELECT
* n.pknewsID AS newsID
* n.title
* n.full_text
* n.publish_up AS datePublished
* CONCAT(u.fname," ",u.lname AS author,
* i.loc AS img_file,
* i.descr AS img_caption,
* FROM tblnews n
* LEFT JOIN tblusers u
* ON n.fkcreated_by = u.pkuserID
* LEFT JOIN tblnews_images i
* ON i.fknewsID = n.pknewsID
* WHERE
* n.pknewsID = 6 AND
* n.published = 1
* LIMIT 1

*
*/

?>

So the question I have is, does it really matter how the SQL query is sent? I mean, if I put it all on one line (which would kinda suck as it is harder for me to read then), would it speed up transactions significally?
Whitespace does take up more space and increase the network packet size, but I would prefer readability over trying to minimize whitespace. It does not adversely affect the parser.

If you are worried about packet sizes, use stored procedures since a proc name is shorter then a query or batch. Also, use parameterized queries in general since the server can efficiently cache them and avoid compiling the query. This would be a bigger performance savings in your case above.sql

Formatting totals with the table footer

Here's a scenario that i'm trying to figure out.

In the table details, i return order number, item, manufacturer, and total cost of the order.

This is what it originally looked like:

Order Number Item Manufacturer Total Order Cost

1 portable DVD Company A $100

1 portable DVD Company B $100

1 portable DVD Company C $100

2 portable DVD Company B $100

2 portable DVD Company D $100

2 portable DVD Company F $100

Grand Total $600

I can get the table to look like this after hiding duplicates:

Order Number Item Manufacturer Total Order Cost

1 portable DVD Company A $100

1 portable DVD Company B $100

1 portable DVD Company C $100

2 portable DVD Company B $100

2 portable DVD Company D $100

2 portable DVD Company F $100

Grand Total $600

The problem is the grand total. It should be $200 but it takes in the all total costs in the row because I have:

=FormatCurrency(Sum(Fields!TotalCost.Value)) in the footer and it'll sum up all.

I'm stumped here. Any suggestions are greatly appreciated.

Thanks a lot for taking the time to read.

Hiding duplicates will invariably give you wrong values especially when adding. I have had the same scenario and I found the answer here on this fourm long time back. You need to do a sum of TotalOrderCost for distinct values of OrderNumber. In the Code block (available from the Report Properties dialog), you would add:

Dim orderIDs As System.Collections.Hashtable
Dim total As Double

Function MyFunc(ByVal orderID As Object, ByVal TotalOrderCost As Obect) As Double
If (orderIDs Is Nothing) Then
orderIDs = New System.Collections.Hashtable
End If
If (orderID Is Nothing) Then
MyFunc = total
Else
If (Not orderIDs.Contains(orderID)) Then
total = total + TotalOrderCost
orderIDs.Add(orderID, TotalOrderCost)
End If
MyFunc = total
End If
End Function

3.) In your report, you add a hidden textbox with the value expression to compute the value:

=Sum(Code.MyFunc(Fields!OrderID.Value, Fields!TotalOrderCost.Value))

4.)In the footer of the table, you add a textbox with the value expression:

=Code.MyFunc(Nothing, Fields!TotalOrderCost.Value)

to return the total value.

Hope this helps....

|||

Thanks for your help.

I'll give it a try.

Formatting Total of Subtotals in Matrix

Need your help with formating color of subtotal cell.
Here is my scenario:
Matrix with are 2 row's groups:
- RowKat
- RowSubKat
and 2 column's groups:
- ColKat
- ColSubKat
I want to have my subtotal cell of RowKat, in ColKat subtotal scope
(most outer total of subtotals), to be green where it's value is > 55
Is it possible?
KamelIs it possible to define Row Subtotal in scope of Column Subtotal?|||Hi Kamel. I had a similiar scenario some time back. I could not find
anyway of doing this. the most one could do is to format the whole
subtotal, but it can't be conditionally formatted (as in differently
colored column subtotals). I had to modify the dataset-query to have
another row, and then put the conditional formatting in that row.
On Feb 7, 5:45 pm, "kamel" <kwic...@.gmail.com> wrote:
> Need your help with formating color of subtotal cell.
> Here is my scenario:
> Matrix with are 2 row's groups:
> - RowKat
> - RowSubKat
> and 2 column's groups:
> - ColKat
> - ColSubKat
> I want to have my subtotal cell of RowKat, in ColKat subtotal scope
> (most outer total of subtotals), to be green where it's value is > 55
> Is it possible?
> Kamel|||thanks, I try that way...
...but mayby somebody know the trick?|||Is there any way to format that using "InScope" function?

Formatting the Y axis of chart

How do you change the Y axis? For instance, instead of 10, I may want
it to show 10% Or instead of 1,000 I may want it to show $1000 (with
dollar sign). Basically I'm just trying to learn how to manipulate it
period.
Thanks!How a Chart's Y axis values are fomatted are controlled via the Chart Options
dialog : Y Axis tab. In your case you will need to supply a formatting string
in the Format code textbox. The information at this link will give some idea
about how to construct the string:
http://msdn2.microsoft.com/en-us/library/26etazsy.aspx.
"Malik" wrote:
> How do you change the Y axis? For instance, instead of 10, I may want
> it to show 10% Or instead of 1,000 I may want it to show $1000 (with
> dollar sign). Basically I'm just trying to learn how to manipulate it
> period.
> Thanks!
>

Formatting the numerical output

Hi All,

I need to control the output format of a request on "int" columns. For instance, if the "select" returns me a "0" (zero), I would like it to be return with 4 digit = "0000" because this results is then append to some other to built a phone-like number : +33 2121-0000-1544.
In that case, "0" is not equal to "0000"

My ASP request is in attach.

THX.

Fabrice.I found a solution ... Thank's anyway ;)

Formatting the hard drive

I was wondering if anyone played around with changing the allocation unit size when formatting the hard drive the SQL server is running on. I would think that setting it higher to account for the larger size of the database files would help, but I'm not sure.
Anyone have any thoughts?First, make sure you have a good backup and can restore from it. Stop the service before formatting. Make sure the backup is on another machine or drive.|||While you might be able to find better drive geometry parameters, I've never seen a case where that happened. Windows 2000 and later has never yet failed to pick the best geometry for me.

-PatP|||I have never played with the allocation size in Windows 2000. Theoretically, you might (stress that word, please) get a small benefit from going to an 8Kb allocation size. Then you might be able to turn off the Torn Page Detection on your database. All very theoretical, and unproven. It would probably be better to just use raw devices, instead, but you will increase your administration costs, if you do that. Enough that you would only want to do this for really mission critical stuff, and you had already proved that it gave a significant boost to performance. And by "significant", I mean enough to offset the increased admin costs.sql

Formatting the date on report

Reporting Services 2005 (SQL Server 2005 CTP V 9.00.1187.00)

I have a date field and I want to format it on a report like:

January 9, 2006

Seems to me that should be pretty simple. But I can't find the correct format code. If I look at the textbox properties and go to the format tab, there is an option for Date, but there are only 3 choices:

1/9/2006 9:47 AM

Monday, January 9, 2006

1/9/2006

If I choose custom I found that Y gives me:

January 2006

and M gives me:

January 09

This is rather frustrating. I'm sure I could modify my source SQL to get each part of the date and past it together, but I would think a good reporting tool would give me the option on how to format the date, so I don't have to always modify the SQL. I've searched for help on the different format options and I can't find any.

Any help would be very much appreciated.

Thanks.

Well, I finally figured it out, with the help of some obscure posting on another forum. I now use format:

MMMM dd"," yyyy

interesting that you have to use MMMM, not mmmm and you have to use yyyy, not YYYY.

Now I could not find this anywhere in the documentation. I'm sure it must be there, but where? Does anybody know? I'm sure I'm going to have other formatting issues and I really don't want to have to search through forum postings on the internet to find crumbs of clues to figure out things that I think should be easily found in the products documentation. I'm sure it's me. It's gotta be right in front of me, or I did something wrong when installing and I don't have the correct documentation. (but then why can't I find it at MSDN?)

|||

You can find documentation about these custom .NET format strings (e.g. MMMM and yyyy) on MSDN: http://msdn.microsoft.com/library/default.asp?url=/library/en-us/cpguide/html/cpconcustomdatetimeformatstrings.asp

-- Robert

|||Thanks!

formatting the autonumber

I am a NEWBIE at this as I am stepping up from A2k. In A2k the autonumber
used as the primary key allows formatting in which text can be used. Does M
S
SQL Server 2000 allow it as well? If so how does one go about it? Several
A2k databases are also being considered for upsizing and they have the text
in the autonumber thru the formatting.
Thanks to anyone responding.
*** JohnJohnE wrote:
> I am a NEWBIE at this as I am stepping up from A2k. In A2k the
> autonumber used as the primary key allows formatting in which text
> can be used. Does MS SQL Server 2000 allow it as well? If so how
> does one go about it? Several A2k databases are also being
> considered for upsizing and they have the text in the autonumber thru
> the formatting.
> Thanks to anyone responding.
> *** John
SQL Server does not deal with formatting. That is a client issue. Access
is a client and "server" in one. You should do the formatting in your
stored procedures, or preferably, on the client. For numbers in
particular, you could be dealing with different locales that require
different number formatting.
David Gugick
Imceda Software
www.imceda.com|||Nope, identity values are numeric values only. You might consider using a
calculated column for this:
create table test
(
testId int identity,
stringPartOfExposedKey char(10),
exposedKey as stringPartOfExposedKey + cast(testId as varchar(10)
)
or something like it.
----
Louis Davidson - drsql@.hotmail.com
SQL Server MVP
Compass Technology Management - www.compass.net
Pro SQL Server 2000 Database Design -
http://www.apress.com/book/bookDisplay.html?bID=266
Blog - http://spaces.msn.com/members/drsql/
Note: Please reply to the newsgroups only unless you are interested in
consulting services. All other replies may be ignored :)
"JohnE" <JohnE@.discussions.microsoft.com> wrote in message
news:8CE12EBA-C7D3-45B5-9CD6-9BFAB40D2E93@.microsoft.com...
>I am a NEWBIE at this as I am stepping up from A2k. In A2k the autonumber
> used as the primary key allows formatting in which text can be used. Does
> MS
> SQL Server 2000 allow it as well? If so how does one go about it?
> Several
> A2k databases are also being considered for upsizing and they have the
> text
> in the autonumber thru the formatting.
> Thanks to anyone responding.
> *** John

formatting textboxes

I am rendering a report in VS 2003 and I need to know:
1) If it's possible to combine two different text formats in one textbox?
Sample database field = Notes.description
I want to be able to manually add the word "Notes: " (which I want to be
bold) in front of the data that's in the Notes.description field (which I
want to be normal) and appear as one group of text. I tried {="Notes: " +
Fields!Description.Value} but the format applies to the entire box. The only
way I have found to work around this is to have two side by side textboxes.
Is this possible to do without the side by side textboxes? Sometimes the
text in the Notes.description field will be long, and if the textboxes are
side by side, I won't get the text to appear as though it is "wrapping"
around the "Notes:" textbox.
2) Also, when I do need to use the side by side textboxes, is it possible
to dynamically move the position of the second textbox according to the
growth and shrinkage of the first? I would like for the text in the second
box to always come immediately after the text in the first box, no matter how
long or short the leading textbox is.
Please advise if you can.
Thanks.Like you, I tried to apply different formats to text within a textbox.
I even tried embeding html code to change the format and the code and
text would show. I concluded it just can't be done.
As for q-2, dynamicly changing the textbox postion may be possible in
a list but not in tables or matrix.
Mark
On Fri, 5 May 2006 14:51:02 -0700, dataGirl
<dataGirl@.discussions.microsoft.com> wrote:
>I am rendering a report in VS 2003 and I need to know:
>1) If it's possible to combine two different text formats in one textbox?
>Sample database field = Notes.description
>I want to be able to manually add the word "Notes: " (which I want to be
>bold) in front of the data that's in the Notes.description field (which I
>want to be normal) and appear as one group of text. I tried {="Notes: " +
>Fields!Description.Value} but the format applies to the entire box. The only
>way I have found to work around this is to have two side by side textboxes.
>Is this possible to do without the side by side textboxes? Sometimes the
>text in the Notes.description field will be long, and if the textboxes are
>side by side, I won't get the text to appear as though it is "wrapping"
>around the "Notes:" textbox.
>2) Also, when I do need to use the side by side textboxes, is it possible
>to dynamically move the position of the second textbox according to the
>growth and shrinkage of the first? I would like for the text in the second
>box to always come immediately after the text in the first box, no matter how
>long or short the leading textbox is.
>Please advise if you can.
>Thanks.
>
>

formatting textbox output

I have a report whcih displays information about a servers hardware
configuration. Unfortunatley the vendors application whcih collects and
stores this information, add spcaing between vaules in the form of [-] and
[+].
I'd like to remove this in the final rendering of the report for display
purposes.
see sample output:
ComputerSystem Name[-]ADM-EX01[+]SystemType[-]X86-based
PC[+]Manufacturer[-]Compaq[+]Model[-]ProLiant ML350
G3[+]Domain[-]MARBLEHEAD[+]DomainRole[-]Member
Server[+]NumberOfProcessors[-]2[+]TotalPhysicalMemory[-]2,146,979,840
Anyone have any ideas?
Much appreciated,
RCITGUYUse expression and Replace function. Remember, you can use VB in expressions.
Victor
"RCITGuy" wrote:
> I have a report whcih displays information about a servers hardware
> configuration. Unfortunatley the vendors application whcih collects and
> stores this information, add spcaing between vaules in the form of [-] and
> [+].
> I'd like to remove this in the final rendering of the report for display
> purposes.
> see sample output:
> ComputerSystem Name[-]ADM-EX01[+]SystemType[-]X86-based
> PC[+]Manufacturer[-]Compaq[+]Model[-]ProLiant ML350
> G3[+]Domain[-]MARBLEHEAD[+]DomainRole[-]Member
> Server[+]NumberOfProcessors[-]2[+]TotalPhysicalMemory[-]2,146,979,840
> Anyone have any ideas?
> Much appreciated,
> RCITGUY

Formatting text within cell

I have multiple words within a single tablecell and need to be able to make one of them bold, not the entired contents of the tablecell, just one word within it. I can't find a way to do it.
Can anyone help me out?
Thanks.
As far as I am aware you can't differentially format text in a cell. Andrew Watt MVP - InfoPath wrote in message news:5fe80da2-bdd1-4e54-987d-31f576f8913c@.discussions.microsoft.com... >I have multiple words within a single tablecell and need to be able to
> make one of them bold, not the entired contents of the tablecell, just
> one word within it. I can't find a way to do it. >
> Can anyone help me out? >
> Thanks.|||I'm interested to see if that is possible, but all signs point to no. (maybe javascript injection or something?)sql

Formatting text within a text box

Trying to use this tool to create a form letter. I have a text box that has a paragraph of data within that paragraph I'd like to bold a word or underline a word. Is this just a gross misuse of this tool or is there a way to format text within the text box?Unfortunately, Reporting Services alone does not support richly formatted text, such as html or rtf. This is slated for a future release.

In the meantime, if you want to output to Word or Excel, you can use a 3rd party tool, OfficeWriter from SoftArtisans. OfficeWriter

lets you preserve all Excel and Word formatting.

http://officewriter.softartisans.com/officewriter-250.aspx

Ian|||I see other references to this being slated for a future release from last year. Do you know ballpark when that will be? Sometime 07 or later this year?|||

Hi Ran,

Can you tell us roughly when RTF feature would be available? In 6 months? One year? We're using Reporting Services extensively. The missing RTF feature is really painful.

Thanks!