Crystal for VS 2010 creates duplicates on edit

Hey everyone, after uninstalling the old Crystal Reports for Visual Studio and installing the new VS 2010 version, and after converting all my reports to the new format (whatever that means), a duplicate vb file is created every time I edit and save a report. So if I have some report "myreport.rpt", whenever I edit and save that report, I end up with two vb files, one named "myreport.vb" and the other named "myreport1.vb". The two files are exactly the same. This of course causes build errors, and so I have to delete the duplicate file every time I make a change, which is very annoying. Has anyone else had this issue? Does anyone have a solution?

Hello!
At our company, we run with the same problem, and this is the only way we found to solved it.
Lets assume the report name is rptExample.rpt, and the code behind, is named automatically rptExample.cs.
Then, if you install a new version for the Crystal Reports for Visual Studio, ex. from 13.0.3 to 13.0.5, sometimes it creates another code behind with the number 1 at the end, rptExample1.cs.
So, to solve it, delete all the code behinds (rptExample.cs and rptExample1.cs), then right click on the rptExample.rpt and press Rename, rename the file to rptExample1.rpt and press Enter. The visual Studio is going to make a question "You are renaming a file. Would you also like to perform a rename in this project of all references to the code element 'rptExample1'?" press YES.
Then the VS is going to create a new code behind named rptExample11.cs (weird!!!), now rename again the report file name, from rptExample1.rpt to rptExample.rpt, now the VS is going to show you an error message if you have source control "This operation cannot be completed. You are attempting to move or rename a source-controlled item where an item of the same already exists, the item is exclusively locked elsewhere or the item path is invalid", there is no other option to press OK.
Now, delete again the code behind rptExample11.cs and right click on the report file, rptExample.rpt and press the option "Run Custom Tool", and there you have the right file name rptExample.cs.
This was the only way that we found to have the same name for the code behind and the report.
Bye!

