SSRS - Spacing between lines in single TextBox - sql-server

I have a flat-file to be load in SSRS report. Which already contains New Line and required spacing. Like the below image:
Want to display same layout and newlines(CRLF) into SSRS. Which works fine If I use
≪Place Holder Property → Markup type = "None - Plain text only"≫
But I want to increase the spacing between Individual new lines.
So I tried below expression with the same other properties:
=REPLACE(Fields!Column1.Value, Chr(13), vbCrLf)
But It has increased the space almost double than my expectation. I also tried to convert ≪Place Holder Property≫ into ≪ HTML - Interpret HTML tags as styles ≫, but It has removed normal new lines which exist into flat-file.
I tried many existing solutions over StackOverflow but none of them are matching my requirement.
Could anyone please give it a try!
Edit-1:
Textbox.line-height is providing a facility to change spacing between lines, but not reflecting PDF output, only showing the effect on a web browser. My target output is PDF.

I am afraid that the thing you are asking about isn't possible.
“<br>” ,”<p>”,vbcrlf, font setting in textbox of any report ,the list mark , do not work with SSRS.

Related

How to format HTML in .csv for import into Enhance Dynamic Content - SFMC

with Enhanced Dynamic Content - you have to upload a .csv file and each column will turn into an EDC Map Content Block. I then create the email and drag in the Enhanced Dynamic Content Block. Each cell has to contain the proper HTML formatting as you cannot do that once it's been uploaded. I can get everything to work except muli-line text - or text with line breaks in it. I'm not sure if I'm formatting the HTML incorrectly - or if EDC does not support line breaks. In which case I would have to create a copy column for each paragraph - and that does not sound right.
Too much. I've tried adding between sentences. I've tried inserting line breaks in an Excel version of the document - then saving as .csv - this is supposed to insert some double quotes somewhere but does not.
"""""At The Hanover, we’re excited to make our latest move into the state of %%BillingState%%.
As a New England-based company with national reach, we value local, independent agents and all you do to help ensure your customers have the right protections in place.
We look forward to launching our personal lines products and services in %%BillingState%% in partnership with select independent agents."""""
The custom text for the cell above does not display - rather it displays one line text from the default row.
I ran into the same issue.
What I found worked in my instance was to add <p> Your text </P>, so that when you import it, it should respect the line breaks.

How to specify path to a report from another report?

I have SSRS on SQL Server 2012 and using report builder to build a drillthrough report. I have a table 6 rows and multiple columns. Each text box has some number in it and I should be able to click on these numbers and go to a different report. Both these reports would be under same folder on report server.
Problem:
I am able to do it until this point by following instructions at this page.
My problem is I can't use a static link as each text box should direct to it's own unique report. And when I "Specify a report:" using "Browse" button there or by providing static link, same link will be used for all the text boxes in the same column. What I need is to be able to specify path to the report which is of format /Folder_Name/<valueOfColumn1><valueOfColumn2><nameOfColumn3>;
What I tried:
So I tried to use "Expression" by clicking on "fx" button and provided link as =Globals!ReportFolderFields!column1.ValueFields!column2.ValueFields!column3.Name
Outcome:
When I try using above methods by using expression it doesn't throw any error but the text box is not clickable (doesn't turn pointer into an index finger). When I used static link by using "Browse" button, the same text box was clickable and was taking me to another report.
What am I missing here? Any pointer would be helpful.
The syntax of the field list in your formula needs a few changes. It looks like what you're really trying to do is concatenate several fields together, with a slash at several spots, in order to get the proper URL format.
Let's assume that the following elements resolve to the strings you need. (It can sometimes be helpful to verify these resolve to what you're expecting by inserting textboxes for each, individually, in a section of the report for troubleshooting; you can always remove them later.)
Globals!ReportFolder
Fields!column1.Value
Fields!column2.Value
Fields!column3.Name
If you would like to concatenate these together to use as a URL, together with a few slashes added in the correct places, you'll need to follow the SSRS conventions on operators in expressions, which results in something like this:
"/" & Globals!ReportFolder & "/" & Fields!column1.Value & Fields!column2.Value & Fields!column3.Name
as always, since this is an expression, it will need to start with an equals sign.
The expression builder doesn't insert operators for you between fields - it's not that smart...

drupal theme multiupload image field

I have one drupal content type. there is one image field, the configuration is:
content type field setting
It works fine. I can upload multi image to that content type. The only problem is that, the uploaded image is themed in table format.
uploaded results
How can i change the output format other than table? I have searched for the whole day, still can not find the answer :(
What I have seen from your given images, you have an image field in your content type. Also I am not sure that in which way you are showing all the images on the front end. This could be done in several ways. One of them is using 'Views'.
Views
So if you are collecting all the images into a view creating a page or block, then you can easily change the showing format. Like you can use the table format and also list format. And on the front end you could be able have a non-tabular format.
Tpl files
On the other hand, if you are using special node tpl then you have to format the html properly so that they won't come in a tabular format.
I will personally suggest you to use the views to avoid unnecessary problems and also you can also specify the view specific tpl file.
Cheers :) keep Drupalizing :)

Can you concatenate RTF in a Crystal Reports formula Field

