We're sorry Aspose doesn't work properply without JavaScript enabled.

Free Support Forum - aspose.com

Error Using Aspose.Words

Iam using Aspose.Words for converting sql reports to word.

I had followed the step by step procedure mentioned in the site

http://www.codeproject.com/KB/reporting-services/report-viewer-reflection.aspx

But iam getting the below error

Could not load file or assembly 'Aspose.Words.ReportingServices, Version=2.2.0.0, Culture=neutral, PublicKeyToken=716fcc553a201e56' or one of its dependencies. Strong name signature could not be verified. The assembly may have been tampered with, or it was delay signed but not fully signed with the correct private key. (Exception from HRESULT: 0x80131045) C:\Documents and Settings\Lekha.Vetil\My Documents\Visual Studio 2005\Projects\UsingReport\Default2.aspx 1 1 C:\...\UsingReport\

Please help...Iam stuck up with this error since past 3days.

Thanks and Regards

I resolved the above error.....The application is running successfully.

But in the reportviewer the new extension is not being displayed

here is my following code

protected void Page_Load(object sender, EventArgs e)

{AddExtension(ReportViewer1, "DOC - Word Document via Aspose.Words", typeof(aspose.DocRenderer));}

private static void AddExtension(ReportViewer viewer, string name, Type extensionType)

{

const BindingFlags Flags = BindingFlags.NonPublic | BindingFlags.Public | BindingFlags.Instance;

FieldInfo previewService = viewer.LocalReport.GetType().GetField("m_previewService", Flags);

MethodInfo ListRenderingExtensions = previewService.FieldType.GetMethod("ListRenderingExtensions", Flags);

IList extensions = ListRenderingExtensions.Invoke(previewService.GetValue(viewer.LocalReport), null) as IList;

Type LocalRenderingExtensionInfoType = Type.GetType("Microsoft.Reporting.LocalRenderingExtensionInfo, " +

"Microsoft.ReportViewer.Common," + "Version=8.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a");

ConstructorInfo ctor = LocalRenderingExtensionInfoType.GetConstructor(Flags, null, new Type[] { typeof(string), typeof(string),

typeof(bool), typeof(Type), typeof(bool) }, null);

object instance = ctor.Invoke(new object[] { name, name, true, extensionType, true });

extensions.Add(instance);

}

Though i get the count of IList as 6 but it doesnt get displayed in the reportviewer...What can be the problme????

Hi

<?xml:namespace prefix = o ns = "urn:schemas-microsoft-com:office:office" />

Thanks for your inquiry. In the latest version of Aspose.Words for reporting service were included assemblies allowing to add Microsoft Word export formats to the Microsoft Report Viewer control working in local mode. Please see release notes of v 2.3.0.0

http://www.aspose.com/community/files/52/ssrs-rendering-extensions/aspose.words.reporting.services/entry142767.aspx

Also see the documentation.

http://www.aspose.com/documentation/ssrs-rendering-extensions/aspose.words-for-reporting-services/integrate-with-microsoft-report-viewer-in-local-mode.html

Please let me know if this helps.

Best regards.

I had followed the documentation provide by Aspose site.

My problem is the newly added extensions using Aspose.Words to the List doesnt get displayed in the report viewer control.Why is it so???????

Pls chk the above code which i mentioned previously.