How to change StiPreviewForm style (buttons and title)

Stimulsoft Reports.NET discussion
mrapi
Posts: 282
Joined: Sat Dec 20, 2008 1:08 am

How to change StiPreviewForm style (buttons and title)

Post 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:
Image



image2:
Image
Alex K.
Posts: 6488
Joined: Thu Jul 29, 2010 2:37 am

How to change StiPreviewForm style (buttons and title)

Post by Alex K. »

Hello,

If we understand you correctly you can use the StiRibbonViewerForm instead StiPreviewForm.

Thank you.
mrapi
Posts: 282
Joined: Sat Dec 20, 2008 1:08 am

How to change StiPreviewForm style (buttons and title)

Post 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,:angry:,
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



image 2:
Image

Aleksey wrote:Hello,

If we understand you correctly you can use the StiRibbonViewerForm instead StiPreviewForm.

Thank you.
Alex K.
Posts: 6488
Joined: Thu Jul 29, 2010 2:37 am

How to change StiPreviewForm style (buttons and title)

Post by Alex K. »

Hello,

Unfortunately, it is impossible.

Thank you.
mrapi
Posts: 282
Joined: Sat Dec 20, 2008 1:08 am

How to change StiPreviewForm style (buttons and title)

Post 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.
Alex K.
Posts: 6488
Joined: Thu Jul 29, 2010 2:37 am

How to change StiPreviewForm style (buttons and title)

Post by Alex K. »

Hello,

According to our License, we cannot change this controls. They are "as is".

Thank you.
mrapi
Posts: 282
Joined: Sat Dec 20, 2008 1:08 am

How to change StiPreviewForm style (buttons and title)

Post 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.
mrapi
Posts: 282
Joined: Sat Dec 20, 2008 1:08 am

How to change StiPreviewForm style (buttons and title)

Post 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.
Alex K.
Posts: 6488
Joined: Thu Jul 29, 2010 2:37 am

How to change StiPreviewForm style (buttons and title)

Post by Alex K. »

Hello,

Ok.

Let us know if you need any additional help.

Thank you.
mrapi
Posts: 282
Joined: Sat Dec 20, 2008 1:08 am

How to change StiPreviewForm style (buttons and title)

Post 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.
Image



Post Reply