Crystal Report viewer print dialog not working.
I have an asp.net website that i developed in VS 2010 that is using Crystal Reports 10.2. Everything works fine in the devleopment environment but when I upload it to the production server the print dialog wont print.
The print dialog opens up just fine but when i click print it says "Class not registered" at the top of the dialog.
How can I fix this problem?
Thanks in advance.
Hello,
Please search before posting.
Visual Studio 2010 is not meant to work with Crystal Reports 10.2.
Download CR4VS2010 here:
[/people/blair.wheadon/blog/2010/07/29/crystal-reports-for-visual-studio-2010-beta-2-and-runtimes-now-available|/people/blair.wheadon/blog/2010/07/29/crystal-reports-for-visual-studio-2010-beta-2-and-runtimes-now-available]
Thanks,
Bhushan.
Similar Messages
-
Crystal Report Viewer Print does not work for IE7
Post Author: ssdudeveloper
CA Forum: .NET
When I view a report in IE7, and click the Print button in the Crystal Reports Viewer toolbar, an empty dialog window opens and no print dialog appears. The print functionality works correctly when viewing the same report using an IE6 browser.
I have tried changing the browser security settings (as per http://technicalsupport.businessobjects.com/cs/forums/thread/3171.aspx) - with Automatic prompting for file downloads set to Enable, but this does not resolve my problem.
Is this a known compatability issue with IE7? Are there any workarounds/solutions to this?Hello,
Please search before posting.
Visual Studio 2010 is not meant to work with Crystal Reports 10.2.
Download CR4VS2010 here:
[/people/blair.wheadon/blog/2010/07/29/crystal-reports-for-visual-studio-2010-beta-2-and-runtimes-now-available|/people/blair.wheadon/blog/2010/07/29/crystal-reports-for-visual-studio-2010-beta-2-and-runtimes-now-available]
Thanks,
Bhushan. -
Page Not Found Error when clicking on Crystal Report Viewer print icon
Hi,
I am working with ASP.NET 2.0 and crystla reportXI release2.
I am getting "Page Can not be Found " error when clicking on Crystal Report Viewer print icon.
Could you please tell me how to get rid of this error?
Regards,
SmithaThis sounds like a postback issue. Does your application handle postback by putting the report in session?
There is a [sample|http://devlibrary.businessobjects.com/BusinessObjectsXIR2SP2/en/en/CrystalReports_dotNET_SDK/crsdk_samples_aspx/data/crsdk_net_tutorials_115_en.zip] to look at on our website. It was created with Crystal Reports XI R2 and Visual Studio .NET but the code will be the same.
A short pseudocode would be something like this:
Dim rptDocument As ReportDocument
If Not Me.IsPostBack or Session("Report") = Nothing Then
rptDocument = New ReportDocument
rptDocument.Load(sGlobalPath & "\myreport.rpt";)
Ludek -
How do you set the Crystal Report Viewer Printer to Duplex
Using the code below I can print in duplex mode, but this does not let me view a report before printing
How do I set the Printer in the Viewer Control Bar of the Crystal Report Viewer to Duplex Printing programmatically rather than having to manually select Duplex through the preferences option?
I have searched but the only example code I found produces errors in the code and will not run
Private myReport As ReportDocument
myReport = New ReportDocument()
myReport.PrintOptions.PaperSize = PaperSize.PaperA4
myReport.PrintOptions.PaperOrientation = PaperOrientation.Portrait
myReport.PrintOptions.PrinterDuplex = PrinterDuplex. Vertical
myReport.PrintToPrinter(3, False, 0, 0)
In my VB6 Project that I am converting to VB.NET when I added Report.PrinterDuplex = crPRDPVertical, this allowed me to view the report and then print with Duplex without having to set the Print Preferences manualy
I found 1386475 - How to set printer name and print job title at runtime using Report Application Server SDK for Visual Studio .NET
But this causes errors
Imports CrystalDecisions.ReportAppServer.ClientDoc
Imports CrystalDecisions.ReportAppServer.Controllers
Dim boReportClientDocument As ISCDReportClientDocument
Dim boPrintOutputController As PrintOutputController
Dim boPrintReportOptions As New PrintReportOptions
Edited by: DavidMills on Feb 18, 2011 11:58 AMHi David,
You can mix both engines, just declare them both with different report object names. Here's all of my references:
using System;
using System.IO;
using System.Xml;
using System.Drawing;
using System.Collections;
using System.ComponentModel;
using System.Windows.Forms;
using System.Data;
using CrystalDecisions.CrystalReports.Engine;
using CrystalDecisions.Shared;
using CrystalDecisions.ReportAppServer.ClientDoc;
using CrystalDecisions.ReportAppServer.Controllers;
using CrystalDecisions.ReportAppServer.ReportDefModel;
using CrystalDecisions.ReportAppServer.CommonControls;
using CrystalDecisions.ReportAppServer.CommLayer;
using CrystalDecisions.ReportAppServer.CommonObjectModel;
using CrystalDecisions.ReportAppServer.ObjectFactory;
using System.Data.OleDb;
using CrystalDecisions.ReportAppServer.DataSetConversion;
using CrystalDecisions.ReportAppServer.DataDefModel;
using CrystalDecisions.ReportSource;
using CrystalDecisions.Windows.Forms;
using System.Data.SqlClient;
using System.Runtime.InteropServices;
public class frmMain : System.Windows.Forms.Form
CrystalDecisions.CrystalReports.Engine.ReportDocument rpt = new CrystalDecisions.CrystalReports.Engine.ReportDocument();
CrystalDecisions.ReportAppServer.ClientDoc.ISCDReportClientDocument rptClientDoc;
My file open dialog:
private void btnOpenReport_Click(object sender, System.EventArgs e)
rptClientDoc = new CrystalDecisions.ReportAppServer.ClientDoc.ReportClientDocument();
openFileDialog.Filter = "Crystal Reports (*.rpt)|*.rpt|Crystal Reports Secure (*.rptr)|*.rptr";
openFileDialog.FilterIndex = 1;
if (openFileDialog.ShowDialog() == DialogResult.OK)
btnOpenReport.Enabled = false;
btnSaveRptAs.Enabled = false;
object rptName = openFileDialog.FileName;
try
rpt.Load(rptName.ToString());
rptClientDoc = rpt.ReportClientDocument;
catch (Exception ex)
MessageBox.Show("ERROR: " + ex.Message);
return;
MessageBox.Show(rptClientDoc.MajorVersion.ToString() + "." + rptClientDoc.MinorVersion.ToString());
MessageBox.Show("Report opened.","RAS",MessageBoxButtons.OK,MessageBoxIcon.Information );
btnOpenReport.Enabled = true;
btnSaveRptAs.Enabled = true;
//MessageBox.Show(rpt.RecordSelectionFormula, "my record: ", MessageBoxButtons.OK, MessageBoxIcon.Information);
MessageBox.Show(rpt.ReportRequestStatus.NumberOfPages.ToString(), "Number of Pages: ", MessageBoxButtons.OK, MessageBoxIcon.Information);
As for the page number I use it off the Engine report object:
MessageBox.Show(rpt.ReportRequestStatus.NumberOfPages.ToString(), "Number of Pages: ", MessageBoxButtons.OK, MessageBoxIcon.Information);
And it works for me...
Thank you
Don -
MySQL 5.5, Crystal Report for Visual Studio not working when hosted IIS
Software and Component detail
Microsoft visual studio 2010
MS .NET Framework
Version 4.0.30319 RTMRel
MYSQL SERVER Database
Version 5.5
MySQL Connector 6.6.4 64 Bit
MySQL ODBC Driver Version 5.2.a
Crystal Report for Visusl Studio 64 Bit 13.0.5
(CRforVS_redist_install_64bit_13_0_5)
Current Setup
1. I have WebSite in ASP.NET Visual Basic which works fine and is connected to MySQL Database, using MySQl Connector 6.6.4 64 bit
and is using a connection string,defined in web.confg.
2. I am using a Crystal report( It is very complex report, so cannot dare to redo it). Data Source for the report is set using a connection string
DRIVER={MySQL ODBC 5.2a Driver};SERVER=Licensedb;DATABASE=License;pwd=root;PORT=3306;OPTION=3 and this report is called from website using the below code
Dim crystalReport As ReportDocument = New ReportDocument()
Dim repPath As String = Server.MapPath("~/Reports/") + "LicenseReport.rpt"
crystalReport.Load(repPath)
CrystalReportViewer1.ReportSource = crystalReport
crystalReport.SetParameterValue("InstanceID", CInt(Session("sessionInstanceID")))
crystalReport.Refresh()
crystalReport.SetParameterValue("InstanceID", CInt(Session("sessionInstanceID")))
CrystalReportViewer1.Visible = True
3. The above setup works fine, when I run the website from Visual studio 2010. But when i use IIS 7, the aspx page having crystal report viewer control load and its blank.
However it work very well from studio it self.
4. So I changed the setup in point 2, by having a ODBC Data source defined. And changed the report accordingly. It work fine in Visual studio , but from IIS
it gives error "Failed to Open Connection, Failed to Open Connection <Crystal Report File name.rpt>"
5. I tried creating a System DSN and same connection string in IIS Application Connection string. But nothing changed.
Please can anyone point in correct direction. I must admit this is my first website development work, so I might have overlooked some minor details.
Any help would be much appreciated.
Thanks
Dilpreet ([email protected])hello again. I fear that what is said in that article does not apply to my particular case.
First of all i am using the Crystal Report Basic 2008, which I think is not the same product as Crystal Reports 2008.
In addition, printing fails always, on my PC and on the web server.
On the other hand I can not find anywhere printcontrol.cab file or printcontrol.dll, just do not exist either in my PC or on the web server.
The folder where the report viewer is located is not CrystalReportViewers12, is CrystalReportWebFormViewer4, and is located at wwwroot\aspnet_client\system_web\2_0_50727\
Investigating I found something, but has not helped me:
[http://social.msdn.microsoft.com/forums/en-US/vscrystalreports/thread/0af08d25-dd71-41ce-92fa-ca374f933eaa/]
This problem is what always happens to me when on my local PC I access my web server by its public IP.
I think I must resign myself to use only the PDF print
thanks anyway -
Printing from ActiveX Control in crystal report 10 in IE7 not working
Hi,
I am using ActiveX Control for printing in Crystal Report version 10 using Java. When I click on print button, ActiveX control dialog box opens and then click print button, the dialog box shows it's printing and does not stop and there is no print on printer. If any body have idea to resolve this issue, kindly tell me as soon as possible.
Thanks in Advance,
Nasir NawabHello,
CR 10 is not supported in IE7. It may work if you use the Legacy mode in IE7. Also check your pop-up blocker and allow ActiveX controls to be installed.
Thank you
Don -
REPORT VIEWER- PRINT BUTTON- NOT PRINTING ONLY IN SOME MACHINES
I built a project in VS2008(VB.Net) and it uses RDLC reports...When ive published my software i tried and it works fine and can print successfully on my machine but when i tried on the target machine i can export to pdf but i cant print the files directly
using the print button on the report viewer...What is the problem? Thanking you in advance.Hello,
Which browser did your used in the target machine? The issue may happens when you use none-IE browser.
The ClientPrint control of the Report Viewer control is based off of ActiveX and is not designed to work in none-IE browsers. This is a known issue in Report Viewer control.
To workaround this issue, you can try to use custom control or ActiveX control to get the print option enabled for the Report Viewer.
Reference:http://www.codeproject.com/Questions/608046/Reportplusviewerplusprintplusbuttonplusisplusnotpl
Regards,
Fanny Liu
Fanny Liu
TechNet Community Support -
Crystal Reports dynamic parameter does not work in InfoView
Hello,
We have developed Crystal Reports in CR2008 on top of SAP infoset and we have one of our selection parameter as dynamic parameter. It works fine in the CR Dev tool but when i upload the report in the InfoView, report does not show any value in the "Available Values"
Any input will be much appreciated.
Thanks.I did found the solution for this, i had to go into Business View Manger (BO Client Tools) and Schedule the LOV (List of Values). This is odd setting! but it works....
-
CR XI R2, Crystal Report Viewer Opentype Font not supported
Hi
For my reporting I selected an OpenType Font. But with my crystal version it doesnu2019t work. My Crystal version is
CR XI R2 Servicepack 3.
In the Crystal Report designer, I can select the OpenType Font but with the viewer it doesn't work. I saw in the release notes (2008 and XI) that only TrueType und Postscript fonts are supported.
Can you tell me, in wich version that OpenType Font will be supported?
Thanks a lot.
PiusI find it hard to believe Crystal doesn't support OpenType fonts as I am told by my design group that OpenType fonts are a "superior, widely-supported format". I am finding this limitation very frustrating as my organization has a specific set of OpenType fonts that we are expected to use for branding purposes, but I can't use them in my reports! And I can't find TrueType versions of the fonts, so I am forced to use other fonts and end up with a very different end product.
Please reconsider!
Thank you. -
Exporting Crystal Report to HTML is not working in Windows 7
Hi Sir,
I am trying to export Crystal Report to HTML format using VB.NET code. Functionality is working fine at Windows XP Environment (Save to Disk, Open an Application and Email Attachment). But the same functionality is not working at Windows 7 Environment (both 32-Bit as well as 64-Bit).
Below is the code to Exporting Crystal Report to HTML in VB.NET.
Dim CrDiskFileDestinationOptions As New DiskFileDestinationOptions
Dim CrFormatTypeOptions As New HTMLFormatOptions
Dim vFormat As Integer
Dim CrExportOptions As New ExportOptions
Dim vRdReport As New ReportDocument
Dim sfd As SaveFileDialog
Dim vFileName As String = Nothing
vRdReport = vRptSource
sfd = New SaveFileDialog
If Not (vRptPath = "") Then
sfd.InitialDirectory = vRptPath
End If
sfd.Filter = "Webpage, Complete(.htm;.htm)|.htm|Web Archive, Single file(.mht)|.mht|Webpage, HTML only(.htm;.html)|.html"
If sfd.ShowDialog = DialogResult.OK Then
' Set the disk file options.
CrDiskFileDestinationOptions.DiskFileName = sfd.FileName.ToString()
Else
Return
End If
CrExportOptions = vRdReport.ExportOptions
CrFormatTypeOptions.HTMLFileName = vFileName
CrFormatTypeOptions.HTMLEnableSeparatedPages = True
CrFormatTypeOptions.HTMLEnableSeparatedPages = True
CrFormatTypeOptions.HTMLHasPageNavigator = True
CrFormatTypeOptions.UsePageRange = True
With CrExportOptions
.ExportDestinationType = ExportDestinationType.DiskFile
.ExportFormatType = ExportFormatType.HTML32
.DestinationOptions = CrDiskFileDestinationOptions.DiskFileName
.FormatOptions = CrFormatTypeOptions
End With
vRdReport.Export()
Catch ex As Exception
MsgBox(ex.ToString)
End Try
Code working fine at Windows XP, But it is not woking in Windows 7 environment.
Please can anyone share your valuable thoughts or ideas reg. this.
Thanks in Advance
Deivanayaga Perumal D.user13509659 wrote:
Run this code to reproduce the issue.Which issue?
It looks like inheritance is broken in the component hierarchy for JFrame in Windows 7 JDK 1.6.0_23-b05. The only thing remotely related to inheritance in your code snippet is the WindowListener, which does little. See camickr's advice about built-in exit management.
EDIT - using the post title as a clue, I realize you may be talking about the component hierarchy, and whether the contentPane's background is visible through the upper layers. Instead of guessing, I'd prefer you describe your "issue" accurately (observed vs expected behavior).
Edited by: jduprez on Feb 10, 2011 1:01 PM -
Crystal Report Viewer Error: Could not render the page
Hi,
I was facing the same issues whereby i creating my crystal report in VS2005 profesional built in crystal report designer. When preview in VS2005 the graph displayed correctly. However, when export to IIS it shows the error could not render the page.
I am using Windows 2008 server, IIS7.
I tried to install the CRREDIST x86.msi into my server, however it still could not show out the graph (pie chart) in the localhost.
Appreciated anyone know this could kindly advice.
thanks.
ckHello,
Crystal Reports 10 is not supported on Windows 2008 Server.
Please view the information [here|http://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/oss_notes_boj/sdn_oss_boj_dev/sap(bD1lbiZjPTAwMQ==)/bc/bsp/spn/scn_bosap/notes.do]
Upgrade the Crystal Reports.
Thanks,
Bhushan. -
Crystal Report formula with datediff not working as expected
We need a Crystal Report formula to display the number of seconds the oldest arriving call has been waiting. Across multiple resources that can each have an "oldest call". The database stores a datetime value for the time the oldest call arrived. If there are no waiting calls, then this field is NULL. (MSSQL database). It seemed reasonable to implement this in a formula that 1) discovers the minimum of "oldest call" timestamps in the selected records, and 2) to use "datediff" to produce the difference (in seconds) between the "oldest call" timestamp and current time.
The first attempt at this relied on "implied" iteration that could be done within a formula. Something like:
data: OLDESTARRIVALTIME
null
'2014-06-14 08:08:08.000'
null
'2014-06-14 08:07:55.000'
null
whilereadingrecords;
datetimevar minArrival;
if isNull({SVCCLASSMEASURES_VW.OLDESTARRIVALTIME}) = False
and minArrival < {SVCCLASSMEASURES_VW.OLDESTARRIVALTIME} then
minArrival := {SVCCLASSMEASURES_VW.OLDESTARRIVALTIME};
DateDiff("s", minArrival, {SVCCLASSMEASURES_VW.UTCDATE})
We tried storing the values of OLDESTARRIVALTIME in an array. We could see it iterating, but the values in the array only contained
the column value from the first record.
This was to solve the problem of screening null values and producing the minimum of the set.
Since that didn't work (and the web articles seemed to imply this would iterate over all the records, we tried another approach. This
time we set NULL timestamps in the table to a timestamp far in the future, so that we could directly apply "minimum" to produce
the correct "begin" for datediff.
data: OLDESTARRIVALTIME
'2030-01-01 00:00:00.000'
'2014-06-14 08:08:08.000'
'2030-01-01 00:00:00.000'
'2014-06-14 08:07:55.000'
'2030-01-01 00:00:00.000'
datetimevar minArrival = minimum({SVCCLASSMEASURES_VW.OLDESTARRIVALTIME});
datetimevar minUTC = minimum({SVCCLASSMEASURES_VW.UTCDATE});
if minArrival < minUTC then
DateDiff("s", minArrival, minUTC)
else
0
(minUTC would be current time in UTC)
So, to start things off, the last formula produces negative numbers! They hover in negative seconds within a negative minute (-33, -45, etc.).
That's inconceivable, considering the test for minArrival < minUTC. Both of the fields are "datetime".
As it turns out, in the near term, it's most important to get the second formula working. And, of course, insights into getting the first
formula to work are welcome as well!
Have we run into some weird behavior of the "DateDiff" function?
Thanks!If DateDiff is always returning a negative number you could try swapping the dates around in the call to DateDiff - it should look like this:
DateDiff("s", minUTC, minArrival)
Or you could use the Absolute Value of the calculation:
Abs(DateDiff("s", minUTC, minArrival) )
As for your first formula, you need to initialize the variable to a value prior to using it in the comparison. If you don't, its value is null and comparing it against a value won't work. (See What is Null and Why is it Important for Crystal Reports | SAP BI BLOG for a blog that I wrote about working with nulls in Crystal.)
You should change your existing formula to something like this:
whilereadingrecords;
datetimevar minArrival;
if OnFirstRecord then minArrival := DateTime(2013, 1, 1, 0, 0, 0);
if not isNull({SVCCLASSMEASURES_VW.OLDESTARRIVALTIME})
and minArrival > {SVCCLASSMEASURES_VW.OLDESTARRIVALTIME} then
minArrival := {SVCCLASSMEASURES_VW.OLDESTARRIVALTIME};
Note how I changed the If statement. Also, you want to replace minArrival with the field value if the field is less than the current value of minArrival - so you need to use ">" instead of "<" in the comparison. Place this formula in the details section. It will now show anything because of the semi-colon on the end. This will ensure that it gets evaluated for every record.
Now, create a second formula that looks like this:
whileReadingRecords;
datetimevar minArrival;
DateDiff("s", minArrival, {SVCCLASSMEASURES_VW.UTCDATE})
Place this formula in a footer section - it will not work in a header section. If you need it in a header section you might be able to take the "whilereadingrecords" off of both formulas and use the "Maximum()" summary function to get the correct value.
-Dell -
Mac OS printer dialog not working
I searched the internet and found lots of similar posts but none exactly matched my situations and the solutions other people provided did not work.
Mac 10.9.4
Printer HP ENVY 4500 Series
Adobe Reader 11.0.07 (already tried reinstalling)
I want to do 2-sided printing and I learned from the internet that I had to use the OS printer dialog (by pressing "Printer" at the bottom of the Adobe printing dialog). But after pressing "Print" on the OS printer dialog, nothing happens. No errors. Print job doesn't even show up. It does print if I use the Adobe dialog, but it only prints on one side. I actually successfully printed duplex using the OS dialog last week but now it just doesn't work.
Please help! This is so frustrating.I am also facing the same problem.
I brought a Mac mini and tried for Software update. After downloading it asks for restart and then start installation ....after that it just shows configuring installation ... and no progress ... i had to restart the machine.
it may be problem with download.
is there any way i can download software update again ?
Because next time i start software update it shows me download completed after few secs...
can i delete the previous software download -
Sharepoint 2010 SSRS Report Viewer Print button not doing anything
We are having trouble printing reports from report viewer integrated in SharePoint 2010. On IE 11 compatible mode clicking print button does nothing.
Hi,
Please test the issue on different browsers and client PCs.
Did you find any related error message in ULS log or event log?
If you are recieving the error “Unable to load client print control”, please refer to the link below and see if it can be help:
http://blogs.msdn.com/b/mariae/archive/2010/04/13/error-unable-to-load-client-print-control-when-printing-reports-in-reporting-services-summary-of-all-possible-causes-at-april-2010.aspx
Regards,
Please remember to mark the replies as answers if they help and unmark them if they provide no help. If you have feedback for TechNet Subscriber Support, contact
[email protected] .
Rebecca Tu
TechNet Community Support -
Post Author: jsdude99
CA Forum: Crystal Reports
Hi,
With Visual Studio 2005, the Icons at the top of the CrystalReportViewer do not show on Web Application Project. However, If I have a web site project, they are all shown. Please note that I found number of posts that people not seeing the icons after the deployment but my case is the development environment. Once I pass the first hurdle I may face further problems like the other people, so If you happen to know answers in both situations, please share your knowlegde..
PS: I created two new types of projetcs and have just a CrystalReportViewer on the default page. Data is shown fine but the icons are missing (red X placeholders instead of icons) in Web Application Project. Very straight forward test.We havent tried that. We changed the link in the web part to access an html page that claims that the report is loading. It states in the html that if the page doesnt load to "click here" which redirects to the crystalreportviewer. Its a temp fix for it. One thing we are looking at is the 64 bit version of the Sharepoint integration kit. That may contain a reportviewer webpart.
Thanks for the reply.
Brian
Maybe you are looking for
-
Problem about CMSXDB Sample Application
Have installed cmsxdb sample app on Oracle 10gr2 and run webapp on jdeveloper 10.1.3 embedded oc4j. when try to login, the following errors are displayed: Stack Trace : oracle.otnsamples.cmsxdb.exception.CMSAccessException: Error sending request : ja
-
Hello everyone, I have a job that includes looking for many different words in large paragraphs. I would make things much faster for me if - instead of typing in "word 1", and then clearing it, and then typing in "word 2" - but rather, I could someho
-
Where do I set up rules for conflict resolution when syncing iTunes with Outlook?
I just got an iPhone 5 and I'm coming from a Blackberry. I've been syncing Outlook Calendar and Contacts to a portable device for over 10 years, even back in the day of the pocket pc and more recently the Blackberry. My iPhone 5 syncs great and see
-
BAPI_ACC_DOCUMENT_POST not calculating TAX
Hi, I am using BAPI_ACC_DOCUMENT_POST for posting the FI document for RC type. I tried posting it normally and it posted correctly. But when i give some ACCOUNT TAX information, it is not calculating. Here is how I am filling the details. Header: BUS
-
Adobe flash player installer screen blank.
Every time I try to install the latest Flash player the "Adobe Flash Player Installer" screen goes blank. I'm on mac by the way (Yosemite) "Getting installation" and the bar shows up for a split second and then dissapears. The rest of the screen is c