Showing a HTML page inside SSRS report - html

I have a html file with some images in a directory. I would simply want to open a report and show the html file (including the images) inside the report. Is there a way to achieve this? Any help is greatly appreciated.
Thanks

I've found this : http://msdn.microsoft.com/en-us/library/dd207057.aspx. Tell me if it's useful? ;oP
To add HTML from a field in your dataset into a text box
1.On the Insert tab, click List. Click the design surface, and then drag to create a box that is the size you want.
The Dataset Properties dialog box opens. You can use a shared dataset or a dataset embedded in your report. For more information, click Dataset Properties Dialog Box, Query (Report Builder) or Dataset Properties Dialog Box, Query.
2.On the Insert tab, click Text Box. Click in the list, and then drag to create a box that is the size you want.
3.Drag an HTML field from your dataset into the text box. A placeholder is created for your field.
4.Right-click the placeholder, and then click Placeholder Properties.
5.On the General tab, verify that the Value box contains an expression that evaluates to the field you dropped in step 3.
6.Click HTML - Interpret HTML tags as styles. This causes the field to be evaluated as HTML.
7.Click OK.

Alright, this is what resolved the issue. I am converting the html to a image using CutyCapt and storing the image in the database as a blob. In the report I have a image control which refers to the image and this works fine.
Hope this helps.
Thanks everyone.

Related

MS Access Form from Paper Form

I have taken over an MS Access database that was created by an employee that has moved on. It appears that he has created a form in the database by importing a paper form that is used within our company. What makes me believe that he imported a paper form is the exactness of Access form in relation to the paper form.
I am not sure how to ask query this using Google nor Bing. Can someone point me in the right direction on how to do this, please? I need to do the same thing with another paper form.
Yes, June7 is right, this is a handy technique.
Scan your paper document as JPG or PNG
Create a blank Access Form, and from the Design ribbon menu, choose "Insert Image" and select your newly created JPG or PNG scan
For the image object, check the properties window and make sure the "Sizing Mode" is set to Clip (and not Stretch or Zoom)
Now re-size the Image on your form so you can see everything correctly.
Now add Text boxes on top of the image, to create fillable text fields, exactly over the same place as the ones in the scanned image behind your text boxes.
You can then make a Table with the same field names, and update the Form to use this Table as it's Data Source on the Data Tab of the Form properties.
Once you have the form working perfectly nicely,
a handy time-staving step is File -> Save Object As -> change the Form dropdown to Report
Now you have created a Report that is printable using the same data table you created earlier (and write macro or VBA code make sure you print only one record at a time if that is the normal behaviour you expect)

Locating Cells in RDLC Files

I've inherited a pretty big report. The RDLC file is over 11,200 lines of XML.
In Visual Studio, it is easy to find the relevant element for a bound value in the raw xml (simple Find operation).
Is there a way to find that cell in the visual designer?
For example, if I know the cell has a TextBox with a name SupervisionLevelName61, is there a quick and easy way to locate that in the Visual Designer view of that RDLC file? Perhaps a keyboard shortcut which gives that cell focus?
Obviously, manually searching for that cell, given the name of the Textbox, takes far too long owing to the sheer size of the RDLC file.
Thanks
I found the solution:
At the top of the properties window you have a dropdown field. Within this dropdown field you see all the the elements within your current section (in my example I'm in the document body).
When you click an item, the design-view will focus the item like in the next screenshot (see the orange bracket).

SSRS Report Builder not showing Rich Text from DB properly (Still Showing Tags)

I'm using SSRS (specifically the Report Builder) for generating some fairly basic reports from SQL Server 2012. Report Builder 3.0. When I add a field from the database that is stored as rich text (with the tags and all), it simply displays all of those tags right on the report, instead of showing the properly formatted text.
I've dug around in the tools as much as I can, and can't find a way to get that field to display in a formatted way.
Is there a function, or setting, somewhere that I'm missing that will get the text to display properly?
I don't believe it's possible to display Rich Text in an SSRS report.
You could render the Rich Text to an image file, and then display the image on the report.
However, it is possible to use HTML markup which could also be of use to you.
To add HTML from a field in your dataset into a text box
On the Insert tab, click List. Click the design surface, and then
drag to create a box that is the size you want.
The Dataset Properties dialog box opens. You can use a shared dataset or a
dataset embedded in your report. For more information, click Dataset
Properties Dialog Box, Query (Report Builder) or Dataset Properties
Dialog Box, Query.
On the Insert tab, click Text Box. Click in the list, and then drag
to create a box that is the size you want.
Drag an HTML field from your dataset into the text box. A
placeholder is created for your field.
Right-click the placeholder, and then click Placeholder Properties.
On the General tab, verify that the Value box contains an expression that evaluates to the field you dropped in step 3.
Click HTML - Interpret HTML tags as styles. This causes the field to
be evaluated as HTML.
Click OK.
Source: MSDN - Add HTML into a Report (Report Builder and SSRS)
This means you have a couple of options:
You could write a function that removes the Rich Text tags, leaving you the plain text to display.
Render the Rich Text to an image file and display the image on the report.
Instead of using Rich Text in your dataset, you start using HTML markup.
Write a function that replaces the Richt Text tags with equivalent HTML styled tags. This would be a little more work but still a valid solution.

SSRS Show Textbox on last page separately

I need to display a Textbox in the body of the report, but it has to be on a separate last page. It is actually a Word file that needs to be shown in each report, but seeing as how the only way to accomplish this is to put the file to the Report Server and then access it with a link, I decided to copy the contents of the file to a Textbox.
This and this question on SE are similar, however it is not exactly what I need.
You can achieve this by adding items with appropriate page breaks to the report.
Say I have a simple report with a table and a textbox:
The end result looks about what you'd expect:
However, we can force the textbox onto a new page by embedding it in a Rectangle and setting the Rectangle to always be preceded by a page break:
Now the report displays the textbox on the last page:
Tables themselves can also have page breaks, but since it's just text with no dataset it makes sense to me to use a Rectangle here.

How can I add a static Image Logo to a generated PDF using the SQL Server Reporting Tools Designer?

Using the Report designer in Visual Studio, I dragged and dropped a an Image control over onto the header but I'm lost as to what to do next. I need to choose the Source which gives me a choice between External, Embedded, Database and custom expression. I also have a Value property but it didn't prompt me to choose a file.
Any ideas?
On your Report Data view box (Where the report parameters, datasets etc) are shown, there is also a folder for Images.
Right click that and add the image you want.
Now when you use your image control you can choose Embedded and drop down any of the imagess included in the Images folder.
The External source is good for adding in a URL to the image and database is when the image is stored in one of your datasets.
Here is the solution if the report data view screen is missing
I found a way to do this:
If I open the report and give the focus to the report form (not one of the controls), I get a new menu item called Report at the top of Visual Studio. Open the Embedded Images... dialog and I can add a new image there. Then close that dialog and give focus to the image control that I want to have the static image. I can set its value property to one of the embedded images that I have added using the Embedded Images dialog.