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


To Print the Text continously in word file Using SSRS 2008


To Print the Text continously in word file Using SSRS 2008

Author
Message
avdhut.k
avdhut.k
SSChasing Mays
SSChasing Mays (621 reputation)SSChasing Mays (621 reputation)SSChasing Mays (621 reputation)SSChasing Mays (621 reputation)SSChasing Mays (621 reputation)SSChasing Mays (621 reputation)SSChasing Mays (621 reputation)SSChasing Mays (621 reputation)

Group: General Forum Members
Points: 621 Visits: 266
Hi,
I want to print the Address on letter,which exported in Word format using SSRS 2008.


CorrAdd1 CorrAdd2 CorrArea CorrCity CorrState CorrCountry
NULL JAYAFHREE 75 9820077455WORLISEAFACE MUMBAI MAHARASHTRA INDIA

I want to print

Address as

CorrAdd1,
CorrAdd2,
CorrArea + CorrCity + CorrCountry

But problem is this are prints in three lines.
When if any one line is empty then it should be continued by next field.
I don'tt want to leave any blank line in adress.

Please help me as it is urgent !
Thanks in Advance.
Daniel Bowlin
Daniel Bowlin
SSCertifiable
SSCertifiable (7.8K reputation)SSCertifiable (7.8K reputation)SSCertifiable (7.8K reputation)SSCertifiable (7.8K reputation)SSCertifiable (7.8K reputation)SSCertifiable (7.8K reputation)SSCertifiable (7.8K reputation)SSCertifiable (7.8K reputation)

Group: General Forum Members
Points: 7796 Visits: 2629
I would use an expression to create the output you want. In this example this checks for a value in Fields!CorrAdd2.Value. If there is something there, then add it on the next row after the carriage return/line feed, then add another carriage return/line feed then the area, city and country. If there is no value there then add a carriage return/line feed then the area, city & country.

=Fields!CorrAdd1.Value + IIF(Len(Fields!CorrAdd2.Value > 0, VbCRLF + Fields!CorrAdd2.Value + VbCRLF, VbCRLF) + Fields!CorrArea.value + " " + Fields!CorrCity.value + Fields!CorrCountry.value
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