Page 3 of 4

How to change StiPreviewForm style (buttons and title)

Posted: Thu Dec 23, 2010 6:23 am
by mrapi
Hi,I tested on a second computer,the same error.
This is on Xp Sp3,I uninstalled vers. 2010.2 then manually removed all Stimul folders from c:\WINDOWS\assembly\GAC_MSIL\
Then I install only Stimulsoft Reports.Net 2010.3.msi,I delete old dll report file then save my report to new dll file,no erro
In my application removed old references and added new as in image.
Image

Run the application but when I must see the report I see this :
Image
going back to version 2010.2 all works fine,there must be something changed from 2010.2 to 2010.3 that I miss ,what I do wrong,pleas help me :dumb:
Thanks.


Aleksey wrote:Hello,

We couldn't reproduce this bug.
Please check versions of dll files in your application and designer in what the report is saved. Most probably they are different and this is the reason of error.

Thank you.

How to change StiPreviewForm style (buttons and title)

Posted: Thu Dec 23, 2010 8:52 am
by Alex K.
Hello,

Please check the latest prerelease build.

Thank you.

How to change StiPreviewForm style (buttons and title)

Posted: Thu Dec 23, 2010 9:12 am
by mrapi
As I said few posts ago in this topic I also tested with latest build (now is 22 Dec 2010) but with this I have also +1 problems, when compiling reports,see my posts above.
Thanks.
Aleksey wrote:Hello,

Please check the latest prerelease build.

Thank you.

How to change StiPreviewForm style (buttons and title)

Posted: Thu Dec 23, 2010 12:05 pm
by Jan
Hello,

lhotel.dll resaved with new version of report engine (2010.3) ? Report assembly is standard .net assembly. So if you save it with later version of report engine (report engine assemblies referenced to this assembly) then you need load it with same version of report engine.

Thank you.

How to change StiPreviewForm style (buttons and title)

Posted: Thu Dec 23, 2010 1:40 pm
by mrapi
Hi Jan
2 posts above I described the way I do, I post again these steps:
Uninstall v2010.2,then manually removed all Stimul folders from c:\WINDOWS\assembly\GAC_MSIL\
Then I install only Stimulsoft Reports.Net 2010.3.msi,I delete old dll report file then save my report to new dll file,no erro
In my application removed old references and added new as in image.
Image

Run the application but when I must see the report I see this :
Image
going back to version 2010.2 all works fine,there must be something changed from 2010.2 to 2010.3 that I miss ,what I do wrong,pleas help me :dumb:
Thanks.
System.Reflection.ReflectionTypeLoadException was unhandled
Message="Unable to load one or more of the requested types. Retrieve the LoaderExceptions property for more information."
Source="mscorlib"
StackTrace:
at System.Reflection.Module._GetTypesInternal(StackCrawlMark& stackMark)
at System.Reflection.Assembly.GetTypes()
at Stimulsoft.Report.StiReport.GetReportsFromAssembly(Assembly assembly)
at Stimulsoft.Report.StiReport.GetReportFromAssembly(Stream assemblyStream)
at Stimulsoft.Report.StiReport.GetReportFromAssembly(String assemblyFile, Boolean lockFile)
at Stimulsoft.Report.StiReport.GetReportFromAssembly(String assemblyFile)
at hotel.frmMain.prLisEvCli() in D:\b_teh\hotel\frmMain.vb:line 231
at hotel.frmMain.ButtonItem3_Click(Object sender, EventArgs e) in D:\b_teh\hotel\frmMain.vb:line 249
at DevComponents.DotNetBar.BaseItem.RaiseClick(eEventSource source)
at DevComponents.DotNetBar.BaseItem.InternalMouseUp(MouseEventArgs objArg)
at DevComponents.DotNetBar.PopupItem.InternalMouseUp(MouseEventArgs objArg)
at DevComponents.DotNetBar.ButtonItem.InternalMouseUp(MouseEventArgs objArg)
at DevComponents.DotNetBar.MenuPanel.OnMouseUp(MouseEventArgs e)
at System.Windows.Forms.Control.WmMouseUp(Message& m, MouseButtons button, Int32 clicks)
at System.Windows.Forms.Control.WndProc(Message& m)
at DevComponents.DotNetBar.MenuPanel.WndProc(Message& m)
at System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m)
at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)
at System.Windows.Forms.NativeWindow.DebuggableCallback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)
at System.Windows.Forms.UnsafeNativeMethods.DispatchMessageW(MSG& msg)
at System.Windows.Forms.Application.ComponentManager.System.Windows.Forms.UnsafeNativeMethods.IMsoComponentManager.FPushMessageLoop(Int32 dwComponentID, Int32 reason, Int32 pvLoopData)
at System.Windows.Forms.Application.ThreadContext.RunMessageLoopInner(Int32 reason, ApplicationContext context)
at System.Windows.Forms.Application.ThreadContext.RunMessageLoop(Int32 reason, ApplicationContext context)
at System.Windows.Forms.Application.Run(ApplicationContext context)
at Microsoft.VisualBasic.ApplicationServices.WindowsFormsApplicationBase.OnRun()
at Microsoft.VisualBasic.ApplicationServices.WindowsFormsApplicationBase.DoApplicationModel()
at Microsoft.VisualBasic.ApplicationServices.WindowsFormsApplicationBase.Run(String[] commandLine)
at hotel.My.MyApplication.Main(String[] Args) in 17d14f5c-a337-4978-8281-53493378c1071.vb:line 81
at System.AppDomain._nExecuteAssembly(Assembly assembly, String[] args)
at System.AppDomain.ExecuteAssembly(String assemblyFile, Evidence assemblySecurity, String[] args)
at Microsoft.VisualStudio.HostingProcess.HostProc.RunUsersAssembly()
at System.Threading.ThreadHelper.ThreadStart_Context(Object state)
at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)
at System.Threading.ThreadHelper.ThreadStart()
InnerException:

