Visual Studio 2013 Crystal Report passing parameters

Hello Everyone,
I am simply trying to pass a parameter from my textbox called "StockID" to my crystal report which is called "testlbl.rpt". There is only one parameter in this report and it is called "m_stockid". I am using a crystal report viewer
and I have imported the report into the project so I am not loading it from outside. Below is an example of what I have tried. I have also attempted loading the report and using "SetParameterValue(...)". Can anyone please help me with this?
ParameterFields paramFields = new ParameterFields();
ParameterField pfStock = new ParameterField();
pfStock.ParameterFieldName = "m_stockid";
pfStock.CurrentValues.Add(0);
paramFields.Add(pfStock);
crystalReportViewer1.ParameterFieldInfo = paramFields;
crRpt.SetParameterValue(":m_rec", 0);
crRpt.SetParameterValue("@m_rec", 0);
crRpt.SetParameterValue("?m_rec", 0);
crRpt.SetParameterValue(testlbl1.Parameter_m_rec.ParameterFieldName, 0);
crRpt.SetParameterValue(0, 0);
crystalReportViewer1.ParameterFieldInfo = paramFields;
M.N.

Hi Boa_nerges,
Thank you for your post.
Since this forum is to discuss: Visual Studio WPF/SL Designer, Visual Studio Guidance Automation Toolkit, Developer Documentation and Help System, and Visual Studio Editor. So I’m afraid that it is not the
correct forum for this issue.
I suggest you can ask your issue directly on SAP Crystal Reports:
http://scn.sap.com/community/crystal-reports/content?filterID=content~objecttype~objecttype[thread]
for better solution and support
Best Regards,
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.

