Page Border is not visible in silverlight preview

Stimulsoft Reports.Silverlight discussion
sabahat
Posts: 83
Joined: Sat Aug 13, 2011 11:20 pm

Re: Page Border is not visible in silverlight preview

Post by sabahat »

Hi,

I upgraded to build 2012.3.1410.0 (SL_v4_2012.11.16). The page border is rendered fine in the Silverlight preview of the report designer, but it is not rendered when I view the report at Silverlight runtime. I double checked everything so I'm sure I'm loading the latest version not the old ones. Something interesting that I found out is that when I extract the Silverlight xap file which is embedded in your "Stimulsoft.Report.Design.SLViewer.dll" assembly, it contains the version '2012.3.1409' of your binaries. So I guess there are some mismatches between your designer and runtime assemblies for Silverlight.

Thanks.
HighAley
Posts: 8430
Joined: Wed Jun 08, 2011 7:40 am
Location: Stimulsoft Office

Re: Page Border is not visible in silverlight preview

Post by HighAley »

Hello.

Please, download the latest prerelease build once again. We fixed this problem.

Thank you.
sabahat
Posts: 83
Joined: Sat Aug 13, 2011 11:20 pm

Re: Page Border is not visible in silverlight preview

Post by sabahat »

Hi,

I upgraded to build 2012.3.1411.0 (SL_v4_2012.11.19) and again the designer is fine but the runtime has the same issue :!: :!: :!:
The Silverlight assemblies in embedded xap file in your "Stimulsoft.Report.Design.SLViewer.dll" assembly are at build '2012.3.1410' which is one version behind.
Please do fix it, because this bug is more than 3 weeks in our production and has not been fixed yet :cry: :cry: :cry:

Thanks.
HighAley
Posts: 8430
Joined: Wed Jun 08, 2011 7:40 am
Location: Stimulsoft Office

Re: Page Border is not visible in silverlight preview

Post by HighAley »

Hello.

We checked our last prerelease build several times and the problem is solved there.
Please, read the How the Runtime Locates Assemblies article http://msdn.microsoft.com/en-us/library ... v=vs.80%29.
As you could read there the common language runtime check for Previously Referenced Assemblies and the Global Assembly Cache.
So you should remove ALL old assembles from your system.
Please, replace assemblies from GAC with latest ones and search all over your system for any other our assemblies.

Thank you.
sabahat
Posts: 83
Joined: Sat Aug 13, 2011 11:20 pm

Re: Page Border is not visible in silverlight preview

Post by sabahat »

Hi,

I checked everything several times and I'm pretty sure that I'm using the latest binaries not the old ones. I have no problem in the designer but the issue exists at the runtime.
I even cleared the browser cache and rechecked downloaded xap file from the browser cache to be sure that the xap file is not cached.
Let me ask you two questions:

1-As I've discovered in the designer, you show the Silverlight preview by loading a xap file embedded in "Stimulsoft.Report.Design.SLViewer.dll" assembly. Am I right?
I extracted this xap file from mentioned dll and extracted the silverlight binaries from it.The build version for these binaries is '2012.3.1410'.
But the build version for dlls extracted from 'SL_v4_2012.11.19.zip' file which is downloaded from registered users area is '2012.3.1411.
My question is that, why they have different version?

2-As I've discovered, the silverlight preview at the design time is loaded under Silverlight 5, but I'm using Silverlight 4 at runtime. As you say you have checked it several times, have you tested it under Silverlight 4 runtime?
Maybe this issue still exists for silverlight 4 version of your binaries, it's just a guess.

Thanks.
HighAley
Posts: 8430
Joined: Wed Jun 08, 2011 7:40 am
Location: Stimulsoft Office

Re: Page Border is not visible in silverlight preview

Post by HighAley »

Hello.

We are working on release of the major version. It will available on December 3.
Please, check it when it will be available.

Thank you.
sabahat
Posts: 83
Joined: Sat Aug 13, 2011 11:20 pm

Re: Page Border is not visible in silverlight preview

Post by sabahat »

OK.
HighAley
Posts: 8430
Joined: Wed Jun 08, 2011 7:40 am
Location: Stimulsoft Office

Re: Page Border is not visible in silverlight preview

Post by HighAley »

Hello.

Let us know about the results.

Thank you.
sabahat
Posts: 83
Joined: Sat Aug 13, 2011 11:20 pm

Re: Page Border is not visible in silverlight preview

Post by sabahat »

Hi,
I upgraded to 2012.3.1500, but the issue still exists.I checked everything and all of them looked adjusted, so I decided to look further to find what may cause this and I've found one. I'm not sure but I guess It's the root of this issue.
In my case I don't load the report from the report definition directly at runtime, I use 'StiReport.SaveReportSourceCodeForSilverlight()' method and it seems the generated c# code is incorrect.
For example I have a page with border settings set to All sides, solid, green color and size of 5, but the generated c# code is as follow:

Code: Select all

this.Page1.Border = new Stimulsoft.Base.Drawing.StiBorder(Stimulsoft.Base.Drawing.StiBorderSides.None, System.Windows.Media.Color.FromArgb(255, 0, 0, 0), 2, Stimulsoft.Base.Drawing.StiPenStyle.Solid, false, 4, new Stimulsoft.Base.Drawing.StiSolidBrush(System.Windows.Media.Color.FromArgb(255, 0, 0, 0)), false);
As you see, the StiBorderSides is incorrect, the border color is black and the border size is 2 !!!

So I guess the issue lies there.

Thanks.
HighAley
Posts: 8430
Joined: Wed Jun 08, 2011 7:40 am
Location: Stimulsoft Office

Re: Page Border is not visible in silverlight preview

Post by HighAley »

Hello.

We couldn't reproduce your issue.
Please, send us a sample project which reproduces the issue or a video where we will be able to see the problem.

Thank you.
Locked