Page 1 of 4
How to change StiPreviewForm style (buttons and title)
Posted: Tue Nov 30, 2010 3:46 am
by mrapi
Hi !
I'm using the following code to show the report with Office2010Silver style,report buttons are converted to Office2010Silver but the window buttons (close,max,min) also title bar are not, is just like in image 1 and I want these to look like image 2.
Thanks.
StiOptions.Windows.GlobalGuiStyle = StiGlobalGuiStyle.Office2010Silver
Using wform As Stimulsoft.Report.Render.StiPreviewForm = New Stimulsoft.Report.Render.StiPreviewForm(wRp)
wform.Text = wFrmText.Trim
wRp.Info.Zoom = 1
wRp.Render()
wform.ShowDialog()
End Using
image1:
image2:

How to change StiPreviewForm style (buttons and title)
Posted: Tue Nov 30, 2010 5:53 am
by Alex K.
Hello,
If we understand you correctly you can use the StiRibbonViewerForm instead StiPreviewForm.
Thank you.
How to change StiPreviewForm style (buttons and title)
Posted: Tue Nov 30, 2010 6:43 am
by mrapi
Thanks for this,now I'm using this code :
Using wform As Stimulsoft.Report.Viewer.StiRibbonViewerForm = New Stimulsoft.Report.Viewer.StiRibbonViewerForm(wRp)
but now the form buttons are fine (close,min,max) and title also but the report preview buttons are ribbon type,now space occupied is x 4 times bigger,

,
taking space from page area.
I just want to keep preview buttons in classic manner as in image 1,not ribbon as in image 2
Thanks.
image 1:
image 2:
Aleksey wrote:Hello,
If we understand you correctly you can use the StiRibbonViewerForm instead StiPreviewForm.
Thank you.
How to change StiPreviewForm style (buttons and title)
Posted: Tue Nov 30, 2010 7:11 am
by Alex K.
Hello,
Unfortunately, it is impossible.
Thank you.
How to change StiPreviewForm style (buttons and title)
Posted: Tue Nov 30, 2010 7:50 am
by mrapi
Thanks you but as long I can mix default system style with all office style why I can't use only office style on a project that doesn't require ribbon,
and uses just office or other style ?
Your based controls DevComponents.DotNetBar has :
DevComponents.DotNetBar.
Office2007Form
and also
DevComponents.DotNetBar.
Office2007RibbonForm
Your ribbon takes x 4 times more space of page area, as seen from the picture above,I'm sure that will be other users complaining just like I do.
I've tested Devexpress,Krypton-Componentfactory and also DotNetBar office style,all change form style with default one , Devexpress has also an option
DevExpress.Skins.SkinManager.EnableFormSkins()
So I think there must be a way to change StiPreviewForm as default style is as long the controls are Office2010 with no ribbon,the forms also could be.
Thanks
Aleksey wrote:Hello,
Unfortunately, it is impossible.
Thank you.
How to change StiPreviewForm style (buttons and title)
Posted: Tue Nov 30, 2010 8:45 am
by Alex K.
Hello,
According to our License, we cannot change this controls. They are "as is".
Thank you.
How to change StiPreviewForm style (buttons and title)
Posted: Wed Dec 01, 2010 6:38 am
by mrapi
One good solution for my problem is to create a form with desired style then just simply to add and configure a StiViewerControl and that's my lucky combination,I'll try this soon.
Thanks.
How to change StiPreviewForm style (buttons and title)
Posted: Wed Dec 01, 2010 6:57 am
by mrapi
One good solution for my problem is to create a form with desired style then just simply to add and configure a StiViewerControl and that's my lucky combination,I'll try this soon.
Thanks.
How to change StiPreviewForm style (buttons and title)
Posted: Thu Dec 02, 2010 5:27 am
by Alex K.
Hello,
Ok.
Let us know if you need any additional help.
Thank you.
How to change StiPreviewForm style (buttons and title)
Posted: Mon Dec 13, 2010 6:55 am
by mrapi
As I said above I solved the problem with form style this way :
One good solution for my problem is to create a form with desired style then just simply to add and configure a StiViewerControl and that's
my lucky combination
But now I have the following question :
Having set
StiOptions.Windows.GlobalGuiStyle = StiGlobalGuiStyle.Office2010Silver
report controls have this style but rendering form looks like default windows as in image.
Can I change style or hide this form ? This looks ugly mixed with office style.
Thanks.