Page 1 of 1

Change properties of the Report Viewer dot - matrix before display

Posted: Thu Aug 21, 2008 9:31 pm
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

Change properties of the Report Viewer dot - matrix before display

Posted: Fri Aug 22, 2008 12:25 am
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.

Change properties of the Report Viewer dot - matrix before display

Posted: Fri Aug 22, 2008 12:37 pm
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

Change properties of the Report Viewer dot - matrix before display

Posted: Thu Sep 04, 2008 6:30 am
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.