Similar Messages

  • After i install Visual-Studio 2013 crystal-report not working

    hi
    after i install Visual-Studio 2013 crystal-report not working on my Visual-Studio 2010 projects
    when i try to open crystal-report i see this:

    Hi E_gold,
    Crystal Reports forum may be a better place for you.
    Thanks for your understanding.
    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.

  • Visual Studio 2013 Crystal Report V9 does not display in browser

    Hello, I work with Visual Studio 2013, and was anxious for version 13.0.9.1312, glad you came. Well I installed the full version and the report usually opened in VS, but when it does not compile command displays. Published in a local and it worked, but the VS does not work, if you click with the right mouse button to display codes are the codes it, but does not show. I used IE, and nothing Chomo. How does VS2013 use IIS Express as a server. Have any solution for this?

    See this post for the answer...
    Re: Crystal Reports does not load aspnet_client files to proper IISExpress directory
    Don

  • Visual Studio 2008 Crystal Report 10.5 merge modules download

    Hi All,
    I'm struggling with this problem about 2 weeks and still cannot find the resolution.
    I was developed a .Net application with visual studio 2008 and using crystal report to generate report.
    It is working fine in my local machine. However, after I deployed the application to web server with microsoft server 2003 64bits server. The report cannot open and I get this error The type initialize for 'crystaldecisions.crystalreports.engine.reportdocument' threw an exception.
    I try to install the redistribution package from  C:\Program Files\Microsoft SDKs\Windows\v6.0A\Bootstrapper\Packages\CrystalReports10_5 but it doesn't work.
    Please kindly to help me thank you very much

    Thank you Sir,
    After I installed the msi I get this error retrieve from event log.
    An unhandled exception occurred and the process was terminated.
    Application ID: DefaultDomain
    Process ID: 528
    Exception: System.Runtime.Serialization.SerializationException
    Message: Type 'CrystalDecisions.CrystalReports.Engine.LoadSaveReportException' in Assembly 'CrystalDecisions.Shared, Version=10.5.3700.0, Culture=neutral, PublicKeyToken=692fbea5521e1304' is not marked as serializable.
    StackTrace:    at System.Runtime.Serialization.Formatters.Binary.WriteObjectInfo.InitSerialize(Object obj, ISurrogateSelector surrogateSelector, StreamingContext context, SerObjectInfoInit serObjectInfoInit, IFormatterConverter converter, ObjectWriter objectWriter)
       at System.Runtime.Serialization.Formatters.Binary.WriteObjectInfo.Serialize(Object obj, ISurrogateSelector surrogateSelector, StreamingContext context, SerObjectInfoInit serObjectInfoInit, IFormatterConverter converter, ObjectWriter objectWriter)
       at System.Runtime.Serialization.Formatters.Binary.ObjectWriter.Write(WriteObjectInfo objectInfo, NameInfo memberNameInfo, NameInfo typeNameInfo)
       at System.Runtime.Serialization.Formatters.Binary.ObjectWriter.Serialize(Object graph, Header[] inHeaders, __BinaryWriter serWriter, Boolean fCheck)
       at System.Runtime.Serialization.Formatters.Binary.BinaryFormatter.Serialize(Stream serializationStream, Object graph, Header[] headers, Boolean fCheck)
       at System.Runtime.Remoting.Channels.CrossAppDomainSerializer.SerializeObject(Object obj, MemoryStream stm)
       at System.AppDomain.Serialize(Object o)
       at System.AppDomain.MarshalObject(Object o)
    For more information, see Help and Support Center at http://go.microsoft.com/fwlink/events.asp.

  • Visual Studio 2013 to open a Sage 50 Crystal Report (which is in 2008)

    Is it possible to open a report using the latest runtimes and visual studio components (v13)?
    I am trying to view a crystal report done in 2008 on a web site I'm creating. When I add the controls (CrystalReportViewer and CrystalReportSource with path to report) and run the page it asks me for credentials. I know I can programatically set them but I wanted to try to see if it worked at first. I plugged in the credentials and the popup for credentials kept coming back. It would never show the report.
    I then tried programatically setting the login credentials and still would show the credentials popup.
    Is this because of a version issue? Any ideas or suggestions? I only have visual studio 2013 and I'm hoping it's still possible to view the report on a web site.
    Thanks in advance,
    Miguel Martorell

    Thansk for the quick reply.
    I am able to access the database using the odbc connections even with a query tool used outside of their server. I have the ODBC set up and what not. I can edit the report using crystal report from outside the server as well. I am just pointing to the .rpt file so I thought it would be a CR version or component issue.
    I will ask over there as well hoping for an answer that will help me solve this.
    Thanks again,
    Miguel Martorell

  • How to get Crystal Reports Editor in Visual Studio 2013 Preview?

    In Visual Studio 2005, if I double-click a *.RPT file in Solution Explorer, the file opens in the Crystal Reports editor.
    In Visual Studio 2013 Preview, if I double-click a *.RPT file, it opens in Notepad.  How do I get it to use the Crystal Reports editor again, please?
    Thanks and RICKgards
    Rick Raubenheimer

    Hi Rick,
    Since Visual Studio 2013 is still Preview version, I don't think you can find  something like this:
    SAP Crystal Reports, developer version for Microsoft Visual Studio - 2012
    Please notice that you will need to install additional packages for latest VS version, such as Visual Studio 2010 and Visual Studio 2012,
    For more details, please reopen a new case on this forum:
    http://scn.sap.com/community/crystal-reports-for-visual-studio/content?filterID=content~objecttype~objecttype[thread]
    Or contact SAP for support since it is a third party feature to Visual Studio.
    Best regards,
    Barry Wang
    <THE CONTENT IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND, WHETHER EXPRESS OR IMPLIED>
    Thanks
    MSDN Community Support
    Please remember to "Mark as Answer" the responses that resolved your issue. It is a common way to recognize those who have helped you, and makes it easier for other visitors to find the resolution later.

  • How to hide gray borders in Crystal reports Visual Studio 2013

    Hi All,
    I have a web application in ASP.NET 2013.
    I'm using latest developer version of Crystal reports.
    When I run the report, I see gray borders around the actual report.
    This was not the case with Crystal reports in Visual Studio 2005.
    How can I hide these gray borders in Crystal reports ASP.NET Visual studio 2013?
    Please see the attached image for more info.
    Thanks,

    Hi Anurag
    Please see if this KBA will help:
    1344534 - How to change the documentView for a Crystal Report web viewer
    - Ludek
    Senior Support Engineer AGS Product Support, Global Support Center Canada
    Follow us on Twitter

  • JavaScript Error in Crystal Reports for Visual Studio 2013 - revisited

    With the newly-released Crystal Reports for Visual Studio 2013, I was receiving the following error:
    Unhandled exception at line 37, column 59140 in http://localhost:4486/cfb341e5bcca4ae88166b78e20276d73/browserLink
    0x800a139e - JavaScript runtime error: Syntax error, unrecognized expression: input#__CRYSTALSTATEctl00$MainContent$CrystalReportViewer1
    It turns out that this is related to the Browser Link Visual Studio add-in. You can either ignore the error, or disable Browser Link.
    Dan

    Hi Dan
    Many thanks for the heads up
    - Ludek

  • Crystal Report for Visual Studio 2013

    I read on this forum that Crystal Report is available to be installed for Visual Studio 2013. How do I integrate CRVS into VS IDE you must run the install exe(!)?
    How to get Crystal Reports Editor in Visual Studio 2013 Preview?

    I did face the same error while installing SP9 (at the time of 64 bit runtimes).
    I got this resolved by below steps.
    1. Uninstall SP9 (whole of it)
    2. Install 'Microsoft Visual C++ 2005 Service Pack 1 Redistributable Package ATL Security Update' 
    Downloaded http://www.microsoft.com/en-us/download/confirmation.aspx?id=14431
    3. Reinstall SP9.
    See if it works.
    - Bhushan
    Senior Engineer
    SAP Active Global Support
    Follow us on Twitter
    Got Enhancement ideas? Try the SAP Idea Place
    Getting started and moving ahead with Crystal Reports .NET applications.

  • EnableFolderBrowseButton Improper Parameters assertion in Visual Studio 2013 MFC C++ 64 bit DLL

         I am using Visual Studio 2013 MFC C++ 64 bit on Windows 8.1 Pro. I have a CMFCEditBrowseCtrl in a dialog. When I call EnableFolderBrowseButton I get a debug assertion that I have passed in the wrong parameters. The Microsoft
    class documentation list no parameters  but Inteli-sense list two parameters. BrowseFolderTitle and BrowseFolderFlags. They have defaults set in the call so I should not have to pass in anything. Anyone know what I need to do. I am using MFC Debug DLL
    for the project. Stuck! Any help would be appreciated. 

    Hi iggyll,
    Thanks for posting in MSDN forum.
    I have made a sample to test this issue. Yes, you are right the Inteli-sense list two parameters.
    So Let's look the the resource code of afxeditbrowsectrl.cpp file. Locate at VS installed path->VC->atlmfc->src->mfc->
    I copy the code here:
    void CMFCEditBrowseCtrl::EnableFolderBrowseButton(LPCTSTR lpszBrowseFolderTitle/* = NULL */, UINT ulBrowseFolderFlags/* = BIF_RETURNONLYFSDIRS */)
    ASSERT_VALID(this);
    ENSURE(GetSafeHwnd() != NULL);
    ENSURE(afxShellManager != NULL); // You need to call CWinAppEx::InitShellManager() first!
    m_Mode = BrowseMode_Folder;
    m_strBrowseFolderTitle = lpszBrowseFolderTitle != NULL ? lpszBrowseFolderTitle: _T("");
    m_ulBrowseFolderFlags = ulBrowseFolderFlags;
    SetInternalImage();
    OnChangeLayout();
    Could share us the assert error message with us? I assume you may get a assert error on above code. So please make sure you are using CWinAppEx class and has been called CWinAppEx::InitShellManager() .
    Please try change CWinAPP class to CWinAppEx class and call to CWinAppEx::GetShellManager() to your
    InitInstance()function.
    Best regards,
    Shu Hu
    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.

  • FInding the Reporting Services 2014 Web Service in Visual Studio 2013

    Hello
    I am trying to figure out how to Find the webservice for my SSRS 2014 Installation from Visual Studio 2013.
    I looked at this article
    http://msdn.microsoft.com/en-us/library/ms155398.aspx
    And it seemed to say I should use:
    http://<machine name>/Reports_<Machine Name>/ReportService2010.asmx?wsdl
    I am doing this from the Add Web Reference part of Visual Studio 2013
    When I do this I get the error
    There was an error downloading 'http://<machine_Name>/Reports_<machine_Name>/ReportService2010.asmx?wsdl/_vti_bin/ListData.svc/$metadata'.
    The request failed with HTTP status 404: Not Found.
    Thanks in Advance.
    -Dick

    http://<machine name>/Reports_<Machine Name>/ReportService2010.asmx?wsdl
    Hello Dick,
    The second <Machine Name> should be the "<Instance Name>" instead, if you are using a named instance of SSRS. If it's a Default instance, then use simply
    http://<machine name>/Reports/ReportService2010.asmx?wsdl
    Olaf Helper
    [ Blog] [ Xing] [ MVP]

  • Customize Styles for Report Wizard in Visual Studio 2013

    I'd like to customize the styles defined for the Reporting Wizard in Visual Studio 2013.
    There was a writeup for doing so that pointed to editing the following:  C:\Program Files (x86)\Microsoft Visual Studio 11.0\Common7\IDE\PrivateAssemblies\Business Intelligence Wizards\Reports\Styles\en\StyleTemplates.xml
    However, there is no Business Intelligence Wizards folder under 12.0\Common7\IDE\PrivateAssemblies - yet when selected, the report wizard is picking up a list of styles from somewhere.
    Could someone point me to where the style definition is?
    Thanks in advance.
    Doug.

    Hi Doug,
    >>However, there is no Business Intelligence Wizards folder under 12.0\Common7\IDE\PrivateAssemblies - yet when selected, the report wizard is picking up a list of styles from somewhere.
    Just to make this issue clearly, whether this issue is related to the SSRS?
    Reference:
    http://forums.asp.net/t/2006554.aspx?How+to+make+Business+Intelligence+available+for+VS+2013+Express
    https://social.msdn.microsoft.com/Forums/vstudio/en-US/7948fda2-c43b-48ad-8f4a-05fe0d528bf8/custom-styles-in-report-builder-20-table-or-matrix-wizard?forum=sqlreportingservices
    You said that it is related to the Business Intelligence, do you mean that you want to install the SSDT-BI?
    http://www.microsoft.com/en-hk/download/details.aspx?id=42313
    Like the second link in above references, if it is related to the SSRS, this forum would be better for you:
    https://social.msdn.microsoft.com/Forums/vstudio/en-US/home?forum=sqlreportingservices
    If not, please feel free to let me know more information about this issue.
    Best Regards,
    Jack
    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.

  • SSRS Report Designer in Visual Studio 2013

    Hi all. Does anyone know what I need to install to be able to open rptproj projects in VS2013? I found a page which says it is possible, but it doesn't go on to explain what I need to install to make it happen.
    It seems that every version of VS that comes out this is a problem. They never make it clear and you end up spending hours trying to find out how to do it...
    Thanks

    Hi BuckBuchanan,
    If we want to create SQL Server Business intelligence projects on Visual Studio, we need install SSDT-BI for Visual Studio. However, the SSDT-BI for Visual Studio 2013 has not been release, so we cannot create SQL Server Business intelligence projects on
    Visual Studio 2013. The commercial release of SSDT-BI is expected to be based on the newer Visual Studio 2013 in conjunction with the commercial release of the SQL Server 2014. For the detail information about it, please refer to following link.
    http://blogs.technet.com/b/dataplatforminsider/archive/2013/11/13/microsoft-sql-server-data-tools-update.aspx
    Currently, if you want to create Business intelligence projects, you can install Microsoft SQL Server Data Tools - Business Intelligence for Visual Studio 2012.
    SQL Server Data Tools – Business Intelligence for Visual Studio 2012 released online
    Regards,
    Charlie Liao
    TechNet Community Support

  • Visual Studio 2013 community edition

    Can I install Visual Studio 2013 Community Edition on the same development machine that has Visual studio 2010 professional and Visual Studio 2005 Professional also installed?
    Will SAP's Crystal Reports work with Visual Studio 2013 Community Edition?
    Bill Voorhees

    Yes. the three different versions (2005 vs. 2010 vs. 2013) are independent entities designed to install and coexist on a single system.
    As for CR, you'll need to ask SAP about that.
    http://scn.sap.com/community/crystal-reports-for-visual-studio

  • How to configure a proxy server for Windows Azure Tools in Visual Studio 2013

    Hi Visual Studio/Azure Tools team
    I would like to use the Windows Azure tools in Visual Studio 2013 to manage my Azure Web sites (Server Explorer -> Windows Azure -> Web Sites) from within my corporate network which is secured using a proxy server. Unfortunately, I am not able to use
    the Windows Azure tools since the required HTTPS connection to windows azure is not going through the default configured proxy. Instead, Visual Studio tries directly to connect to port 443 which is blocked by our corporate firewall (and yes: there is no way
    around using our proxy server). Other visual studio features like NuGet, updates, etc. work fine and use the configured proxy server. 
    So my question: How can I configure visual studio respective its Azure tools to use a proxy server instead of a direct connection? I already tried configuring the proxy server within the file devenv.exe.config but this doesn't show any effect for Windows Azure
    tools.
    Regards
    tschaena

    As we have very similar problems I consider the found solution a work arround an existing problem which will not work if corporate FW policy does not allow such changes.
    In my mind, any tools in charge of dealing with some sort of FW protocols should deliver the following information, should make it absolute clear how to setup that the request packages are setup rigth at the first time.
    a) proxy server
    b) proxy port
    c) proxy user
    d) proxy users-password
    e) proxy.auth.Preference="BASIC"
    And for moste tools (including Visual Studio and AZUR Tools) it is absolut unclear
    a) how to setup that on a per tools basis
    b) OR who inherits this information from whom    i.e. use the same as IE does, what if we use FireFox or any other browsers?
    I understand that developers requested to cure such problem areas will often have difficulty to gain all required elemenst used to realy test the solution.
    But I can tell you: I loos more time figthing down the FW setups for my clients. WHat I do at home in a sniff, takes ages to be realised by all the various clients on the market where each has to deliver the same sort of information but actually does not,
    or has it just somewhere, but not in the vicinity of the demanding user.
    Good examples i.e. NetBeans IDE where the Option Menu shows very clearly what information is required to pass through a FW/Proxy; but even there, the hint to start with a BASIC authentication schema is not part of this OPTION menu and must be added a JAVA
    environment value. But at least, it works.
    Sepp

Maybe you are looking for

  • Is my Mighty Mouse Broken?

    Hi, I bought my mighty mouse back in April 2006, and It has just decided to stop scrolling downwards. The scroll ball rotates and clicks when moving up, left and right, but when i scroll down, it neither clicks nor scrolls. I have tried cleaning it a

  • Connecting LDAP (Netscape) Thru PL/Sql

    Hi I am facing a proble to connect netscape LDAP through pl/sql function by calling java program. I am getting output from ldap by java program, then my next step is calling this java program in pl/sql function to get my output. I loaded java class i

  • Changes to be made in EP server during Oracle database migration

    Hi, Currently we have a scenario where both our Oracle database 10.2 and NW 7.0 server are on same system which has got the hardware configuration as 32 bit 2003 windows machine. Due to memory constraints DB team is planning to migrate the database i

  • Migrated Mac to new Macbook Pro- Does the Time Machine backup follow?

    Had old macbook pro with backups on TM. Migrated computer to new macbook pro. Does the old TM backup follow or should I delete (to make space) and restart with new backup?

  • Can someone please help an iTunes/Match novice?

    My playlists have lost lots of songs - one has gone from 499 to 177! Any ideas how/if I can get them back? Or what's happened to them?