Quantcast
Channel: SharePoint 2010 - General Discussions and Questions forum
Viewing all articles
Browse latest Browse all 17574

problem in export web parts programmatically - e.g. (content editor webpart) 2007 to 2010

$
0
0

Hi,
1. I am doing the migration from 2007 to 2010 Sharepoint Server. using sharepoint export/import functionality(http://msdn.microsoft.com/en-us/library/aa979099(v=office.12).aspx).

2. As a result we get the .cmp file and after extract we will find menifest.xml file also which will have all SP 2007 exported list/libries and WebPart too. There is an specific webpart "Content Editor WebPart" which actually holds some data in encoded format. and when I will import this manifest.xml file to SP 2010. this content will not be exactly migrated to SP2010.
3. So for same reason. I would to encode AllUserProperties  property values. so that it will be in readable format. and if i would like to make any change, I will and then Import to SP 2010.

--------- Code part from Manifest.xml file as below ---

<WebParts>

                <WebPartName="99237f13-2368-4855-b955-404ae9bae111"AllUsersProperties="/wEUKwAHAgICAwIBAQAAAgIChgELKjRTeXN0ZW0uV2ViLlVJLldlYkNvbnRyb2xzLldlYlBhcnRzLldlYlBhcnRFeHBvcnRNb2RlAQ=="PerUserProperties="/wEUKwALAgICAwIBAQAAAgYFC1JlZGlyZWN0VXJsBRkvU2VhcmNoL1BhZ2VzL3Blb3BsZS5hc3B4BRNEaXJlY3RvcnlTZWFyY2hVcmxzBZwBU2VhcmNoIHRoZSBkaXJlY3RvcnksIGh0dHA6Ly93d3cuYmJjLmNvLnVrO1dobyBkb2VzIHdoYXQsaHR0cDovL3dob2RvZXN3aGF0LmNvbTtPcmdhbmlzYXRpb24saHR0cDovL29yZ2FuaXNhdGlvbi5jb207VXNlZnVsIG51bWJlcnMsaHR0cDovL3VzZWZ1bG51bWJlcnMuY29tAgQFD1N0YWZmIGRpcmVjdG9yeQ=="Level="major"WebPartZoneID="LeftZone"WebPartTypeId="01cae542-5ab5-ba16-0533-3ea6e6e65bcf"IsIncluded="true"WebPartOrder="0"FrameState="0" />

            </WebParts>

----------

1. Need Approach ... ?

2. I have already seen the post, this gives the webpart object, but it does not contain the expacted output and can't get XML created back which can be used in manifest.xml file again for import to SP2010. (

link :  http://pholpar.wordpress.com/2010/10/17/decoding-the-content-of-the-binaryserializedwebpart-the-code/

 

 


Labhesh Shrimali

Viewing all articles
Browse latest Browse all 17574

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>