Similar Messages

  • Crystal for VS 2010 - formatting issues in viewer (extra space) again

    We're having the same problem as the one in this thread link:[Crystal 2008 for VS 2010 - Report formatting issues in viewer (extra space);. There's no resolution in the thread and it's been closed. I'm hoping that creating a new thread may cause someone to answer this problem.
    We have a Windows App that we just converted to .NET 4.0 and updated the viewer to the Crystal Reports Viewer in VS 2010. When we open a report that has a large block of static text in paragraphs left-aligned the spacing around punctuation is awful - there's almost a tab's worth of space between the last letter and the period. U.S. looks like US. This happens both with reports that were created in VS2008 and ones that were created in VS2010. It is only a problem in the viewer's display - if we print to a printer or export to PDF the spacing around punctuation is fine. It's also not a problem on our development workstations which are running Windows 7, but is a problem on our test servers which are running Windows 2003 Server. I ran the modules tool and found that the version of usp10.dll does match what the previous thread said it should be and it's coming from the c:\program files\sap businessobjects\crystal reports for .net framework 4.0\common\sap businessobjects enterprise xi 4.0\win32_x86\ folder. On my development machine when I run the modules tool I notice that a second instance of usp10.dll is called which is the version installed with Windows 7. We've tried changing fonts but none of the ones we've tried (originally in Times New Roman, 12, tried Arial, Times and various sizes) have made a difference. We also tried changing the print options with no improvement. The only thing that makes it slightly better is full-alignment but our customer insists that it be left-aligned.

    Re. the other thread. I never did receive a sample of the report to test with. Perhaps I can get one from you? I need you to ensure that the issue occurs with a "saved data" report. If it does, let me know if you can share it and I'll contact you via email. My comment in the other thread re. available time, priorities, etc., still applies. Also, just to be clear. Service Pack 2 for CRVS2010 is closed now. Thus if I am able to reproduce the issue the fix will be targeted for October \ November time frame - no guarantees though...
    Ludek
    Follow us on Twitter http://twitter.com/SAPCRNetSup
    Got Enhancement ideas? Try the [SAP Idea Place|https://ideas.sap.com/community/products_and_solutions/crystalreports]

  • Handle leak - Crystal for VS 2010

    I've been playing with the Crystal VS2010 runtime and have come across a problem which I believe might be a handle-leak in Crystal Reports.
    I can reproduce this at will using the following example:
    I created a project with a typed dataset (containing 2 empty tables with only a single column each).  I then added a blank report to the project and only added a single text object to it - no data is loaded from the dataset at all.
    Then, I can execute the following 100 times in a loop:
    using (DataSet1 dataSet = new DataSet1())
       using (CrystalReport1 report = new CrystalReport1())
          report.SetDataSource(dataSet);
          report.Close();
       dataSet.Clear();
    This I then follow with a forced garbage collect, just to make sure everything was cleaned up properly.  However, +- 100 new handles were opened and using sysinternals' handle.exe, these show up as Mutexes e.g.:
    1324: Mutant        \Sessions\1\BaseNamedObjects\CrystalReportXalanInitilizeMutex2916l
    I haven't been able to find any information about this on the forums or the internet - can anyone confirm if this is a known issue?  (Or am I doing something stupid? )
    Thanks!

    Hi,
    I've tried some of your suggestions:
    In you report check on No Printer and check off all o f the Verify Database options.  - Made no difference
    Also, be sure to use the Legacy mode in your app.config file, search for it. MS issue with DataSets. - Also, no difference
    GDI Objects  - These don't budge - this is a Mutex leak, not a GDI leak
    As for datasets, I'm not filling the dataset - its empty.  So a database does not enter into the equation, and no database connection handles are therefore ever created.
    Also, I tried the printer theory by running the app on a machine without any printers installed - the problem persisted.  Machines also have entirely different graphics card drivers, so highly unlikely to cause the problem.
    I've also tried targeting both Framework 4.0 and Framework 2.0 - the leak occurs in both cases.
    The code that I posted was only a snippet yes, but it really is 90% of the test-app.  This is the whole content of Form1.cs (a single-button form):
    using System;
    using System.Windows.Forms;
    namespace CrystalLeakTest
        public partial class Form1 : Form
            public Form1()
                InitializeComponent();
            private void ProduceReport()
                using (DataSet1 dataSet = new DataSet1())
                    using (CrystalReport1 report = new CrystalReport1())
                        report.SetDataSource(dataSet);
                        report.Close();
                    dataSet.Clear();
            private void button2_Click(object sender, EventArgs e)
                for (int i = 0; i < 100; i++)
                    ProduceReport();
                GC.Collect();
                GC.WaitForPendingFinalizers();
                GC.Collect();
                MessageBox.Show("Done");
    The rest of the app is simply a blank report, a blank typed dataset (with 1 table and 1 column - no data).  That really is it
    Is there anything else I can try?
    Thanks!

  • How do I prevent Lightroom from creating duplicates if the edit in photoshop is not saved?

    Hello!
    How do I prevent Lightroom from creating duplicates if the edit in photoshop is not saved?
    So... Quite often I choose to 'Edit in photoshop' from Lightroom but then end up not saving the result. (for example, because I just wanted to experiment with the photo, or I'm not satisfied with the results)
    However, Lightroom always creates a copy of the original photo, which stays in the catalog even if the photoshop changes aren't saved.
    Is there a way to stop this, and only add a photo if it has been edited in PS?
    Using LR5 with PS CS6 on a Mac 10.9
    THANK YOU!

    Select 'Open the Image in PS as a Smart Object'. The image will be rendered by ACR in memory without being written to disc until you save it from within PS.

  • CRVS2010 Beta - Licensing for "Crystal Reports for VS 2010"

    Hello,
    We have Crystal reports 2008 developer license which was upgraded from Crystal reports 11 Developer edition.
    We have migrated to VS 2010 and need to use "Crystal Reports for VS 2010". But we only need to use the runtime version of it and are not using the crystal reports designer. Do we need to purchase/upgrade the license? If yes, then could you please let us know the details? 
    Thanks,
    Gulab.
    Subject modified as per the sticky post at the top of this forum; [Crystal Reports for Visual Studio 2010 Beta - read before posting|Crystal Reports for Visual Studio 2010 Beta - read before posting;
    Edited by: Ludek Uher on Sep 9, 2010 6:56 AM

    CRVS 2010 being a Beta, I am not sure that the licensing details have been worked out yet. However, going by past versions;
    Runtime is free for win apps
    Runtime is free for web apps - as long as these are used internally. See [SAP Crystal Reports Licensing Information|http://www.sap.com/solutions/sap-crystal-solutions/query-reporting-analysis/sapcrystalreports/licensing/index.epx] for more details.
    The above 2 I suspect will be carried over to CRVS 2010 - no guarantees, but this would make sense.
    Runtime for web apps deployed to 3rd parties does require extra licensing. The licensing for versions of CR that bundled with .NET 2006 and .NET 2008 are described here:
    http://support.microsoft.com/kb/317789
    I'll check with Program Management if all of the above applies and confirm once I get an answer.
    Ludek

  • Crystal Versions for VS 2010

    I would like to know which versions are available for use with Visual Studio 2010. Specifically, can both Crystal Report 13 and Crystal Reports 11 both work with Visual Studio 2010?  Can I create and save a Crystal Reports 11 file and a Crystal Reports 13 file using VS2010?
    I have an issue where a developer created several custom Crystal reports through Visual Studio 2010, and then saved the output as Crystal version 13 files.  Our corporate accounting application uses a runtime version of Crystal Reports 11 and all standard reports work fine using this runtime version.  The issues appear with the custom reports in that the print preview screens freeze when attempting to close them (after the user has printed the documents).
    Please advise.

    Neither Crystal 2011 or 2013 come with the SDK.  There's actually very little difference between them - 2013 was primarily a "rebranding" of 2011 to go with BusinessObject 4.1.
    So, you'll get the separate download for Crystal for Visual Studio (see here: http://scn.sap.com/docs/DOC-7824) and it will work with reports designed in either version, as well as reports designed Crystal 2008 and possibly with earlier versions (back to Crystal 9) as well.
    -Dell

  • Crystal 2008 for VS 2010 - Report formatting issues in viewer (extra space)

    Hello,
    We have a Windows Form application developed in VS 2010 using the Crystal 2008 for VS 2010 runtime. We are having issue with extra spaces in text objects. For example: in a report header we have an object that has text similar to this:
    This report will print a list of all Serial Numbers in the Serial Table that are missing related Serial Meter records.
    When we run it within Crystal 2008 Designer, it looks great; however, when we run it from the Windows Viewer we developed, it looks like this:
    This report will print a list of all Serial Numbers in the Serial Table that are missing related Serial Meter records    .
    The viewer places extra spaces between records and the period (.).  We also noticed it places spaces in phone numbers:
    952 -555-555
    There's an extra space between the 2 and the dash (-).
    One thing we noticed is, if you change the viewer zoom to 98%, then the extra spacing goes away.
    We just upgraded to SP1 for Crystal 2008 for VS 2010 and still the same issue. We are referencing these DLLS: CrystalDecisions.CrystalReports.Engine.dll, CrystalDecisions.ReportSource, CrystalDecisions.Shared, and CrystalDecisions.Windows.Forms all version are 13.0.2000.0.
    Any help would be great.
    Thank you,
    Tyler

    Hi Tyler,
    I copied the text from your other post into a new report and changed the fonts and previewed in my C# test app and I don't see the problem.
    "We have a Windows App that we just converted to .NET 4.0 and updated the viewer to the Crystal Reports Viewer in VS 2010. When we 952-555-555 open a report that has a large block of static text in paragraphs left-aligned the spacing around punctuation is awful - there's almost a tab's worth of space between the last letter and the period. U.S. looks like US. This happens both with reports that were created in VS2008 and ones that were created in VS2010. It is only a problem in the viewer's display - if we print to a printer or export to PDF the spacing around punctuation is fine. It's also not a problem on our development workstations which are running Windows 7, but is a problem on our test servers which are running Windows 2003 Server. I ran the modules tool and found that the version of usp10.dll does match what the previous thread said it should be and it's coming from the c:\program files\sap businessobjects\crystal reports for .net framework 4.0\common\sap businessobjects enterprise xi 4.0\win32_x86\ folder. On my development machine when I run the modules tool I notice that a second instance of usp10.dll is called which is the version installed with Windows 7. We've tried changing fonts but none of the ones we've tried (originally in Times New Roman, 12, tried Arial, Times and various sizes) have made a difference. We also tried changing the print options with no improvement. The only thing that makes it slightly better is full-alignment but our customer insists that it be left-aligned."
    I threw in the telephone number also you noted in this post.
    I created a new report and copied the text above into a text object and then previewed. I then changed the fonts to various types and I don't see the problem.
    I also used Courier New because it's a fixed font layout, meaning the same letter always uses the same amount of space, and it shows just fine also.
    I've seen issues where the Video driver and screen size can affect the spacing. Usually updating the Video driver or changing your screen resolution resolves the problem.
    What Video Drivers and Monitor are you using?
    And What OS?
    Thank you
    Don

  • Crystal Report for VS 2010 -  The report page doesn't show in IIS

    Hi all, I get a problem with Crystal Report for VS 2010 (version 13).
    My website is built using VS 2010 (asp.net 4.0) and Crystal Report v13.
    It work okay when I run it in the VS 2010. But when I host my site in the IIS 7, when going to the page that contain the Report, the report show nothing.
    The page is blank except my button I've created to export the Report.
    The weird thing is when I click the my button (export to pdf), it doest export the correct pdf.
    Note that this happens in my development machine: windows 7 32bit.
    I've spent a day figure out problem but still haven't found the problem.
    Hope you can help me.

    Let's start with the viewer. Sounds like the viewer directory is not configured correctly. Use [https://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/50aa68c0-82dd-2b10-42bf-e5502b45cd3a] article as a guide on how to do this.
    I still do not have info on the following:
    it means even though the crystal report viewer doesn't show, i still can export it's content to pdf.
    With all due respect, think of it this way;
    You're the mechanic. I'm a guy with a car. I text you; I'm sitting in my car. It will not get me to point A. Fix it.
    In a nut shell, that is what you are asking me to do with the export. The more detail you provide, the better. See if you can provide the info re export I requested in my previous post.
    Ludek

  • I have the G Drive 1 TB (GEN4 1TB) external drive purchased in 2010. I need to connect to my new MacBook Pro. I'm using the external drive for media storage of my video editing projects. Will a 800fw to thunderbolt adapter cable work?

    I have the G Drive 1 TB (GEN4 1TB) external drive purchased in 2010. I need to connect to my new MacBook Pro. I'm using the external drive for media storage of my video editing projects. Will a 800fw to thunderbolt adapter cable work? I understand that using a USB port connection is not fast enough for video editing. I read somewhere the G Drives don't connect well to MacBook Pro.
    thanks
    larry

    I doubt this can be relocated or moved so you might want to just repost in the macbook pro area.
      MacBook Pro
    https://discussions.apple.com/community/notebooks/macbook_pro
    https://discussions.apple.com/community/mac_os?view=discussions
    Can you afford a new Thunderbolt case and cable? any case with FW800 is going to be slow 72MB/sec and less, and any new 1TB drive is capable of 75MB/s minimum up to 125MB/sec.
    Thunderbolt storage can of course when setup properly reach 100's of MB higher using multiple drives.
    Use what you have for a system backup or for secondary backup storage.
    you might be able to take the drive - most cases allow you to open and swap drives - and use this:
    G-Technology 1TB G-DRIVE mini High-Speed Portable Hard Drive                                   
    or this:
    http://store.apple.com/us/product/HB137VC/A/g-technology-4tb-g-raid-professional -high-performance-dual-drive-hard-drive?fnode=5f

  • Looking for an app that I can create,search and edit documents on all 3 devices iPhone MacBook and ipad

    Looking for an app that I can create,search and edit documents on all 3 devices iPhone MacBook and ipad

    Apples iworks would do that

  • Auto execution of Crystal Reports for VS 2010 report

    I'm very new to crystal and I've been searching for some time and can't seem to find a solution to this.  I installed Crystal Reports for VS 2010 and can run a report without any issues.  What I would like to do is basically compile and EXE that when I execute it, it will refresh a report and export it in whatever format and location I specify, without showing any GUI.  This seems like it should be an easy thing to accomplish, but I have had no luck yet.
    Any help is appreciated.
    Thanks,
    Tim

    Hi Tim,
    See these samples:
    Root Page
    http://wiki.sdn.sap.com/wiki/display/BOBJ/BusinessObjectsHome
    Enterprise Samples (including managed and unmanaged ras)
    http://wiki.sdn.sap.com/wiki/display/BOBJ/BusinessObjectsSDKSampleApplications
    Non-Enterprise Samples
    http://wiki.sdn.sap.com/wiki/display/BOBJ/CrystalReportsSDKSampleApplications
    Exporting Samples (RAS)
    http://wiki.sdn.sap.com/wiki/display/BOBJ/NETRASSDK+Samples#NETRASSDKSamples-Exporting%2FPrinting
    Just don't load the report into crystalReportviewer1 and simply export to what ever format you need.
    Your users will need the CR runtime if they want to run your app. If you export to PDF or some other format then they can view the report only. Just share or e-mail the report folder.
    Thank you
    Don

  • I have taken over 9999 pictures with my phone and it is now creating duplicate names for the pictures starting back at 0001 making it difficult to manually upload my photos like i always have. How do i fix this?

    I have taken over 9999 pictures with my phone and it is now creating duplicate names for the pictures starting back at 0001 making it difficult to manually upload my photos like i always have. How do i fix this?
    (I tried to just write this as a reply to someone who had already asked the question whos problem was magically solved after posting the question and the site was not allowing me to post to it so here I am)

    Additionally, when I try to sort the photos by date to easily extract the newest photos which I have not yet uploaded, it is unable to put them in correct order regardless of the fact that the date is correct. Only the videos end up in chronological order for some reason while the photos stay in order by name.

  • Problem while COGI reprocessing will create duplicate TR's for WM  material

    Hi Guru's,
    Recently the system is upgraded from 4.7 to ECC 6.0.
    While the AFFW table entries before the upgrade, during COGI it will create duplicate TR with reference to the production order.
    Need your assistance to fix this?

    The system determines the material staging type on the basis of the control cycle and determines the production storage bins, in which the components should be staged. 
    Please take a look at this topic: WM-PP interface - material staging
    This information: Material Staging - Warehouse Management System (WMS) - SAP Library
    And this one too: Control Cycle - Warehouse Management System (WMS) - SAP Library
    This will help you understand the staging process in detail and is quite easy to read.

  • Data loader : Import -- creating duplicate records ?

    Hi all,
    does anyone have also encountered the behaviour with Oracle Data Loader that duplicate records are created (also if i set the option: duplicatecheckoption=externalid) When i am checking the "import request queue - view" the request parameters of the job looks fine! ->
    Duplicate Checking Method == External Unique ID
    Action Taken if Duplicate Found == Overwrite Existing Records
    but data loader have created new records where the "External Unique ID" is already existent..
    Very strange is that when i create the import manually (by using Import Wizard) exactly the same import does work correct! Here the duplicate checking method works correct and the record is updated....
    I know the data loader has 2 methods, one for update and the other for import, however i do not expect that the import creates duplicates if the record is already existing, rather doing nothing!
    Anyone else experiencing the same ?? I hope that this is not expected behaviour!! - by the way method - "Update" works fine.
    thanks in advance, Juergen
    Edited by: 791265 on 27.08.2010 07:25
    Edited by: 791265 on 27.08.2010 07:26

    Sorry to hear about your duplicate records, Juergen. Hopefully you performed a small test load first, before a full load, which is a best practice for data import that we recommend in our documentation and courses.
    Sorry also to inform you that this is expected behavior --- Data Loader does not check for duplicates when inserting (aka importing). It only checks for duplicates when updating (aka overwriting). This is extensively documented in the Data Loader User Guide, the Data Loader FAQ, and in the Data Import Options Overview document.
    You should review all documentation on Oracle Data Loader On Demand before using it.
    These resources (and a recommended learning path for Data Loader) can all be found on the Data Import Resources page of the Training and Support Center. At the top right of the CRM On Demand application, click Training and Support, and search for "*data import resources*". This should bring you to the page.
    Pete

  • Iphone 4s creates duplicate contacts after connecting to office 365 services

    I have a client that has an iphone 4s after she synchronized her iphone with an office 365 online services account(its exchange 2010).
    now the phone keep creating duplicate contacts (even after I delete them they keep apearing).
    microsoft says its an apple problem what can be done?
    thanks
    rotem

    In Mid-August, 2012, this problem still continues and I am unaware any fix to the problem.
    I am running iOS 5.1 on iPhone 4S
    Outlook (Hosted Exchange) 365
    WIndows 7
    Outlook 2010 client
    Initial setup:
    Contacts clean and no duplicates in Hosted Exchange & Outlook 2010
    Zero contacts in the iPad and iPhone before syncing with Exchange services
    Same condition with iPhone
    Same condition with iPad
    iTunes not involved, no syncing ever (and no [email protected] ever created.)
    iCloud Mail, Contacts, Calendar, Notes all turned off
    Connected with Exchange with legit user name, password and server domain, togel soft switches on the Exchange Mail, Contacts, Calenday and Labels/Reminders.
    iPhone receives synced contacts (and email and calendar and notes) from Exchange Active Sync
    User is fine until he/she searches for a contact via iOS device.
    As searches continue , user believes that Contacts crash (quit unexpectedly and return to main iOS app page.
    Duplicates begin to display on the iOS device that Contacts crashed on.
    IF the user then edits one of the phantom duplicate contacts, the record duplicatiuon begins to grow in Outlook Contacts. But if no pantom editing happens, the duplications continues only on the iOS device and the contacts begin to appear in tripples and more .
    If you are having this problem, please post it, so that if Apple ever reads these boards, they see the problem is not isolated to a few and they begin to understand that the iOS devices will be jetisoned from enterprise customers because problems like this should be acknoledged and resolved on a MUCH more timely manner.

Maybe you are looking for