My Preview Tools Disappeared **Solved
-
- Posts: 21
- Joined: Tue Nov 30, 2010 1:06 pm
- Location: South Dakota
My Preview Tools Disappeared **Solved
I created a report which uses a form for the user to select some parameters and then the report runs fine. However, I must have changed some obscure setting, because my preview tools no longer show up (the user can't print, export or do much of anything except stare at the pages). Any suggestions or solutions would be welcome. The First image is what it should be like. The second image is what it is. What did I do differently?
I should add that the version of Stimulsoft is running within POSitive Retail Manager, so I am not certain how much flexibility I have to adding code, etc. It seems fairly robust. It is StimulsoftReports.Net version 2010.1.700 26 Mar 2010. All I know is I had it working and now it isn't. Help?
I am also wondering if it has anything to do with the fact that I am using a simple form when running the report (a few radio buttons, a check box, an OK and Cancel Button). All of this works fine and when OK is pressed, the report launches and runs well. BUT -- I have lost my report preview tools. Do I need to add an event after the OK Button is pressed? If so, what event to I need to launch? Is there a special form I need to open to get the report preview tool box to come up?
The First Image below is how it used to work and how it should work. The second is how it looks now.
I should add that the version of Stimulsoft is running within POSitive Retail Manager, so I am not certain how much flexibility I have to adding code, etc. It seems fairly robust. It is StimulsoftReports.Net version 2010.1.700 26 Mar 2010. All I know is I had it working and now it isn't. Help?
I am also wondering if it has anything to do with the fact that I am using a simple form when running the report (a few radio buttons, a check box, an OK and Cancel Button). All of this works fine and when OK is pressed, the report launches and runs well. BUT -- I have lost my report preview tools. Do I need to add an event after the OK Button is pressed? If so, what event to I need to launch? Is there a special form I need to open to get the report preview tool box to come up?
The First Image below is how it used to work and how it should work. The second is how it looks now.
- Attachments
-
- 717.Without Preview Tools.png (17.97 KiB) Viewed 3122 times
-
- 716.With Preview Tools.png (48.17 KiB) Viewed 3122 times
Mike Simpkins
Clueless in South Dakota
-
- Posts: 21
- Joined: Tue Nov 30, 2010 1:06 pm
- Location: South Dakota
My Preview Tools Disappeared **Solved
I think I answered my own question. In the MRT file, there is a section entitled . I deleted this section and re ran the report. Everything worked fine.
I would like to understand the issue if anyone cares to explain.
I would like to understand the issue if anyone cares to explain.
Mike Simpkins
Clueless in South Dakota
My Preview Tools Disappeared **Solved
You can customize the Preview settings for a particular report which allows you to show or hide certain features on the toolbar when the report is previewed.
You may have hidden the Toolbar feature on the PreviewSettings for the report. This would cause all features in the toolbar to remain hidden when the report was previewed.
Clicking the ellipsis button for the PreviewSettings will open a designer window that allows you to set which features you want on or off. There's also a 'live preview' of what it would look like in this designer window too.
You may have hidden the Toolbar feature on the PreviewSettings for the report. This would cause all features in the toolbar to remain hidden when the report was previewed.
Clicking the ellipsis button for the PreviewSettings will open a designer window that allows you to set which features you want on or off. There's also a 'live preview' of what it would look like in this designer window too.
-
- Posts: 21
- Joined: Tue Nov 30, 2010 1:06 pm
- Location: South Dakota
My Preview Tools Disappeared **Solved
I tred the check box settings, but it would not allow me to show the tool bar. Every time I would check it and save, it would be unchecked. I have a feeling there are certain values that represent all of the checked/unchecked options. I found this line in the MRT file: 16651647. I deleted it and everything reappeared. It would be nice to know what the 1661647 represents.
Mike Simpkins
Clueless in South Dakota
My Preview Tools Disappeared **Solved
Hello,
You can see the following code
You can see the following code
Code: Select all
public enum StiPreviewSettings
{
All = 0xfffffff,
None = 0x0000000,
PageViewMode = 0x0000001,
VertScrollBar = 0x0000002,
HorScrollBar = 0x0000004,
StatusBar = 0x0000008,
Print = 0x0000010,
Open = 0x0000020,
Save = 0x0000040,
[Obsolete("Please use 'Save' value instead 'Export' value.")]
Export = 0x0000080,
SendEMail = 0x0000100,
PageNew = 0x0000200,
PageDelete = 0x0000400,
PageDesign = 0x0000800,
PageSize = 0x0001000,
[Obsolete("Value 'SelectTool' is obsolete.")]
SelectTool = 0x0002000,
[Obsolete("Value 'HandTool' is obsolete.")]
HandTool = 0x0008000,
[Obsolete("Please use 'Editor' value instead 'EditorTool' value.")]
EditorTool = 0x0010000,
[Obsolete("Please use 'Find' value instead 'FindTool' value.")]
FindTool = 0x0020000,
Editor = 0x0010000,
Find = 0x0020000,
Zoom = 0x0040000,
PageControl = 0x0080000,
Bookmarks = 0x0100000,
Thumbs = 0x0200000,
ContextMenu = 0x0400000,
Close = 0x0800000,
Toolbar = 0x1000000,
}
-
- Posts: 21
- Joined: Tue Nov 30, 2010 1:06 pm
- Location: South Dakota
My Preview Tools Disappeared **Solved
I am sure that this code can be seen somewhere. But where do I find it? It is not in the MRT file. I am using POSitive Software's implementation of Report Writer. Is there a directory or files I should be looking for so that I can write my own code for my reports? Information on this is very hard to come by for me.
Mike Simpkins
Clueless in South Dakota
My Preview Tools Disappeared **Solved
Hello,
Also these options can be set in the designer by selecting the Preview Settings property of a report.
Thank you.
Also these options can be set in the designer by selecting the Preview Settings property of a report.
Thank you.
-
- Posts: 21
- Joined: Tue Nov 30, 2010 1:06 pm
- Location: South Dakota
My Preview Tools Disappeared **Solved
This is precisely where everything went wrong for me. The preview settings had been set to allow everything. I attempted to limit a few of them and ran the report again. I didn't like what I got, so I attempted to add them all back in using the Preview Settings. I checked EVERY BOX. However, no matter what I tried, the "Tool Bar" box would not stay checked after saving the report. I finally had to delete the Preview Settings line from the XML in the MRT file.Aleksey wrote:
Also these options can be set in the designer by selecting the Preview Settings property of a report.
Here is a screen shot.
- Attachments
-
- 721.Screen shot 2010-12-03 at 3.14.56 AM.png (72.77 KiB) Viewed 3060 times
Mike Simpkins
Clueless in South Dakota
My Preview Tools Disappeared **Solved
Hello,
On the current moment, this option works, for the standard toolbar, for the Ribbon one it does not work.
Thank you.
On the current moment, this option works, for the standard toolbar, for the Ribbon one it does not work.
Thank you.