Author: BuggyBrain

Step By Step Guide to Pivot Viewer Control in Silverlight.


This is going to be a basic post about “How to Use Pivot Viewer Silverlight Control”.

To begin working with the Pivot Viewer Silverlight control First Download and Install the Pivot Viewer Control from Pivot Viewer Home.

Once You install it it will create some dlls in C:Program Files (x86)Microsoft SDKsSilverlightv4.0PivotViewerAug10.

After we are done with the installation we need to create .CXML which we can use as a source to this control so that it can render our desired images.

For that we’ll be using Command line tool available which can be downloaded from Collection Tools link on the Page we downloaded the Pivot Viewer Control from.

Once the command line tool is downloaded unzip it and there will be Two Folders(bin, docs), EULA.docx, User’s Guide.docx inside it.

First Open docs folder so that we can use the XSLX and images provided. Here XSLX defines the Metadata of the images on basis of which we can search and filter it.

In other folder we have Pauthor.exe which can be used to create CXML from XSLX.

For creating CXML open pauthor in command prompt.

“cmd”

Navigate to folder where you have pauthor.exe

“CD C:UsersDownloadsPauthor-RC3Pauthorbin”

and then Execute the following command.

“pauthor /source excel CD C:UsersDownloadsPauthor-RC3Pauthordocssample.xlsx /target deepzoom C:Output”

After executing given command you will get a CXML file and folder structure , “Sample_Deepzoom”, it is referring to in the Output folder on C:

Once CXML and folder structure are created we can go ahead and create Silverlight Application to use Pivot Viewer we installed and CXML we created.

Create a Silverlight Applcation.

Add the Folder Structure “Sample_DeepZoom” and Sample.CXML in the SilverlightApp.Web Project created. (It is recommended to add the structure in client bin but here I’ve Created a new folder Pivot Data in my project and Added the folder and cxml to it.) to avoid cross domain issues add clientaccess policy.xml to the SilverlightApp.Web

ClientAccessPolicy.XML will contain given code.

Now add reference to “System.Windows.Pivot.dll” available in
“C:Program Files (x86)Microsoft SDKsSilverlightv4.0PivotViewerAug10bin” in SilverlightApp.

After adding reference add namespace
” xmlns:pivotcontrol=”clr-namespace:System.Windows.Pivot;assembly=System.Windows.Pivot””
to Mainpage.XAML

now add
to the grid in usercontrol.

and add

string pageUrl = HtmlPage.Document.DocumentUri.AbsoluteUri;
string rootUrl = pageUrl.Substring(0, pageUrl.LastIndexOf(‘/’) + 1);
PV.LoadCollection(rootUrl + @”Pivot data/Sample.cxml”, String.Empty);

to the Mainpage.xaml.cs after InitializeComponent() in MainPage().

You are good to go. Run your Application and you will see the Pivotviewer Up and Running.

MS Dynamics CRM : First Stupid Issue

I’ve just started Learning Microsoft Dynamics CRM. I know CRM 2011 is out but its certification is not. So I planned on learning CRM 4.0 first so that I can be certified :)

While learning I have just reached Page 1-6 of student manual for Configuration and customization and I am stuck up on an error while creating the user.

I am creating a new user and I’ve entered my data in the textbox and it is giving following error.

So from error it is clear that before adding a user to CRM it should be available in domain :) .

Cool so from above: Simple solution.. Go to Active Directory Users and Computers (in Administrative template). Create a new user, Now in CRM add user with same logon name as that in active directory and BINGO………. It gives the same error :) …..

Ok now add domain infront of logon i.e. / and its a BINGO :) .

Cool simple issue with more than simple resolution, but one question : Why we can’t add any user who are not there in any domain. May be thats too stupid to be a question to ask as if user is not there in AD you can’t authenticate it then it will be an issue with security and BLAH BLAH BLAH …… but still one day I’ll look into this issue : Is it feasible to add users in CRM who are not in active directory and If yes HOW? and if no HOW to make it feasible ?

But right now the highest priority is to learn CRM enough to complete certification (without dumps ofcourse…. other wise I would be sitting in some pub with Beer and not caring about this stupid stuff here )

Ok Forum….. Bbyeeeeee……… will be soon back with other weirdo and stupid issue :D .

MS Dynamics CRM : First Stupid Issue

I’ve just started Learning Microsoft Dynamics CRM. I know CRM 2011 is out but its certification is not. So I planned on learning CRM 4.0 first so that I can be certified :)

While learning I have just reached Page 1-6 of student manual for Configuration and customization and I am stuck up on an error while creating the user.

I am creating a new user and I’ve entered my data in the textbox and it is giving following error.

So from error it is clear that before adding a user to CRM it should be available in domain :) .

Cool so from above: Simple solution.. Go to Active Directory Users and Computers (in Administrative template). Create a new user, Now in CRM add user with same logon name as that in active directory and BINGO………. It gives the same error :) …..

Ok now add domain infront of logon i.e. / and its a BINGO :) .

Cool simple issue with more than simple resolution, but one question : Why we can’t add any user who are not there in any domain. May be thats too stupid to be a question to ask as if user is not there in AD you can’t authenticate it then it will be an issue with security and BLAH BLAH BLAH …… but still one day I’ll look into this issue : Is it feasible to add users in CRM who are not in active directory and If yes HOW? and if no HOW to make it feasible ?

But right now the highest priority is to learn CRM enough to complete certification (without dumps ofcourse…. other wise I would be sitting in some pub with Beer and not caring about this stupid stuff here )

Ok Forum….. Bbyeeeeee……… will be soon back with other weirdo and stupid issue :D .