2
Answers

Create a base window in WPF

Abolfazl

Abolfazl

9y
702
1
hi
i'm looking for a way to create a base window in my WPF project and
every other window Inheritance this base window,for example create a 
window with specific border,background and..., and other windows inheritance
these style.i just understood i should create a base class from this link :
 can you help me how to create base window?
thanks 
Answers (2)
0
Hawkmoth
NA 11 0 20y
I Have some more info. In my case I created a project using Visual Studio 2000.net and Crystal Reports V8.5 with the crystal report veiwer tool on 2 forms. I then upgraded to Visual Studio 2003.net and Crystal Reports V10 Some time later I revisited my project made some minor changes and rebuilt it. This seemed to work ok on my pc. I then installed it onto another pc and stated the program. Everything seemed ok untill i got to one of the forms that had veiwer control on it. Then I recieved the above error It appears that if you created a project using an older version of Visual Studio.net / crystal reports or one of it's tool and after updating the crystal reports. From version 9.1.3300.0 or 9.1.5000.0 to 10.0.3300.0 You then building the project and installing the resulting program onto another 'clean' pc, you may get this error System.IO.FileNotFoundException: File or assembly name CrystalDecisions.Windows.Forms, or one of its dependencies, was not found. or somthing very similar. To get around this you need to make sure your project referances the new verisons that you have upgraded to. Open your project and remove the form tools (like the crystal report viewer tool) from the forms and Toolbox. Then remove the Crystal report Referances in the Project Explorer. CrystalDecisions.CrystalReports.Engine. crystaldecisions.windows.forms CrystalDecisions.ReportSource. CrystalDecisions.Shared. Now add the new updated tools (make sure they are the correct version) to the Toolbox and redraw them onto your forms in the designer. In doing this the new Crystal report referances should automatical appear in the Project Explorer. That takes care of the project itself but you will also need to download the merge modules that matches your version of crystal reposts and include these in the setup package. This is most important as the Client pc will not have the correct dlls. Do not assume that just because you have the new Crystal Reports installed that the merge modules will also be upgraded. They Don't here is a usful link to the merge modules. http://support.businessobjects.com/fix/merge_modules.asp
0
Hawkmoth
NA 11 0 20y
I have a similar error after upgrading from visual studio 2000.net to 2003.net. I also upgraded crystal reports version 10 Developer. You may also wish to take a look at this. http://support.businessobjects.com/library/kbase/articles/c2013897.asp Hawkmoth
0
tuortoam
NA 12 0 21y
For those interested: http://msdn.microsoft.com/library/default.asp?url=/library/en-us/crystlmn/html/crcondeployingcrystalreportsinnetapplications.asp Problem solved?? (we'll see) -Ant