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()
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
Catch ex As Exception
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

Similar Messages

  • Help needed  while exporting crystal reports to HTML file format using java

    Help needed  while exporting crystal reports to HTML file format using java api(not using crystalviewer).i want to download the
    html file of the report

    the ReportExportFormat class does not have HTML format, it has got to be XML. Export to HTML is available from CR Designer only.
    Edited by: Aasavari Bhave on Jan 24, 2012 11:37 AM

  • Drill-down options on exported Crystal reports (PDF/HTML)

    Is it possible to drill-down on the exported crystal reports in PDF/HTML format?

    PDF format does not support drill-down. 
    PDF format supports bookmarking to specific locations in the document, but not something refined as drilling.
    Ted Ueda

  • 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.

    Please search before posting.
    Visual Studio 2010 is not meant to work with Crystal Reports 10.2.
    Download CR4VS2010 here:

  • Export crystal report to html in java

    Hello Friends,
    Could you please tell how how can i export my crytsal reports to html in java.
    Thanks & Regards,

    Thansk for your reply.
    Is there any workaround to implement html export of crystal report in java.
    If not when will this be available in java sdk.
    Many Thanks

  • 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?

    Please search before posting.
    Visual Studio 2010 is not meant to work with Crystal Reports 10.2.
    Download CR4VS2010 here:

  • 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:
           '2014-06-14 08:08:08.000'
          '2014-06-14 08:07:55.000'
    datetimevar minArrival;
                   and minArrival < {SVCCLASSMEASURES_VW.OLDESTARRIVALTIME} then
    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.
              '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)
    (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?

    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:
    datetimevar minArrival;
    if OnFirstRecord then minArrival := DateTime(2013, 1, 1, 0, 0, 0);
                   and minArrival > {SVCCLASSMEASURES_VW.OLDESTARRIVALTIME} then
    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:
    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.

  • 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
    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"
    CrystalReportViewer1.ReportSource = crystalReport
    crystalReport.SetParameterValue("InstanceID", CInt(Session("sessionInstanceID")))
    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.
    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:
    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

    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 Nawab

    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

  • Crystal Reports dynamic parameter does not work in InfoView

    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.

    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....

  • Crystal Reports 8.5 does not work on Vista & Windows7

    We have a program written in VB6 and we are using Crystal Reports 8.5. The reports are fine on Windows XP but are not running on Vista and Windows 7. I found many people over the internet have this issue but none of them have gotten any resolution.
    Any solution?

    Hi Nadeem,
    Please check this:
    Versions of Crystal Reports are supported on Windows Vista:

  • Crystal Report ActiveX viewer 11 not installing on windows 7 64 bit

    Hi We have a web application which calls Crystal reports. If the Active doesnot exits on the user machine it tries to download it and intall. This works find on Windows XP, Windows 7 32 bit. But on Windows 7 64 bit the activex is not getting installed.
    Any help will be appreciated.

    Crystal Reports 11 is not supported on WIN 7. Update to CR XI R2 (11.5) using the directions here:
    Where did all the Crystal Reports XI R1 and R2 fixes go?
    Then, see this blog:
    - Ludek
    Senior Support Engineer AGS Product Support, Global Support Center Canada
    Follow us on Twitter

  • Export option in Apps menu is not working in Windows-XP OS

    We have standard export option (File -> Export) in 11i oracle applications to download records from tabular block to spread sheet. We are facing problem with Windows XP OS, it will run upto export but the "fnd_gfm.tsv" is not opening (the file disappear after process is completed). any one can help me to overcome this problem.

    Please verify the following, and check then:
    - Add the application URL to the trusted sites list (From IE, go to Tools > Intetrnet Options > Security > Trusted Sites).
    - Turn off any pop-up blockers (IE, Google, MSN, AOL, Yahoo, .. etc).
    - From Windows Explorer, go to (Tools > Folder Options > File Type), make sure that files with tsv extension opens with Microsoft Office Excel.

  • Report's condensed codes not working from windows 2000

    i m using reports 2.5 , i have a character base report with condense codes
    that report runs fine from win98 but not from win2000

    I´ve just follow the url to the Microsoft Article and read it, there´s was the solution...
    Simple... on the advanced tab in the printer Properties I've clear the option "enable advanced printing features". So, the printing process on the Microsoft XP plataform it's all fine.

  • Report a problem is not working on Windows 64 bit

    I just downloaded the latest version of ITunes for 64 bit windows.  When I go to my purchase history, and click "Report a Problem" it just fires up the browser with the Apple Support page. http://www.apple.com/support/itunes/

    Go here:
    and follow the instructions to report the issue with your purchase to the iTunes Store.

Maybe you are looking for

  • I recently updated to Lion.  Suddenly my screen will get big.  How do I get it back to normal size?

    I have tried esc, command + control + F, holding down the control key and scrolling with the mouse, tapping on the mouse, and making a pinching motion on the mouse.  How do I get my screen back to normal size?

  • ICal default calendar for new event

    When I sync a new iCal event from my PDA to iCal on my Powerbook, it defaults to a named, published calendar rather than "unfiled". Because of this, I immediately have to go through and change any new or changed events that have been sync'd to preven

  • Very Loud Fan -- How to make it stop?

    I have a new MacBook Pro that I purchased in November, replaced in December. Recently, the fan has been running really loudly all the time. In one of the other posts, someone spoke about smsFanControl, that I downloaded. The fan monitor tells me that

  • Some manually artwork does not appear on ipod classic

    I spent 5 hours yesterday searching for and adding cover art to my itunes albums. When I synched it to my ipod classic some of the art shows and some does not. I tried turning off the ipod and resetting it but no luck. any ideas on how to fix this? g

  • Iphone 4 and registering

    I just got my iphone and hooked it up to itunes. It wanted to register and after putting in my info itunes gave me an error and told me to try later. I thought that I should sync any way and did that . I then disconnected my iphone and then reconnect