It's time to talk about the modes of displaying report pages. It is always good when you have a choice. The WebViewerFx component supports three modes of displaying pages:

1. 10 Single Page;

2. 11 Continuous;

3. 12 Multiple Pages.

It is quite logical that you can choose between the modes. In the lower right corner of the viewer you may find buttons to control the modes for displaying pages.

13

Let's take a look at each mode. Each one is unique and has advantages.

The first mode - Single Page.

As follows from the name, in this mode, the viewer displays only one (the current) page. To switch the page, use the buttons to switch the current page. An example of displaying a report in this mode is shown in the picture below:

14

The second mode - Continuous.

Enabling this mode, the report pages are ordered as a vertical strip, regardless the zoom of the page in the report. An example of a report in this mode is shown in the picture below:

15

The third mode – Multiple Pages.

Depending on the report zoom, the viewer displays as many pages as can be fit in the viewer window. An example of this mode is shown below:

16

The next item that should be reviewed is the search panel.

This function can significantly simplify the user's life, because they do not have to spend much time searching for the necessary parts of the text in the report with your own hands, or in this case, eyes.

Use the button on the main toolbar with the image of binoculars to enable the search box in the report viewer.

All controls are gathered in one toolbar.

17

Close the search panel.

In this field you should enter a text you are searching.

The button starts searching.

If this flag is set, the search is performed taking into account capital and lowercase letters.

If this flag is set, the search is performed taking into account the integrity of words.
If you still have difficulty with using Stimulsoft Reports then you are at the right time in the right place.

It is certainly good to have a report on your computer, but it is still necessary to put a lot of seals and signatures. What do you need to do? That's right! The report must be printed. One of the easiest opportunities Stimulsoft Reports is Printing reports.

Reports printing, as well as report exports, works with already rendered report in the viewer window.

To print the report, please click the Print button on the viewer toolbar. Usually this button placed first on the toolbar. The picture below shows location of the Print button in the Standard and Ribbon interface.

m4
m5

In the pop-up dialog it is possible to set some printing options. But the content of this window depends on your operating system.

Here is an example of the most common printing dialog items.

Page range. You can choose how many report pages to send for printing: all pages; a certain number of pages or only selected ones.

You can also specify the number of copies.

It is worth noting that it is possible to print reports from Web. However, printing from the Web is different than printing from desktop applications, because this printing process has some nuances. We will consider later printing details from Web.

Now you can print your report and send it to the great ocean of business.
Whatever you do, it is always difficult to begin to begin something, especially when it comes to learning a new software product. This small series of articles is intended for novices in report generation in Stimulsoft Reports.

In these articles:

1) Review the most primitive but, at the same time, necessary features of the reporting tool.

2) We will try to avoid using intricate words and phrases.

3) Get pleasure of learning and using Stimulsoft Reports products.

Let's start with exporting reports. It would seem what tough is in it? The correct answer is - nothing. We explain brick by brick to make everything clear.

Perhaps one can be confused with the word "export" but, in our case, it is a synonym of "saving". The whole point of the report export (as some developers name exports as imports and they are right on their own way) is that we can export (save) a report in different formats. Why do we need this?

The matter is not even in quantity, but in quality and quantity, because in different situations formats of every stripe may require.

A small peculiarity - you can only export an already rendered report.

Accordingly, the export is carried out of the report viewer dialog using the Save button of the toolbar.

m6

Further in drop-down list of the context menu, you can select the document format in which you want to export the report: HTML, Text, Microsoft Excel file and many others. We can save the report, as data, the Data category exists for this. It is also possible to save the report as a picture - Image.

After selecting one of the proposed exports, a dialog with export parameters appears. There you may find individual settings of each species. You need to know only two points: the OK button and the flag "Open after export."

Then the report will be saved in the specified path. If you check the flag "Open after export", the report is opened to you in all its glory.

As promised, that's all with exports, nothing complicated. Follow our articles, you will find many interesting things.
In previous articles we have already reviewed the Stimulsoft Reports component, enabling you to perform certain actions with reports directly in the Internet. Undoubtedly, StiWebViewer is very simple and easy to use; however, it is slightly limited in some of the features. Of course, its functionality is more than enough for everyone, but if you want more, then ..., for such people, Stimulsoft Company provides a special component StiWebViewerFx.

To find StiWebViewerFx do not make any unnecessary body movements. The StiWebViewerFx component is delivered as a part of Stimulsoft Reports.Web and Stimulsoft Reports.Ultimate.

As it has become clear, it is used to display reports in a web browser. In this article we will examine how to work with the StiWebViewerFx component. Let’s get started:

First, consider what should be done for further displaying reports.

To make your report "beaming" in the Internet space, you should do the following:

1) Put the component in an HTML web page code.

webviewer in visual studio

2) Use the following code to load the report in the web Viewer:

C#
StiReport report = new StiReport();
report.Load("report.mrt");
StiWebViewerFx1.Report = report;
VB
Dim Report As StiReport = New StiReport()
Report.Load("report.mrt")
StiWebViewerFx1.Report = Report

1

After the viewer is loaded, the report is loaded using the OnGetReport event. This event, after subscribing to it, will occur every time when a viewer will need a report.

