DotNetNuke Crystal Reports - dotnetnuke

I'm new to DOTNETNUKE and facing little problem when adding a crystal report to a module.I'm using VS 2008 Crystal Reports extension.
I created a module to display a crystal report, but in the code behind of the user control the Crystal Report class is not visible
CrystalReport2 rpt=new CrystalReport2()
rpt.SetDataSource(dt)
CrystalReportViewer1.ReportSource = objRpt
CrystalReport2 is not identified. But CrystalReportViewer1 is displaying the report format correctly in the design mode. How do I create crystal report object?
Please Help,
Thank you,
kushira.

Have you added the imports/using statement to the code behind for the CR references?

Related

Creating SSRS report in Visual Studio but can't see any data in preview

Enter image description here
I am creating my first SSRS report in Visual Studio but I couldn't see any data when I preview. Am I doing anything wrong?
Try changing the font style and size, it should work, it worked for me.

Issue with Cr10 Viewer being called from a control on a 64bit OS

We are having an issue calling the Crystal ActiveX Report Viewer 10 control from a VB6 control that is placed on a .net form in a 64bit environment.
This does work on my 32bit development machine but when it is ran on a 64bit machine it is failing.
As soon as the form is attempted to be shown returns the error: 0xC000041D
Load Form1 (Form1 just has the Crystal Report Viewer on the form)
Form1.Show vbModal
The link provided is a Sample Project demonstrating the error I’m receiving:
https://www.dropbox.com/s/4psacu98xs7uux8/DemoProject_CR10_axc.zip?dl=0
This consists of:
- VB6 Project (Project1)
- Custom control with a button calling Form1. (UserControl1.ctl)
- Form with the CR10 Viewer (Form1)
- .Net Project (TestCr10)
- Form with UserControl1 placed on it.
To reproduce run the TestCr10 project and select the “ClickMe” button.
Any help will be greatly appreciated.
Thanks
You have to install the 32bit Cr Run time on your deployment pc Also with vb run time.
Good luck!

Display Barcodes in SSRS reports

I have some Barcode data stored in a SQL Server table with the font Code39-Digit the barcodes are stored in the table as *12312313213*.
I am trying to create a report in SSRS with the barcodes (scanner readable).
I have tried the following two methods and got nowhere :( .
How to embed Barcodes in your SSRS report
.NET Barcode Generator/SDK for SSRS Tutorial
Method 1 does not support the Barcode font Code39-Digit.
Method 2 I managed to show Barcodes in the BIDS but when I deploy the report to a server it goes all pear shape. The barcode wont show at all on the Reports Manager.
I have made sure that my Reports Server has the Font installed. but no luck so far.
I am running out of options any suggestions or pointer in the right direction are much appreciated.
Thank you.
Inside the report, use any text controller (like TextBox for example).
set it's font property to "typereader":
textBox -> Properties -> font -> FontFamily - Typereader 39.
Make sure you got font 39 in your computer, and that's it.
We use NeoDynamic Barcode Professional It works well for what you are trying to do and offers other features.

Error when creating crystal report in WPF application

I have a WPF application, PRISM + Unity, and have created a ReportingModule.
As of yet this is proof of concept.
My module simply has a single report that I want users to be able to select and view. I have the report.rpt file created and can preview the report, seeing data, however when I try and run my application I get an error
"The type or namespace name 'ReportingModule' could not be found (are you missing a using directive or an assembly reference?)". If I comment out the code behind the .rpt file I can run my application. Why would simply creating a crystal report file break my application????
Confused.
Add a using directive to your code or add a reference to your project to be able to use Crystal Reports. And if you add your sample code you may even receive more concrete help.

ReportViewer - LocalReport - Merge reports?

I'm using ReportViewer WinForms, and since it is no easy way to create an coversheet, then I wonder, is it possible to render two reports and have them concatenated?, so they appear as one report?
If I was to print only, then I could execute two reports after each other, but since the user want to see the report before printing (you know, no environment waste here) then they have to appear in the same viewer.
OR, is there other ways of creating coversheets?
Today I use an subreport, but there are some issues with margins etc. which is not easy to fix.
To clarify, we are talking about
ReportViewer using RDLC files, no
Crystal Reports involved.
Do you need to display the 2 reports as 1 in the reportViewer control or would having them both exported to PDF and showing a single PDF containing both reports be satisfactory?
I was looking for that but using the Web ReportViewer and found examples exporting the reports to several PDFs, then concatenating the PDFs into 1 using PDFtk (free)
Blog post about using PDFtk and Reporting Services
Multiple RDLC reports displayed at the same time
PDFtk web site
I've created a report that sounds like what you are attempting to do...first to clarify, I'm going to guess your using Crystal Reports within VS2005/2008.
If that's the case, all you need to do in the main report is create an additional section after your section that contains the "Cover Sheet" layout/data. In the section expert for the "Cover Sheet" section (in layout view, right click on section header bar, pick section expert in pop up menu..), check off the "New Page After" option.
Edit: After your update, I see you are using RDLC reports, and from my limited exposure to those, I can't recall an easy way to get to where you want to be. Though I'm pretty sure you may be able to pass multiple reports to the same report viewer in code.

Resources