Configuring Visual Studio 2005
Copying ConnectCodeBarcodeLibrary.dll
You will need to copy ConnectCodeBarcodeLibrary.dll to the PrivateAssemblies directory of Visual Studio 2005. The default directory is
C:\Program Files\Microsoft Visual Studio 8\Common7\IDE\PrivateAssemblies\.
Editing RSPreviewPolicy.config to grant FullTrust permission
The RSPreviewPolicy.config is the Report Designer preview policy file. The default path for this file is
[VS2005Directory]\Common7\IDE\PrivateAssemblies\RSPreviewPolicy.config.
The following tag will need to be added to the RSPreviewPolicy.config file. It grants FullTrust permission to ConnectCodeBarcodeLibrary.dll for previewing in the Report Designer.
<CodeGroup class="UnionCodeGroup" Name="BarcodeControl" version="1" PermissionSetName="FullTrust" Description="This code group grants ConnectCodeBarcodeLibrary.dll FullTrust permission."> <IMembershipCondition class="UrlMembershipCondition" version="1" Url="C:\Program Files\Microsoft Visual Studio 8\Common7\IDE\PrivateAssemblies\ConnectCodeBarcodeLibrary.dll"/> </CodeGroup> |
When you edit the RSPreviewPolicy.config file file, you may notice several <CodeGroup> tags already exists and are nested inside one another. You may insert the above tag at the most inner level at the bottom. For example
<CodeGroup>
<CodeGroup></CodeGroup>
<CodeGroup></CodeGroup>
</CodeGroup>
.
.
.
[insert the CodeGroup tag here]
Configuring Visual Studio 2008
Copying ConnectCodeBarcodeLibrary.dll
You will need to copy ConnectCodeBarcodeLibrary.dll to the PrivateAssemblies directory of Visual Studio 2008. The default directory is usually located at
C:\Program Files\Microsoft Visual Studio 9.0\Common7\IDE\PrivateAssemblies.
Editing RSPreviewPolicy.config to grant FullTrust permission
The RSPreviewPolicy.config is the preview policy file of the Report Designer. The default path for this file is
[VS2008Directory]\Common7\IDE\PrivateAssemblies\RSPreviewPolicy.config.
The following tag will need to be added to the RSPreviewPolicy.config file. It grants FullTrust permission to the ConnectCodeBarcodeLibrary.dll for previewing in the Report Designer.
<CodeGroup class="UnionCodeGroup" Name="BarcodeControl" version="1" PermissionSetName="FullTrust" Description="This code group grants ConnectCodeBarcodeLibrary.dll FullTrust permission."> <IMembershipCondition class="UrlMembershipCondition" version="1" Url="C:\Program Files\Microsoft Visual Studio 9.0\Common7\IDE\PrivateAssemblies\ConnectCodeBarcodeLibrary.dll"/> </CodeGroup> |
When you edit the RSPreviewPolicy.config file file, you may notice several <CodeGroup> tags already exists and are nested inside one another. You may insert the above tag at the most inner level at the bottom. For example
<CodeGroup>
<CodeGroup></CodeGroup>
<CodeGroup></CodeGroup>
</CodeGroup>
.
.
.
[insert the CodeGroup tag here]
Configuring Visual Studio 2010
Copying ConnectCodeBarcodeLibrary.dll
You will need to copy ConnectCodeBarcodeLibrary.dll to the PrivateAssemblies directory of Visual Studio 2010. The default directory is usually located at
C:\Program Files\Microsoft Visual Studio 10.0\Common7\IDE\PrivateAssemblies.
Editing RSPreviewPolicy.config to grant FullTrust permission
The RSPreviewPolicy.config is the preview policy file of the Report Designer. The default path for this file is
[VS2010Directory]\Common7\IDE\PrivateAssemblies\RSPreviewPolicy.config.
The following tag will need to be added to the RSPreviewPolicy.config file. It grants FullTrust permission to the ConnectCodeBarcodeLibrary.dll for previewing in the Report Designer.
<CodeGroup class="UnionCodeGroup" Name="BarcodeControl" version="1" PermissionSetName="FullTrust" Description="This code group grants ConnectCodeBarcodeLibrary.dll FullTrust permission."> <IMembershipCondition class="UrlMembershipCondition" version="1" Url="C:\Program Files\Microsoft Visual Studio 10.0\Common7\IDE\PrivateAssemblies\ConnectCodeBarcodeLibrary.dll"/> </CodeGroup> |
Note : If you are using the .Net 4.0 ConnectCodeBarcodeLibrary.dll, please change the version to "3".
When you edit the RSPreviewPolicy.config file file, you may notice several <CodeGroup> tags already exists and are nested inside one another. You may insert the above tag at the most inner level at the bottom. For example
<CodeGroup>
<CodeGroup></CodeGroup>
<CodeGroup></CodeGroup>
</CodeGroup>
.
.
.
[insert the CodeGroup tag here]