I'm currently building an application that generates a separate letter for each user in the dataset. The letter contents are managed through a vb.net application and their RTF format saved to a database. When the letter is created, all the content is pulled from the database to form the letter using vb.net logic.
Once compiled it was sent as a parameter to Crystal. This worked great, setting the field text interpretation to RTF allowed proper RTF viewing.
The client has decided that they would instead like to make changes to the logic (if statements that compile the text) within Crystal.
So what I did was create a blank dataset with a bunch of columns and filled those columns with the RTF (Ordered by ID so the values will never change unless a paragraph is deleted and there is no option for this). This would allow me to build an RTF string by going {table.1} + {table.2} etc...
This is where the problem is. When building an RTF string in a Formula (Using + or &) it only displays the first RTF entry. If I switch the formula to no interpretation, I can see the RTF for the entries written out with all their content so I know it’s there. I also manually combined the RTF in the formula field and had the same issue.
StringVar output;
output := output & "{\rtf1\ansi\ansicpg1252\deff0{\fonttbl{\f0\fnil\fcharset0 Times New Roman;}}\viewkind4\uc1\pard\lang1033\f0\fs23 this is a first test }";
output := output & "{\rtf1\ansi\ansicpg1252\deff0{\fonttbl{\f0\fnil\fcharset0 Times New Roman;}}\viewkind4\uc1\pard\lang1033\f0\fs23 this is a second test \par\par}";
Output
At this point I am unsure if there is a way around this other than moving all the text to separate Formula fields within crystal itself and then combine. This would mean if they wanted to change text it would have to be done within crystal. I would rather not go this route so I’m looking for opinions and suggestions.
Crystal does support RTF however it needs to be fully formed within the first occurance of an RTF entry. In my question it shows two separate COMPLETE RTF entries. As the entries all have the RTF ID tags this will not be possible. The same issue would occur if you copied the above text into a text editor and saved it as RTF. You would only get the first line. This doesnt explain why it works as a parameter and not a formula but its likely how each are evaluated and the later (parameter could loose support in the future).
To Properly pass RTF to crystal you will need to two Rich text box objects. One being a temp box and the other being the builder box and only selecting the formatted text, not the entire RTF content. An example of this can be found at:
http://moneybaron.org/2011/08/23/vb-net-merge-rtf-documents/
Aside from some hacks such as removing the closing brace from the RTF string or rebuilding the RTF table are also avaliable however removing the brace could lead to an unsupported configuration and rebuilding can get messy really quick.
Hope this helps!!

Dynamic Hyperlink in Livecycle Form

I am trying to figure out how to make a hyperlink in a Livecycle Form which points to a URL which will change on different days that the form is rendered. For example on one day I might want the hyperlink to point to:
mywebsite/mypage?option=XXX
and on another day I want it to point to:
mywebsite/mypage?option=YYY
The XXX and YYY can be passed into the form's data pretty easily as XML, but I just don't know how to make it so that the hyperlink is changed to correspond to this.
Any suggestions?
This can be accomplished with JavaScript in LiveCycle Designer. The following script, placed on the Form's docReady event will let you dynamically change the URL of a text object.
form1::docReady - (JavaScript, client)
// If this code is running on the server, you don't want it to run any code
// that might force a relayout, or you could get stuck in an infinite loop
if (xfa.host.name != "XFAPresentationAgent") {
// You would load the URL that you want into this variable, based on
// whatever XML data is being passed into your form
var sURL = "www.stackoverflow.com"; // mywebsite/mypage?option=xxx
// URLs are encoded in XHTML. In order to change the URL, you need
// to create the right XHTML string and push it into the Text object's
// <value> node. This is a super simple XHTML shell for this purpose.
// You could add all sorts of markup to make your hyperlink look pretty
var sRichText = "<body><p>Foo</p></body>";
// Assuming you have a text object called "Text1" on the form, this
// call will push the rich text into the node. Note that this call
// will force a re-layout of the form
this.resolveNode("Text1").value.exData.loadXML(sRichText, false, true);
}
There are a couple of caveats: URLs in Acrobat are only supported in Acrobat 9.0 and later. So if someone using an older version of Acrobat opens your form, the URLs won't work.
Also, as you can see from the "if (xfa.host.name !=...)" line, this code won't run properly if the form is being generated on the server, because forcing a re-layout of a form during docReady can cause problems on certain older versions of the LiveCycle server. If you do need to run this script on the server, you should probably pick a different event then form::docReady.
I a number of complaints from users in WorkSpace that clicking links opened them in the same tab so they lost their WorkSpace form, and there's no option to change that in Designer 11. I think the solution I came up with for that would work for you too.
I made buttons with no border and no background, and in their click event have this line (in Javascript, run at client)
app.launchURL("http:/stackoverflow.com/", true);
It would be easy to add some logic to choose the right URL based on the day and it doesn't cause any form re-rendering.
In some spots where the hyperlink is in line with other text, I leave the text of the link blue and underlined but with no hyperlink, and just place the button (no background, no border, no caption) over it. Does require positioned and not flowed subforms for that to work, so depending on your layout it could get a little clunky.
Wow, just realized I am super late to the party. Well, for anyone using ES4 facing a similar problem . . .
Ended up using a 3rd party component to manipulate the PDF's hyperlinks...wish there was a better solution as this one costs about $1000.

Resources