Change properties of the Report Viewer dot - matrix before display

Stimulsoft Reports.NET discussion
Post Reply
Milton Guevara
Posts: 53
Joined: Thu Aug 21, 2008 9:28 pm
Location: Peru

Change properties of the Report Viewer dot - matrix before display

Post by Milton Guevara »

Hello
How can i change the properties of the Report Viewer dot - matrix before the report is displayed:
Kill spaces lines = false "
Cut long lines = true "
"border type = single" ... etc


Thank you

Milton
Vital
Posts: 1278
Joined: Fri Jun 09, 2006 4:04 am

Change properties of the Report Viewer dot - matrix before display

Post by Vital »

Hello,

You can use following code:

Code: Select all

StiSettings.Load();			
			StiSettings.Set("Viewer", "groupBoxBorderType",		false);
			StiSettings.Set("Viewer", "groupBoxEncoding",		false);
			StiSettings.Set("Viewer", "groupBoxRefresh",		false);
			StiSettings.Set("Viewer", "groupBoxSettings",		false);
			StiSettings.Set("Viewer", "groupBoxZoom",			false);

			StiSettings.Set("Viewer", "CutLongLines",			false);
			StiSettings.Set("Viewer", "DrawBorder",			false);
			StiSettings.Set("Viewer", "KillSpaceLines",			false);
			StiSettings.Set("Viewer", "KillSpaceGraphLines",	false);
			StiSettings.Set("Viewer", "PutFeedPageCode",		false);
			StiSettings.Set("Viewer", "Simple",				false);
			StiSettings.Set("Viewer", "UnicodeSingle",			false);
			StiSettings.Set("Viewer", "UnicodeDouble",			false);
			StiSettings.Set("Viewer", "AutoRefresh",			false);

			StiSettings.Set("Viewer", "ZoomX",				false);
			StiSettings.Set("Viewer", "ZoomY",				false);
			StiSettings.Set("Viewer", "Encoding",				0);

			StiSettings.Save();
Thank you.
Milton Guevara
Posts: 53
Joined: Thu Aug 21, 2008 9:28 pm
Location: Peru

Change properties of the Report Viewer dot - matrix before display

Post by Milton Guevara »

Hello vital
i have made changes, but do not affect the viewer. There is something i this missing?....
i'am using the following code:

Private Sub Imprimir()
Dim report As New StiReport
Dim facturaDataset As New DataSet
report.Load(My.Application.Info.DirectoryPath & "\Reportes\Formatos\Boleta.mrt")
report.RegData(facturaDataset)
StiSettings.Load()
StiSettings.Set("Viewer", "KillSpaceLines", False)
StiSettings.Set("Viewer", "CutLongLines", True)
StiSettings.Set("Viewer", "Simple", True)
StiSettings.Save()
report.Render()
report.ShowDotMatrix()
End Sub

Thank you
Milton
Edward
Posts: 2913
Joined: Fri Jun 09, 2006 4:02 am

Change properties of the Report Viewer dot - matrix before display

Post by Edward »

Hello, Milton.

Please download the following build:

Stimulsoft Reports.Net 2008.08.27 D2005:
http://www.stimulsoft.com/GetFile.aspx? ... _D2005.zip

The issue is fixed there.

Thank you.
Post Reply