CodeGuru Forums -
CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic Newsletters VB Forums Developer.com


Newest CodeGuru.com Articles:

  • Installing SQL Server 2008
  • Writing UDFs for Firebird Embedded SQL Server
  • [Updated] Shutdown Manager
  • Building Windows Azure Cloud Service Applications with Azure Storage and the Azure SDK

  • Search CodeGuru:
     



    Go Back   CodeGuru Forums > Visual Basic Programming > Crystal Reports
    FAQ Members List Calendar Search Today's Posts Mark Forums Read

    Reply
     
    Thread Tools Search this Thread Rate Thread Display Modes
      #1    
    Old April 5th, 2005, 01:25 AM
    elizab elizab is offline
    Junior Member
     
    Join Date: Apr 2005
    Posts: 6
    elizab is an unknown quantity at this point (<10)
    How to export data from a CrystalReport to an excelsheet by using CrystalReportExport

    hi all,

    I have a vb6.0 project that is containing only modules(dll). Not using any VB forms. so i am not able to get crystal report control. I am displaying the report in an asp page. Database tables are connected to my report from which data will be coming.I want to extract data from a report file to an excel sheet and open it .
    ie I should get only the excel sheet as the output.
    Can i do it from the module without opening the reportfile using like...CrystalReportExport. How can I use this?Is there any other way?

    Can anyone help me..

    thanks & regards
    elizab
    Reply With Quote
      #2    
    Old April 5th, 2005, 06:15 AM
    Madhi Madhi is offline
    Senior Member
     
    Join Date: Jul 2004
    Location: Chennai, India
    Posts: 1,064
    Madhi will become famous soon enough (50+)
    Re: How to export data from a CrystalReport to an excelsheet by using CrystalReportExport

    Try this
    Code:
    CrRpt.ExportOptions.FormatType = crEFTExcel97
    CrRpt.ExportOptions.DestinationType = crEDTDiskFile
    CrRpt.ExportOptions.DiskFileName = "D:\export.XLS"
    CrRpt.Export (False)
    __________________
    Madhivanan

    Failing to plan is Planning to fail
    Reply With Quote
    Reply

    Bookmarks
    Go Back   CodeGuru Forums > Visual Basic Programming > Crystal Reports


    Thread Tools Search this Thread
    Search this Thread:

    Advanced Search
    Display Modes Rate This Thread
    Rate This Thread:

    Posting Rules
    You may not post new threads
    You may not post replies
    You may not post attachments
    You may not edit your posts

    BB code is On
    Smilies are On
    [IMG] code is On
    HTML code is Off
    Forum Jump


    All times are GMT -5. The time now is 04:52 PM.



    Acceptable Use Policy

    internet.comMediabistrojusttechjobs.comGraphics.com

    WebMediaBrands Corporate Info


    Advertise | Newsletters | Feedback | Submit News

    Legal Notices | Licensing | Permissions | Privacy Policy


    Powered by vBulletin® Version 3.7.3
    Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
    Copyright WebMediaBrands Inc. 2002-2009