problem with report icons

Stimulsoft Reports.NET discussion
LenaB
Posts: 11
Joined: Tue Apr 24, 2007 9:28 am
Location: Montreal canada

problem with report icons

Post by LenaB »

Hi
I am new to stimule reports.
I created a report like the flash tutorial and did a "save as" to call it the Costing"
then I created the web report just like the flash tutorial opening "costing"

in the page load I have:

DsDocRepC1 = New DataSet
DsDocRepC1 = Session("doclist")
DsDocRepC1.DataSetName = "DsDocRepC"
Dim xx As Integer = DsDocRepC1.Tables("QCDocuments").Rows.Count
Dim mnthStr = Session("forDtes")
StiReport1.RegData(DsDocRepC1)
StiReport1.ReportDescription = mnthStr & " Cost per Hr= " & Session("Cost")

StiWebViewer1.Report = StiReport1

And this is all that this page does.
The previous page enters some parameter, searches a database and generates the dataset.

When this report is run from the web server the icons show as little X's untill you ask for the page at a different %, then they show.

The charts are even worse, the whole report is an X until you resize it.

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

problem with report icons

Post by Vital »

You are use parameters in web url of webpage where placed StiWebViewer control?

Thank you.
LenaB
Posts: 11
Joined: Tue Apr 24, 2007 9:28 am
Location: Montreal canada

problem with report icons

Post by LenaB »

Hi
the web page comes up from a

There are no parameters add to the url
On the page is an exit button and a header control (but before I added the header control it did the same thing)
All the data is passed in session variables

I followed the flash tutorial in the steps
add the viewer
add report
open designer
load report .mrt
save it
exit designer

add the code to the page load as above

Lena


All the reports are done the same way
all have the same problem
except for the charts which are worse

In my test page where I developed the reports I had a sql adaptor that ran first . There the icons worked ok but on the live pages I don't use an adapter - just a dataset using the same name and xml file. The data comes up beautifully.
Vital
Posts: 1278
Joined: Fri Jun 09, 2006 4:04 am

problem with report icons

Post by Vital »

About toolbars icons. Please place on your project following icons:
Buttons

After then assign property ButtonImages of StiWebViewer. You need set to this property related path to directory which contains toolbar icons.

About chart and other images. We use Page Cache for storing images. By default we use time from ServerTimeOut property of StiWebViewer. Please change this property. For also may be you clear page cache in your code.

Thank you.
LenaB
Posts: 11
Joined: Tue Apr 24, 2007 9:28 am
Location: Montreal canada

problem with report icons

Post by LenaB »

The probelm turned out to be the fact that in the previous .aspx where I built the data set I used

Code: Select all

Server.Transfer ("report1.aspx") 
Once we changed it to Response.Redirect(" ") the problem went away

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

problem with report icons

Post by Vital »

Thank you for this information.
Maria
Posts: 5
Joined: Sat Sep 26, 2009 9:25 am

problem with report icons

Post by Maria »

Vital wrote:About toolbars icons. Please place on your project following icons:
Buttons

After then assign property ButtonImages of StiWebViewer. You need set to this property related path to directory which contains toolbar icons.

About chart and other images. We use Page Cache for storing images. By default we use time from ServerTimeOut property of StiWebViewer. Please change this property. For also may be you clear page cache in your code.

Thank you.
Hello,
The above link does not work.
I need icons.
I'm using stimul soft report in .ascx pages and because of it,icons are not displayed.
You can upload icons again?
Thank you.
Jan
Posts: 1265
Joined: Thu Feb 19, 2009 8:19 am

problem with report icons

Post by Jan »

Hello Maria,

You can get it here:

www.stimulsoft.com/private/Buttons.zip

Thank you.
Maria
Posts: 5
Joined: Sat Sep 26, 2009 9:25 am

problem with report icons

Post by Maria »

Jan wrote:Hello Maria,

You can get it here:

www.stimulsoft.com/private/Buttons.zip

Thank you.
Hello Jan,
Thank you for link.
Nord
Posts: 2
Joined: Thu Dec 22, 2011 9:25 am

problem with report icons

Post by Nord »

Hi!

I have the same problem:
When I included the WebViewer on an aspx page in Visual Studio, the buttons where displayed correctly.
Then I deployed the page on a local IIS 7 server and the button-images were not displayed anymore.
I solved the problem by setting the WebViewer property "ImagePath" and copying the images to the corresponding folder.
Then I deployed this page to a remote IIS 6 server and faced the same problem again.

the code is:

Code: Select all

Dim appDir As String = HttpContext.Current.Server.MapPath(String.Empty).Replace("\", "\\")
...
StiWebViewer1.ImagesPath = appDir & "\\ButtonImages\\"
StiWebViewer1.Report = report
Post Reply