Below is a sample code using the OnGetReport event:
protected void StiWebViewerFx1_GetReport(object sender, StiWebViewerFx.StiOnGetReportEventArgs e)
{
	StiReport report = new StiReport();
	report.Load("D:\\SimpleList.mrt");
	e.Report = report;
}
The StiWebViewerFx component contains many pleasant and easy-to-use features. For example, the component automatically renders a report, even if it had not been rendered before being displayed.

If you want to appear WebViewerFx the entire area of the browser window, you should use the following code:
StiReport report = new StiReport();
report.Load("report.mrt");
StiWebViewerFx1.View(report);
Using this example, you will get displaying the report viewer to the entire area of the browser window. The items, located on the aspx page, will not be displayed.

Let us review the basic items of WebViewerFx clearly and precisely (see the picture below):

2

1) The toolbar contains the main report controls.

2) The toolbar is used to switch pages in the report, so-called "pagination."

3) The toolbar to select the displaying mode of the report.

4) The displayed report.

5) The bookmark tree of the displayed report. Switching bookmarks the user can navigate along the structural elements of the report.

6) This pane displays page thumbnails in the report. The panel is designed for quick report navigation.

Let’s see the main toolbar of WebViewerFx, and its controls:

3

1) This button runs the report printing. When clicked, the print dialog is displayed. A user can select print options there.

2) With this button you can open a previously saved report.

3) Saves the rendered report into various file formats.

4) Using these two buttons it is possible to make the tree of bookmarks visible or hidden. A small feature that is worth to know is that if there are no bookmarks in the report, the viewer will automatically hide the bookmarks tree when showing this report. If there are bookmarks in the report, the viewer will automatically display a bookmark tree.

5) Shows or hides the thumbnails bookmark of report pages.

6) The button enables a search bar in the rendered report.

7) Changes the report zoom. The report is displayed the way a page fits in the viewer window height.

8) Changes the report zoom so that the width of the viewer fits in two pages of a report.

9) Changes the report zoom according to the specified size of pages horizontally and vertically.

4

10) Changes the report zoom so as to fit as many report pages as there are selected.

Let’s review the pagination toolbar in WebViewerFx:

5

1) Sets the first report page as the current one.

2) Sets the previous report page as the current one.

3) This control displays the current page number and the number of pages in the report. It is also possible to enter the page number you want to make the current one.

6

4) Sets the next report page as the current one.

5) Sets the last report page as the current one.
This article unveils an entirely new programming environment LightSwitch, but to be more precise the interaction between LightSwitch and Stimulsoft Reports.

Microsoft Visual Studio LightSwitch is a development environment that is used to create business applications and business applications for the clouds, in a short period of time. You can create client applications for launching on a PC and browser-based web-applications. You will be able to immerse yourself in business logic, rather than in the routine process of building applications infrastructure.

Your application should be built on existing .NET technologies and platforms of Microsoft.

Three foundations which applications are based on: user interface, logic and data access, data storage.

User interface. Its main task is to provide and facilitate communication with the user. With it help data are input, visualized and edited. All interaction occurs on Microsoft Silverlight.

Logic and data access. Due to the logical layer all requests from the user are processed, as well as data security. The logic and data access is done on the WCF RIA Services and Entity Framework.

Data Storage. The information is stored using Microsoft SQL Server Express, Microsoft SQL Server or Microsoft SQL Azure.

LightSwitch also supports other data sources.

It is quite logical that Stimulsoft Reports supports LightSwitch in all its manifestations. Stimulsoft Company always aims at making your reports easier and to clothe them in the most recent achievements of the computer world.

Now, let's review an example of creating LightSwitch applications using Stimulsoft Reports.

1. Start Microsoft Visual Studio 2010 with installed Microsoft LightSwitch.

2. Select New Project (CTRL + SHIFT + N) -> LightSwitch Application.

1

3. In Solution Explorer right-click on the application, select the menu item Add Data Source.

2

4. Select Database in the dialog.

3

5. In the Connection Properties window, select the required database.

4

6. Select tables that will be used to design a report. Click Finish.

5

7. So get the table ready for use. If you need, do some changes, click the Save button and close the tab.

6

8. In Solution Explorer, right-click on the application, select the menu item Add Screen.

7

9. In the dialog that appears, select Editable Grid Screen, set Screen Data.

8

10. In the Screen editor, choose New Custom Control.

9

11. In the dialog that appears, click the Add Reference button and connect the required assemblies.

10
11

12. Then select the component StiSLDesignerControl from the Stimulsoft.Report.SLDesign.dll assembly from the list and click OK.

12

13. Select the component you added, give it a name designerControl. Then press the Write Code button and select the method Created.

13

14. Add the following code and run the project (F5):

14

15. Here is the result:

15

Create a report and click Preview.

Doing steps, described above, we add a new report, which is rendered thanks to the integration of Stimulsoft Reports into the latest development environment LightSwitch from Microsoft.

16

In addition view video techniques of using Stimulsoft Reports in LightSwitch:

How to Embed Silverlight Designer into LightSwitch
How to Embed Silverlight Viewer into LightSwitch

Now you can use LightSwitch in your reports. Thanks Stimulsoft, with each new enhancement, your reports become more functional. Stay with us!