Visual Studio 2008 Question

I need help with this - I am updating a VB6 program to Visual Studio 2008.  What I need to do in VS2008 is:
  - Open Crystal Report
  - log into Crystal Report
  -set the format
  -save Crystal Report as text.
Here is the code in VB6.  I'm new for VS2008 so I am having a hard time figuring this out.  
Thank you for your help!
    Dim crxApp As New CRAXDRT.Application
    Dim crxRpt As CRAXDRT.Report
    Dim strRpt() As String
    Dim intRpt As Integer
    Dim dtFirst, dtEnd As Date
    Dim cn As New ADODB.Connection
    cn.ConnectionString = "myconnectionstring"
    cn.Open
    'Print daily scrap reports
    Select Case DatePart("w", Date)
        Case 2, 3, 4, 5, 6
            ReDim strRpt(3)
            intRpt = 1
            strRpt(1) = "Y:\MP\REPORTS\REPORT1"
            strRpt(2) = "Y:\MP\REPORTS\REPORT2"
            strRpt(3) = "Y:\MP\REPORTS\REPORT3"
            'Print daily scrap reports
            For intRpt = 1 To 3
                Set crxRpt = crxApp.OpenReport(strRpt(intRpt) & ".rpt")
                crxRpt.Database.Tables(1).SetLogOnInfo "mylogoninfo"   (can't figure out how to do this part in VS2008)
                crxRpt.ReadRecords
                crxRpt.DisplayProgressDialog = False
                With crxRpt.ExportOptions                               (how do I set the export options)   
                    .FormatType = crEFTPaginatedText
                    .UseDefaultCharactersPerInch = False
                    .UserDefinedCharactersPerInch = 10
                    .NumberOfLinesPerPage = 67
                    .DestinationType = crEDTDiskFile
                    .DiskFileName = strRpt(intRpt) & ".txt"
                End With
                crxRpt.Export (False)
            Next intRpt

You can try using the reportdocument object to do the following:
     Objective                                             method
Open Crystal Report                    ReportDocumentObject.Load()
Log into Crystal Report                ReportDocumentObject.SetDatabaseLogon() 
Set the format                             ExportToDisk()  
Save Crystal Report as text.         ExportToDisK (Export in txt format).
You can refer to:
http://devlibrary.businessobjects.com/BusinessObjectsXIR2SP2/en/devsuite.htm
for documentation and samples.
Hope it helps!
AG.

Similar Messages

  • CR XI used with Visual Studio 2008 Question

    I have been using CR Xi version 11.0.0.1994 with VS2003 with no issues.
    I have converted my WEB application to VS 2008 and when i goto export a report, to PDF i get the following error:
    Method 'ISCREditableRTFExportFormatOptions_reserved5' on type 'CrystalDecisions.ReportAppServer.ReportDefModel.EditableRTFExportFormatOptionsClass' from assembly 'CrystalDecisions.ReportAppServer.ReportDefModel, Version=11.0.3300.0, Culture=neutral, PublicKeyToken=692fbea5521e1304' is overriding a method that has been overridden.
    This is what i have in my web.config:
                    <add assembly="CrystalDecisions.CrystalReports.Engine, Version=11.0.3300.0, Culture=neutral, PublicKeyToken=692fbea5521e1304"/>
                    <add assembly="CrystalDecisions.ReportSource, Version=11.0.3300.0, Culture=neutral, PublicKeyToken=692fbea5521e1304"/>
                    <add assembly="CrystalDecisions.Shared, Version=11.0.3300.0, Culture=neutral, PublicKeyToken=692fbea5521e1304"/>
                    <add assembly="CrystalDecisions.Web, Version=11.0.3300.0, Culture=neutral, PublicKeyToken=692fbea5521e1304"/>
                    <add assembly="CrystalDecisions.ReportAppServer.ClientDoc, Version=11.0.3300.0, Culture=neutral, PublicKeyToken=692fbea5521e1304"/>
                    <add assembly="CrystalDecisions.Enterprise.Framework, Version=11.0.3300.0, Culture=neutral, PublicKeyToken=692fbea5521e1304"/>
                    <add assembly="CrystalDecisions.Enterprise.InfoStore, Version=11.0.3300.0, Culture=neutral, PublicKeyToken=692fbea5521e1304"/>
                    <add assembly="CrystalDecisions.Enterprise.Web, Version=11.0.3300.0, Culture=neutral, PublicKeyToken=692fbea5521e1304"/>
    Does anyone know if this is a Release issue?
    I noticed there are Release 1 and 2 out...is that something I have to buy? or can i download them through the SAP site? 
    I can view the reports i just cant export them...can someone let me know what they think.
    Thank you in advance.

    Thank you all for your kind and quick responses.
    I would like to stick with VS2008....so that leaves me 1 option
    Use the embedded CR2008(10.5) that comes bundled with VS2008
    frankly i dont really use CRxi I usually do all my Report Design in VS2008 using the Designer, so maybe it wont be that large of a deal.
    The manner in which i use CR is i set the report via a Dataset( i think they call that the Push method)
    ~~~~~~~
    On my Windows Server 2003 (IIS) i have a website for my 1.1 website....that uses CRXi
    Id like to have another website 2.0/3.5 that uses CR2008, what merge modules do i need to make that happen? or cant it?
    I would like to have both sites online...both sites are managed and hosted internally all on 1 server.

  • New to Visual Studio 2008, not new to CR - but have  question

    Hi,
    I started a position to build reports for a small company.  They use VS 2008 and Crystal 2008 (basic).  I am not new to Crystal Reports, been using it since version 4.0.  But I am new to integrating it into Visual Studio or using it to deploy reports via a web application.
    I was able to create a dataset, connect Crystal to the Dataset in Visual Studio and design a report. 
    There are two tabs on the bottom of the Crystal Window - one is to the design side and one is to preview the main page of the report.
    So here in lies the problem - when I go to view the results - there are none.  It is random or dummy data being presented in Visual Studio 2008. 
    I have scoured MSDN and SAP forums looking for help in this.  I see other posts that elude to the same issue, but --there has to be some way to see the data in Visual Studio.
    Can someone explain to me why I don't see the real data from the dataset?   And more importantly where is the tutorials for Visual Studio 2008 and Crystal Reports 2008?
    Thanks so much for your help!

    Hi,
    I have also seen the same, that is report displays dummy data at my end however when you run the report from application you get the data that is when you pass the dataset to the report at runtime and not while previewing the report. I believe this is because when we use datasets to design a report we consider the schema of the report mainly not data.
    If you mean that you do not get any data in the report then I would suggest you to use the below mentioned code to generate an xsd file, after filling up the dataset so that the report schema and the dataset schema matches.
    datasetObject.WriteXml("c:\\temp\\myData1.xml",XmlWriteMode.WriteSchema);
    Regards,
    AG.

  • Create plug-in for Adobe with Visual Studio 2008

    Hi to all, I'm Italian excuse for my english,
    I see Adobe SDK Help, but I don't see something for built a plug-in with Visual Studio 2008, I see only built with Visual Studio 2005!
    my asks is : Because ? Can I create a plug-in with Visual Studio 2008? if yes WHAT did it?
    thanks

    Post your question in the 'Acrobat Developers SDK' forum.

  • XI, Service Packs and Visual Studio 2008

    Hi
    Sorry if these questions have already been answered but I have tried to search and get the answers myself with lots of link following and frustration.
    We are developing a Windows forms application using Visual Studio 2008.
    We need a good solid report tool for both designing and viewing reports based on SQL data.
    Due to past exposure to Crystal, we have decided to use a Developer Edition of Crystal Reports XI we have had for a long time (think it was a promotional offering when XI was first released).
    The Help-About version is 11.0.0.1282
    I have a couple of questions:
    1. What service packs can I apply to this build ? Looking on the download section of this web site, there are no updates available for XI (there are plenty for XI R1 and XI R2). Can I apply the R1/R2 updates to this build, if not can I upgrade to any of these builds ?
    2. I have noticed that even when installed after VS2008, the Crystal Version of the Viewer is still 10.5.0.0
    I can created reports in XI and use them with this viewer but can I get a XI build of the viewer and other .NET objects. If not what are the options (apart from upgrading to 2008, this is price restrictive).
    If there are already answers or knowledge-base articles containing the answers to these questions please just post the links, if not then some help would be appreciated as this whole thing is really confusing and I really don't want to go back to trying to use the Microsoft Reports package shipping with VS2008.
    Many thanks
    Mark Harby
    Nottingham. UK

    HI,
    First of all:
    If you are planning to use VS2008 then you need to use CR 2008 SP0 or above to make it compatible.
    1. What service packs can I apply to this build ? Looking on the download section of this web site, there are no updates available for XI (there are plenty for XI R1 and XI R2). Can I apply the R1/R2 updates to this build, if not can I upgrade to any of these builds ?
    Officially CRXI has reached the end of life cycle.
    Upgrade from CRXI R1 to R2 is free. You need to download the CRXIR2 sp2 setup and install the complete product alogn with SP2 using the CRXIR1 keycode.
    2. I have noticed that even when installed after VS2008, the Crystal Version of the Viewer is still 10.5.0.0
    I can created reports in XI and use them with this viewer but can I get a XI build of the viewer and other .NET objects. If not what are the options (apart from upgrading to 2008, this is price restrictive).
    As stated you need to either use CR that comes with VS2008 or use CR2008 with SP0 or above. That is why you are unable to see the upgraded viewer. The other options would be to use VS2003 with CRXI and above or use VS2005 and CRXIR2 sp2 and above.
    Some links:
    [Compatibility chart.|https://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%7B6163636573733d36393736354636443646363436353344333933393338323636393736354637333631373036453646373436353733354636453735364436323635373233443330333033303331333233313335333833323336%7D.do]
    [Platform guide for all products.|Articles]
    Hope I have covered them all!
    Regards,
    AG.

  • Crystal Reports Bundeled With Visual Studio 2008

    We are currently using the version of Crystal Reports that comes with Visual Studio 2008.  Many reports have 5-10 sub reports.
    We are running a ASP.NET application and this application passes to the reports a XSD File as the data source. It can take up to 5 minutes sometimes for a report to process.
    A couple of questions.
    1. Is there a concurrent user limit (I have read 3 or 5)
    2. Do the reports get queued up if more than 3 users are running a report?
    3. If we have sub reports does each report count as a "user" for example if we have one user on the machine and they run the report that has 10 sub reports, would that be hitting a user limit?
    3. Would upgrading to the 2008 version help us at all?
    Any other recommendations?
    Thank in advance!

    1. Is there a concurrent user limit (I have read 3 or 5)
    concurrent user limit is 3
    2. Do the reports get queued up if more than 3 users are running a report?
    + Yes. If you go to the Event viewer, you should be bale to see messages along the lines of; license not found, waiting x seconds+
    3. If we have sub reports does each report count as a "user" for example if we have one user on the machine and they run the report that has 10 sub reports, would that be hitting a user limit?
    + There are two distinct counts. Users, and print jobs. The print engine, can process 3 concurrent users. A print job, consists not only of the report, but also it's subreports. A page through is a print job. A search through the report is a print job. Print job limit is set in the registry and by default it is set to 70. The upshot of this is; if you have one report and one subreport in the detail section and the detail section has 100 records, you will run 1001 print jobs.
    4. Would upgrading to the 2008 version help us at all?
    Probably not. The same structure exists in CR 2008. Now, you say that you pass an XSD file to the report. Are you actually passing and XSD or a Dataset?_
    Finally, remember that if you have 10 subreport in a report, you are running 11 print jobs right there. If one or more of those subreports are in the detail section, the number of print jobs increases accordingly.
    For more information see the article [Crystal Reports Maximum Report Processing Jobs Limit  v2.doc|https://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/f053713e-3e3d-2c10-2a81-f79259e54023]
    Ludek
    Follow us on Twitter http://twitter.com/SAPCRNetSup
    Edited by: Ludek Uher on Dec 16, 2009 10:06 AM

  • Visual Studio 2008 with BizTalk 2009 Missing Assembly Reference - Developing under Windows7

    I'm having a similar issue to this....> http://social.msdn.microsoft.com/Forums/en-US/2df94010-5755-4982-a02d-81f8feb51fda/visual-studio-2008-with-biztalk-2009-missing-assembly-reference?forum=biztalkgeneral
    Prior to going to Win7, I was developing on a Win-XP machine. I used to delete the generated code and have VS generate it again, but no luck. I get errors in the Build, similar to what shows in the Message Assignment shape in the orc. It's complaining about
    a missing part of a Multi-part message.  Oh, and the Multi-part message is a schema created in VS2005/BizTalk2006 R2, which was created on a separate Win-XP machine.
    Just wondering if anyone has come up with a fix to this? The previously documented entry did not seem to have a solution.
    Thanks.

    Jeff,
    Do you see your_orchestration.odx.cs ?
    If you do Can you try as following:
    1. Take backup of whole solution
    2. Delete all .cs files associated with biztalk artifacts, like odx.cs, xsd.cs, btm.cs
    3. Open orchestration and in any one of the expression shape copy all statements.
    4. Click OK to close the Expression window.
    5. Build the solution. (you should get errors)
    6. Goto expression and paste code.
    7. Build
    This has worked for me in past. May be it will work for you too.
    If this answers your question please mark it accordingly. If this post is helpful, please vote as helpful.

  • Visual Studio 2008 Toolbox - i can use crystal reposts 2008

    Hi
    I have a strange problem. I reintall my machine with a new copy of windows vista 32 bits, then I install the visual studio 2008 Pro (not install de crystal reports basic). Then I install de crystal reports 2008.
    In the vs2008 toolbox donu2019t appears the icon to use de crystal reports view.  I try to add this items from de list (.net frameworks components) but they are no there. I try view in de c:\windows\assembly in they are there.
    I can I put in the vs2008 ?
    Thanks
    Jorge Rocha

    Hi Jorge
    It seems that you are having issue with Visual Studio .Net.
    Post your question in :Crystal Reports and Xcelsius » .NET Development - Crystal Reports.
    That forum is monitored by qualified technicians and you will get a faster response there. Also, all .NET SDK queries remain in one place and thus can be easily searched in one place.
    Thanks
    Soni

  • Error Ora-604 on connect from Visual Studio 2008 to Oracle database

    Hello!
    I have installed Oracle 9.2.0.6 Database, Microsoft Visual Studio 2008 and today I succesfully installed ODP.NET 1110621.
    I wrote a simple console application like this:
    using System;
    using System.Collections.Generic;
    using System.Linq;
    using System.Text;
    using Oracle.DataAccess.Client;
    using Oracle.DataAccess.Types;
    using System.Data;
    namespace ConsoleApplication1
    class Program
    static void Main(string[] args)
    OracleConnection c = new OracleConnection();
    c.ConnectionString = "Data Source=(DESCRIPTION="
    + "(ADDRESS_LIST=(ADDRESS=(PROTOCOL=TCP)(HOST=192.168.1.1)(PORT=1521)))"
    + "(CONNECT_DATA=(SERVER=DEDICATED)(SERVICE_NAME=ssss)));"
    + "User Id=user;Password=pwd;";
    c.Open();
    OracleCommand cmd = new OracleCommand();
    cmd.CommandText = "Select * from CATEGORY_TABLE";
    cmd.CommandType = CommandType.Text;
    cmd.Connection = c;
    OracleDataReader dr = cmd.ExecuteReader();
    while (dr.Read())
    Console.WriteLine(dr[0].ToString() + " " + dr[1].ToString());
    dr.Dispose();
    cmd.Dispose();
    c.Dispose();
    Console.ReadLine();
    at line c.Open(); appear runtime error : ORA-604 Error occurred at recursive SQL level 1
    How to solve it?

    Your issue is not SQL and PL/SQL so much as .NET so I would suggest you ask the question in the "Windows and .NET" forum.
    But a couple of thoughts:
    1. Your database is undoubtedly not at "HOST=192.168.1.1"
    This IP address is generally the address of the router not the server.
    2. Why would you install an unpatched version of software so old it is in desupport mode and then try to work with it using a current
    version of a Microsoft product? Would you be comfortable installing a 10 year old version of a Microsoft product and expect it to
    work well with Oracle 11gR1?

  • Crystal Reports for Visual Studio 2008

    We are currently using Visual Studio 2005 w/Crystal Report 11.5.  We have been unable to migrate to Visual Studio 2008 up until now because the only version of Crystal Reports that was supported for Visual Studio 2008 was version 10 I believe, and that version did not contain some of the features that we are using in version 11.5. 
    I see that there is now an upgrade available to integrate Crystal Reports 2008 with Visual Studio 2008.  My question is will this version of Crystal Reports give us the same or more features that we are currently getting with Crystal Reports 11.5?

    Hi Clint,
    It is a newer version so you should only gain functionality and not lose any from XI R2.
    Make sure you use Crystal Reports 2008 Service Pack 0 as it is the version that is supported with VS.NET 2008.
    Jason

  • Multi-byte characters are garbled in SQL Server Business Intelligent Development Studio (Visual Studio) 2008

    Hi,
    I'm revising an existing report which was developed by my predecessor. Though it works fine in the production environment, when I open the .rdl file with SQL Server Business Intelligent Studio (Visual Studio) 2008 on my client
    PC, I find all the multi-byte characters are garbled. When I open it with the BIDS (the same version) on the server, it shows everything correctly.
    The fonts for the controls (labels) are Tahoma and it's originally only for alphabets, but multi-byte characters are supposed to be displayed in MSGOTHIC by Font Link as they are displayed correctly on the server.
    Could anyone advise me how to solve this issue? I know I can fix it by changing the fonts from Tahoma to MSGOTHIC for all the contrls, but I don't want to do it.
    Environment:
    My PC:Windows7 64bit /Visual Studio 9.0.30729.1 / .NET Framework 3.5 SP1
    Server:Windows Server 2003 R2 /Visual Studio 9.0.30729.1 / .NET Framework 3.5 SP1
    Garbled characters sample:
    FontLink - SystemLink
    Please let me know if you need any more information. I would appreciate your advice!

    Hi nino_miya,
    According to your description, when you display the report in client side, characters are garbled.
    In your scenario, please check if the Language is the same as the report on production server. Also please check if the data of Tahoma in registry on client PC is the same as server. If those two settings are the same, please specify font of the each
    control as MSGOTHIC manaually on client PC.
    If you have any question, please feel free to ask.
    Best regards,
    Qiuyun Yu
    Qiuyun Yu
    TechNet Community Support

  • Registration Key for Visual Studio 2008 Express

    When trying to register Visual Studio 2008 Express, I get directed to a page that no longer exists. How am I supposed to get a registration key for it?
    I don't actually need the GUI, just the command line compiler. Is the compiler affected by the registration?
    And I can not move to a newer version because of compatibility issues. The newest version that I can use is 2008.
    Thanks.

    When trying to register Visual Studio 2008 Express, I get directed to a page that no longer exists. How am I supposed to get a registration key for it?
    I don't actually need the GUI, just the command line compiler. Is the compiler affected by the registration?
    And I can not move to a newer version because of compatibility issues. The newest version that I can use is 2008.
    You really have no choice. Visual Studio 2008 Express is no longer supported. It's time to move on.
    The only way out, if you really really really can't evolve to a newer version (and I really question why you can't) is to purchase a retail version of Visual Studio 2008.

  • Can I still buy Visual Studio 2008?

    Hello,
    Is it still possible to buy Visual Studio 2008? I cannot find anything but an MSDN subscription for VS2013. 
    Sincerely, 
    George

    "You mentioned third party vendors... would a second-hand copy from Ebay be ok to use? "
    That's a tough question to answer, because there is little control over what is offered on buy/sell sites. I suggest you do your due diligence on the transferability of the license for any used software offered for sale. Ask the seller if they will include
    a written statement transferring the license.
    You may be able to get further help with licensing questions here:
    Since the question is a license issue, you can call
    1-800-426-9400,
    Monday through Friday, 6:00 A.M. to 6:00 P.M. (Pacific Time) to speak directly to a Microsoft licensing specialist, and you can get more detail information from there. Worldwide customers can use the Guide to Worldwide Microsoft Licensing Sites to find contact
    information in their locations:
    http://www.microsoft.com/licensing/

  • Connecting Visual Studio 2008 to Team Foundation Server 2012/2013

    I currently have many projects in VS 2008.  
    We are able to build and deliver all of the products to the production servers.
    I want to connect VS2008 to VisualStudio.com so I can create an environment for Beta Testing with VisualStudio.com and Azure.
    I have started from scratch:
    Build a VMWare Virtual Machine - Windows 7 Ultimate
    Added all of the Windows Updates
    I installed Visual Studio 2008 - Professional
    I updated Visual Studio 2008 to SP1
    I have installed VS2008 Team Explorer
    Unable to install GDR2 - with message "Visual Studio Team System 2008 Database Edition GDR does not apply, or is blocked by another condition on your system. '
    I attempted to follow the "more information" instructions but there were no previous version to uninstall.
    I attempted to login to Team Foundation Server (https://nnnnnn.visualstudio.com/DefaultCollection) and receive the "TF31002: Unable to connect to ....
    I am able to login to the visualstudio.com site without any issue. 
    I have been working on this for days and no matter what I have read and tried, I cannot seem to get past this point.  
    I tried using a laptop I have and did the same steps as above with the same results.  
    It is obvious I am missing a step or that this process is longer possible.
    Anyone have any suggestions?
    Is there a "support" number that might help me resolve this?  

    Hi Zanyfrong,     
    Thanks for your post.
    To using VS 2008 connect to TFS 2012/2013 or VSO, please install components follow the below order:
    Visual Studio 2008
    Visual Studio 2008 SP1
    Team Explorer 2010
    Visual Studio 2010 SP1
    Visual Studio 2010  GDR
    Microsoft MSSCCI Provider for Visual Studio 2010
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.

  • Adding a graph in visual studio 2008

    Post Author: computerdude
    CA Forum: .NET
    I am building an application using Visual Studio 2008 with Crystal Reports. I am trying to add a graph to the report in the Report Header but the OK button is not highlighted.
    I have added a data source to the report. Data is being pulled from a .net class.
    Is there something else that I have missed doing?
    I have also tried to add a report with Crystal Reports. The graph is added but when I try to edit it the OK button does not show their either.
    Any help would be appreciated.

    Hi John,
    There are 3 things that I would have checked:
    1) Do you test machine have got Crystal dlls having the version 10.5.3700.0 in c:\windows\assenbly folder?
    2) if it is a web application, then do the web.config has got the crystal dlls of the same version?
    3) DO i have any dlls of old version in applications bin folder?
    4) If all other seems ok I would have run Modules.exe from [here|www.sysinternals.com] in dev and production machine to compare the dlls and files.
    Hope it helps!
    AG.

Maybe you are looking for

  • Load an existing Berkeley DB file into memory

    Dear Experts, I have created some Berkeley DB (BDB) files onto disk. I noticed that when I issue key-value retrievals, the page faults are substantial, and the CPU utilization is low. One sample of the time command line output is as follow: 1.36user

  • Automated Batch Reports

    We have Oracle 10g reports (PDF format) and ASP reports (Excel format). Now I want to automate these reports which will run on every Sunday. It should store the reports in the specified drive. Also all the reports will accept input parameters. One mo

  • Ios 7 problem

    i downloaded ios7 beta without having a UDID and now my iphone 5 says this device is not registered as a part of iphone developer program. i am a user but accidentally turned my ID to developer . what should i do?

  • Vision Acquisition Software installed, BUT why is the IMAQdx missing from the function palette?

    I just installed to the labview 2011, and many other modules and softwares including this VASAugust2010. But the IMAQdx is missing from the function palette (vision and motion). However the NI-IMAQ 4.5, IN-IMAQ IO 2.4.0 and NI-IMAQdx 3.7 are all clea

  • FICO question

    Hi all, is there a reason for the following, I need to know why is this good or bad. reasons against and impact of having a go-live date in the middle of a financial period rather than at period end? thanks all