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

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
    thanks

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

    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.

  • 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,
    Aru

    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
    Aru

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

  • 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

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

    Hello,
    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

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

  • Crystal Reports 8.5 does not work on Vista & Windows7

    Hi,
    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?
    Thanks,
    Nadeem

    Hi Nadeem,
    Please check this:
    Versions of Crystal Reports are supported on Windows Vista:
    [https://www.sdn.sap.com/irj/scn/wiki?path=/pages/viewpage.action&pageid=64259646]
    Regards,
    Shweta

  • 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:
    http://scn.sap.com/community/crystal-reports-for-visual-studio/blog/2010/03/29/crystal-reports-xi-release-2-support-of-w…
    - 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.
    Thanks

  • Report a problem is not working on Windows 64 bit

    I just downloaded the latest 10.5.3.3 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:
    http://www.apple.com/support/itunes/contact/
    and follow the instructions to report the issue with your purchase to the iTunes Store.
    Regards.

Maybe you are looking for

  • How do I install Itunes 10.5 on windows to install IOS5 to my ipad2 ?

    Question 1, do I need Itunes 10.5 to install IOS 5 on my Ipad and Iphone 4 ? Question 2, Where do I get Itunes 10.5 to my Windows pc? And how do I install it? Question 3, Where do i register my device`s and how do I do it? Question 4, Why isen`t it a

  • Windows 8 and wifi Networks

    I've just received a replacement Dell Windows 8.1 tablet. I had the original for two weeks and it was connected to my "home" wifi network. My replacement tablet, once I'd set it up using my "Outlook" account, some how, automatically connected to my "

  • ITunes can not be acosiated with more than 5 credit cards in 30 days?

    I use prepaid my treat 25$ visa cards in iTunes, I recently tried tonadd a new one today and got this message? What can I do? Thanks

  • Add VMware vCenter host error ID 2947: Authorize Exception

    I'm evaluating Hyper-V/SCVMM for our shop. I've got a Hyper-V cluster running and added to SCVMM. I'm now trying to add a VMware vSphere vCenter host in order to convert some VMs,  and receive the following error with the Add VMware VirtualCenter ser

  • Site only works in Safari

    I'm building a new site on a mac. When tested on safari everything works as planned. On all other browsers the css borders don't show correctly and/or just two gray lines. In ie6 (haven't tested the others yet) when you go to my weddings page and mov