How to change StiPreviewForm style (buttons and title)

Posted: Thu Dec 23, 2010 2:18 pm
by Jan
Hello,

At this moment lhotel.dll assembly have references to Stimulsoft Reports assemblies with 2010.2 version. When you load it with 2010.2 version it load fine. When you load report assembly with new version - 2010.3, this assembly still have references to 2010.2 report engine assemblies. It can't automatically take link to new 2010.3 version without special config redirects. This is not our restrictions. This is one of main feature of .Net Framework (which solve DLL HELL problem). You need recreate lhotel.dll assembly with new 2010.3 version.

Thank you.

How to change StiPreviewForm style (buttons and title)

Posted: Thu Dec 23, 2010 2:21 pm
by mrapi
Jan,Thanks for your time
This is what I done,I recreated the dll with 2010.3 version,I described above :

"Then I install only Stimulsoft Reports.Net 2010.3.msi,I delete old dll report file (lhotel.dll) then save my report to new dll file,no error"
I've done till now 2 or 3 upgrades of Stimulreport engine and no such error,each time I recompiled all reports then updated application references.


I sent to your support a sample VB 2008 project,report is located in DEBUG folder,also compiled dll.

Thanks

Jan wrote:Hello,

At this moment lhotel.dll assembly have references to Stimulsoft Reports assemblies with 2010.2 version. When you load it with 2010.2 version it load fine. When you load report assembly with new version - 2010.3, this assembly still have references to 2010.2 report engine assemblies. It can't automatically take link to new 2010.3 version without special config redirects. This is not our restrictions. This is one of main feature of .Net Framework (which solve DLL HELL problem). You need recreate lhotel.dll assembly with new 2010.3 version.

Thank you.

How to change StiPreviewForm style (buttons and title)

Posted: Thu Dec 23, 2010 2:53 pm
by Jan
Hello,
mrapi wrote:Jan,Thanks for your time
This is what I done,I recreated the dll with 2010.3 version,I described above :

"Then I install only Stimulsoft Reports.Net 2010.3.msi,I delete old dll report file (lhotel.dll) then save my report to new dll file,no error"
I've done till now 2 or 3 upgrades of Stimulreport engine and no such error,each time I recompiled all reports then updated application references.
Thanks.
Jan wrote:Hello,

At this moment lhotel.dll assembly have references to Stimulsoft Reports assemblies with 2010.2 version. When you load it with 2010.2 version it load fine. When you load report assembly with new version - 2010.3, this assembly still have references to 2010.2 report engine assemblies. It can't automatically take link to new 2010.3 version without special config redirects. This is not our restrictions. This is one of main feature of .Net Framework (which solve DLL HELL problem). You need recreate lhotel.dll assembly with new 2010.3 version.

Thank you.
Please send to support new version of lhotel.dll.

Thank you.

How to change StiPreviewForm style (buttons and title)

Posted: Thu Dec 23, 2010 2:57 pm
by mrapi

I sent to your support a sample VB 2008 project,report is located in DEBUG folder,also compiled dll.
Thanks.

How to change StiPreviewForm style (buttons and title)

Posted: Thu Dec 23, 2010 3:45 pm
by mrapi
It is possible the problem to be from Framework incompatibility ?
As I see,the report designer is target to Framework 4 but my application is VB 2008 Framework 3.5 ?
Image