CrystalReportViewer properties

I am using VB.NET (2005) as an interface between our software application and Crystal Reports to display the Crystal Reports we have developed (in Crystal XI Release 2).
I have created a .NET solution with a module and a form.  All the coding is done in the module.  I use Form1.ShowDialog() to bring up the CrystalReportViewer (which was added to the form).
The problem I am having is that I need to programmatically change some of the Report Viewer properties depending on how the report was created.  As an example:  Some of our reports have the Report Option, Create Group Tree, selected, others do not.  Regardless of how this option is set in the original report, the Group Tree is showing in the report viewer.  I only see how to set this property to True or False.  How can I pass the report's property setting to the viewer?
Also, the report is not displaying properly.  It's as though there are margins (top, bottom, left, right) in the viewer that are causing my report to 'reduce' in size and truncate some fields.
Any help would be appreciated.  Thank you.

The Group Tree is now called the Tool Panel View.  I can default it to either on or off when in the viewer.  There's still the issue (that I think is a defect) where you can not set it equal to the report's tool panel view/group tree so it will show (or not) depending on how the setting is in the report.
As far as the margins...well, I save the report margin's first and then set them back after the printer has been defined.
Will live with this for now.

Similar Messages

  • How to view multiple reports using crystal reports 2008

    Hi ,
    I am working on vb6 project where in i am trying to generate reports using crystal reports 2008.
    For this , i am making use of Interop Form Wrapper class in vb6.
    I have a business requirement where in i need to view multiple reports  on my screen.
    please suggest me as to how this can be achieved.
    Thanks in Advance
    Regards,
    Ramnath

    Hi Ludek,
    I  am directly now using crystal report viewer control in my vb6 project.
    As mentioned in previous mail, i have created a Interop Wrapper class over crystal report viewer control in .Net using visual studio 2008 and i am making use of wrapper class in my vb6 project.
    I am able to access all the properties that have been defined in my Interop wrapper Class but the only stuff i need is to view multiple reports generated one after the another for a single button click Event.
    Please find below the code that iam using to load and generate reports.
    Note:
    1. frm is the instance of my Interop Wrapper Class built over CR viewer control
    2. All the user defined methods of Wrapper class that you see below will internally call the actual crystalreportviewer   properties defined in my Wrapper class
    Say for e.g   frm.DisplayToolbar(True) will internally  execute  crystalreportViewer1.DisplayToolbar = True
    frm.SetReportSource(strRptFilePath,0)          
    frm.SetSelectionFormula(strrecordSelectionFormula)
    frm.DisplayToolbar(True)               
    frm.ShowExportOption(True)
    frm.ShowPrintOption(True)
    frm.ShowRefreshOption(True)
    frm.ShowPAgeNavigateOption(True)
    frm.ShowZoomOption(True)
    frm.ShowParameterPanelOption(True)
    frm.Show()
    Thanks in Advance
    Regards,
    Ramnath

  • CrystalReportViewer Toolbar

    Crystal report viewer Page navigation buttons issue
    <CR:CrystalReportViewer ID="uxViewer" runat="server" HasExportButton="False"  HasPrintButton="True"
                  EnableDatabaseLogonPrompt="false" EnableParameterPrompt="false" HasCrystalLogo="False" HasRefreshButton="False"
                  HasSearchButton="False" HasDrillUpButton="False" HasToggleGroupTreeButton="False"
                   Height="100" Width="100%" BackColor="White" HasPageNavigationButtons="True" HasZoomFactorList="False"
             />
    we were earlier using crystal reports 2005  with the above declaration and the crystal report viewer control looked like the first image in the below link.
    After migrating it to CR v13 with the below declaration, it looked like the second image in the below link
    <CR:CrystalReportViewer ID="uxViewer" runat="server" HasExportButton="False"  HasPrintButton="True"
                  EnableDatabaseLogonPrompt="false" EnableParameterPrompt="false" HasCrystalLogo="False" HasRefreshButton="False"
                  HasSearchButton="False" HasDrillUpButton="False" HasToggleGroupTreeButton="False"
                   Height="100" Width="100%" BackColor="White" HasPageNavigationButtons="True" HasZoomFactorList="False" EnableDrillDown="False"  ToolPanelView="None"
               HasDrilldownTabs="False"
             />
    [Above-2005 / Below V13 CRV toolbar|http://tinypic.com/r/rlcjtt/5]
    Is there a change in look and feel, or am I missing something here.

    You can control the toolbar via the viewer properties. E.g.; ShowPageNavigateButton, etc., etc.
    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]

  • CRVS2010 Beta - CrystalReportViewer Component Issue

    I have installed Visual Studio 2010 and the CR 2010 .net support on my Windows 7 64bit machine.  Whenever I place the Crystal Reports Viewer component on an aspx page, the properties pane flickers.  In design mode, I have seen the component continually highlight and appear to reload itself.  When I minimize VS, it will automatically maximize by itself.  Remove the component and everything clears up.  Anyone else experiencing this?  Is there a workaround?

    I am getting the same behaviour.
    Installed VS2010 Pro Trial yesterday. Installed CR VS2010 Beta with no problems.
    Created a blank webform and add the CrystalReportSource control - no problem.
    Add the CrystalReportViewer and the Properties window starts refreshing every second or so.
    The CrystalReportViewer Tasks helper screen also refreshes every second or so.
    After this occurs, it does not matter which control or element you select on the screen, the properties window will refresh every second or so.
    This occurs in Design, Split and Source views. It occurs whether Properties window is docked, floating or maximised.
    Deleting the CrystalReportViewer control makes the properties window revert to normal behaviour. Add that control back in and it starts continuously refreshing again.
    If you can get the values put into the property elements in between refreshes, you can actually get the screen to run OK - it's just very very difficult to continue developing on that page :P
    I'm running at 1920x1200 on Nvidia Quadro FX 580 and Dell 2408 monitor.
    On Windows XP SP3 as local admin.
    Will try updating video drivers to see if that works although I'd be surprised seeing the issue only affects the Properties window and is related to the CrystalReportViewer.
    Grateful for any ideas to resolve!
    Cheers
    Evahn

  • How do I add multiple scripts from search engines to my meta tag properties?

    I currently have copied the goolge script for website varification and analytics, etc and pasted it into my meta tag properties dialog box. There is no problem as far as Google varifying the page. However, I would like to copy Bing's search engine script into my meta tag in addition to Googles script. How do I go about doing this? Do I hit the return on my keyboard under the ending of Googles script, then paste in the Bing script?
    The the last part of the Google script ending in this:
    </script>
    (paste new script from Bing here?)
    Will this cancel out each other and cause problems?
    Can someone walk me through this process, because Bing's search engine will not varify my site through two of the three other methods.
    Ben

    Adding a script after the closure of previous script is the way to go i.e. right after the </script> tag.
    So it should look something like below:
    <script>
    Google's script
    </script>
    <script>
    Bing's script
    </script>
    Cannot comment on one interfering with the other since it really depends on what exact code is there in the scripts. Google and Bing help resources will be able to help more with this.
    Thanks,
    Vikas

  • Error while accessing secure store: File "SecStore.properties" does not exi

    Hi ,
    I have a java desktop application, and i am trying to get a connection from a datasource deployed on one SAP AS Java, I can get the datasource succsfullly but when i try to get a connection from the DS, it throughs this exception, I put the secstore..properties file in the classpath even after that it is not happy,
    any solution/hint/light please!!!!
    com.sap.sql.log.OpenSQLException: Error while accessing secure store: File "SecStore.properties" does not exist although it should..
         at com.sap.sql.log.Syslog.createAndLogOpenSQLException(Syslog.java:106)
         at com.sap.sql.log.Syslog.createAndLogOpenSQLException(Syslog.java:145)
         at com.sap.sql.connect.OpenSQLDataSourceImpl.setDataSourceName(OpenSQLDataSourceImpl.java:226)
         at com.sap.sql.connect.OpenSQLDataSourceImpl.setDataSourceName(OpenSQLDataSourceImpl.java:197)
         at com.sap.customcode.ConflictingActionFixture.(ConflictingActionFixture.java:53)
         at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
         at sun.reflect.NativeConstructorAccessorImpl.newInstance(Unknown Source)
         at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown Source)
         at java.lang.reflect.Constructor.newInstance(Unknown Source)
         at java.lang.Class.newInstance0(Unknown Source)
         at java.lang.Class.newInstance(Unknown Source)
         at fit.FixtureClass.newInstance(Unknown Source)
         at fit.FixtureLoader.instantiateFixture(Unknown Source)
         at fit.FixtureLoader.instantiateFirstValidFixtureClass(Unknown Source)
         at fit.FixtureLoader.disgraceThenLoad(Unknown Source)
         at fit.Fixture.loadFixture(Unknown Source)
         at fit.Fixture.getLinkedFixtureWithArgs(Unknown Source)
         at fit.Fixture.doTables(Unknown Source)
         at fit.FitServer.process(Unknown Source)
         at fit.FitServer.run(Unknown Source)
         at fit.FitServer.main(Unknown Source)
    Caused by: com.sap.security.core.server.secstorefs.FileMissingException: File "SecStore.properties" does not exist although it should.
         at com.sap.security.core.server.secstorefs.StorageHandler.openExistingStore(StorageHandler.java:372)
         at com.sap.security.core.server.secstorefs.SecStoreFS.openExistingStore(SecStoreFS.java:1946)
         at com.sap.sql.connect.OpenSQLConnectInfo.getStore(OpenSQLConnectInfo.java:802)
         at com.sap.sql.connect.OpenSQLConnectInfo.lookup(OpenSQLConnectInfo.java:783)
         at com.sap.sql.connect.OpenSQLDataSourceImpl.setDataSourceName(OpenSQLDataSourceImpl.java:209)
         ... 18 more
    caused by

    the SecStore.key file was not there, I changed the passwd and checked the 'Encryption' on, after that my sever instance is not starting.
    Any idea?
    -Puneet

  • In Photoshop CC (2014), Hue/Saturation adjustment layer properties disappear

    I am running Photoshop CC (2014) under Windows 7 Professional.  The program is up to date.
    Today, while editing an 8-bit image, I added a Hue/Saturation adjustment layer.  Then, in the properties panel for this layer, with the on-image adjustment tool selected, I clicked a color in the image to get a range of colors whose saturation I wanted to adjust.  Next, using the saturation slider in the properties panel, I increased the saturation of this range of colors. Finally, I closed the properties panel by clicking on the double arrow in the upper right corner.
    Later, I wanted to modify this adjustment layer.  I double-clicked on the layer thumbnail to reopen the properties panel, and found that, although the previous increase in saturation was still operating, the saturation slider was back at its default position, and the range of colors that I had previously established was gone.  Thus, I could not make further adjustments to this range of colors.
    I then did some further experimentation:  I deleted the first Hue/Saturation adjustment layer, and created a new Hue/Saturation adjustment layer. I then again established a range of colors as above, again increased the saturation of these colors, and then again closed the properties panel by clicking on the double arrow in the upper right corner.  This time, however, when I wanted to try to modify this adjustment layer, instead of double-clicking on the layer thumbnail to reopen the properties panel, I right-clicked on the layer and then clicked on "Edit adjustment..."  This opened the properties panel, which, this time, correctly showed my original adjustments -- the saturation slider showed the positive adjustment that I had previously made, and the range of colors established earlier was still shown. But then, on a hunch, I added a Curves adjustment layer above the Hue/Saturation adjustment layer.  Now, when I again opened the properties panel of the Hue/Saturation adjustment layer (by right-clicking on the layer and then clicking on "Edit adjustment..."), my previous settings were gone -- the saturation slider was at its default position and the range of colors was gone!  (But the increase in saturation was still operating.)
    Thus, it appears that there is a bug in the functioning of the properties panel of the Hue/Saturation layer: In short, once you have added a further adjustment layer, you can't then go back and make changes to the properties of the Hue/Saturation layer.  I would be interested to hear if others have noticed this.  Also, is Adobe planning to address this?

    OK, I am not entirely sure I have understood your post completely, but when you edit a colour range with a Hue/Sat layer, and click off and back on again, it will default to showing the RGB values, which you may not have made any adjustment to.  If you pick the previous colour from the image, or a similar colour, it _will_ show you the adjustments.  So long as your picked colour is contained within the range of the previous adjustment.
    Ypu could also use the RGB drop down (actually they call it Master nowadays), and chose the colour that is closest to your previously picked colour.  I expect you are away that you can edit the colour range being operated on by dragging the four sliders on the two colour bars at the bottom of the Properties panel.
    Does that make sense, or am I going in the wrong direction?

  • Program error when opening layer properties

    Hi! I have a really difficult problem in Photoshop. Whenever I try to open the layer properties I get the error message "Could not complete your request because of a program error." I tried to fix it but I really don't know what to do. I am working on a huge project and I need this fixed as soon as possible. Thanks!

    Please read this and proceed accordingly:
    http://forums.adobe.com/thread/419981?tstart=0
    http://blogs.adobe.com/crawlspace/2012/07/photoshop-basic-troubleshooting-steps-to-fix-mos t-issues.html

  • Not able to view CrystalReportViewer in Azure Application.

    Hi All,
    We have an application which was developed in VS 2005 with .Net framework 2.0 and crystal report version 10.
    We have migrated this application to azure using VS 2013 with .Net framework 4.5 and crystal report version 13.2.
    We have included the Crystal report msi in the package for deploying it on azure.
    We have used the CrystalReportViewer on one of the page in our application to view the reports but we are not able to view it.
    Thanks

    Here is a KBA that discusses Azure and CR:
    1765620 - What version of Crystal Reports supports Windows Azure?
    Note that the simple string "crystal azure" in the search box at the top right corner found the above as the very 1st hit. E.g.; please search 1st...
    The KBA points to the SAP Idea Place where anyone can ask for an enhancement to CR. Note that the Idea has been viewed 264 times and only voted up 4 times (one of those votes is mine). E.g.; it does not appear to be a highly demanded enhancement and I do not believe it will ever see the light of day.
    - Ludek
    Senior Support Engineer AGS Product Support, Global Support Center Canada
    Follow us on Twitter

  • ADF Custom properties overlay

    Hi all
    I want to put another one data in the same row in view mode in priview link http://tinypic.com/r/10e22wn/6 can see that in Edit form are showing both (Code & Date fields), but on View Form are only date in Custom properties i tried to RoDisplay: IllnessDate ,Code but then in view form showed only Code
    Maybe someone can give some tips about overlay or how i can put the Code into view form in the same row
    Jdeveloper-11.1.1.6.0
    ADF Business Components     11.1.1.61.92
    Thanks ! !
    ID
    Edited by: 1D10T on Nov 7, 2012 4:47 AM

    Sucess
    <CustomProperties>
    <Property
    Name="ShowCodeInRO"
    Value="true"/>
    </CustomProperties>
    Maybe somewhere are some list with all custom Properties ?

  • File Properties: Document Kind... Where Does it Come From?

    In Bridge's metadata subsection "File Properties", what exactly
    is "Document Kind"? Is it synonymous with the file's mime type?
    I've read through Adobe's XMP specification document (http://partners.adobe.com/public/developer/xmp/sdk/index.html) and I've seen many of Adobe's XMP schemas and data elements defined there, but I can't find where "Document Kind" is defined.
    The closest I come is page 39 where the XMP specification notes that the dublin core schema has a property called "format" with a value of "MIMEType". Is "dc:format" synonymous with "file properties: document kind"?
    Thanks for any help.

    dont mind but please tell me how do u communicate with computer ports...
    u can mail any material at [email protected]
    thanks

  • Error reading properties file upon deployment

    hi. i'm still relatively new with regards to the Java programming language. in any case... i am developing a simple project wherein the application has to make a database connection to a server. the application is finished already however.. i am having problems deploying it.
    my project has a "resources" package containing the file "config.properties" which contains various information (connection details among others). correct me if im doing something wrong, but in deploying in, i copied the "dist" folder of my compiled code and then tried to run the java exe independently which resulted in an error. i already tried copying the "config.properties" file to the dist folder and even creating a "resources\config.properties" file but it still results in an error. could you please help me figure out how to deploy the application with the properties file. the code i used in referencing my .properties file is as follows:
    Properties configFile = new Properties();
                configFile.load(this.getClass().getClassLoader().getResourceAsStream("Resources\\config.properties"));
                String username = configFile.getProperty("username");
                String password = configFile.getProperty("password");
                String url = configFile.getProperty("url");
                String dbtype = configFile.getProperty("dbtype");
                Class.forName(dbtype);
                conn = DriverManager.getConnection(url, username, password); thanks in advance. ^^

    thank for the help mangst. i guess the IO approach is also applicable ^^; i changed my code to:
    configFile.load( new FileInputStream( ".\\resources\\config.properties" ) );but i had a little trouble in debugging it since it starts the file search from the main project directory. however it works fine upon deployment. ^^; thanks again.
    Edited by: xnofate on Sep 23, 2008 6:21 PM

  • Error reading Properties file

    I have a main method which i am using to call a servlet located in the same Development Component. Until recently i had the servlet location hard coded and it was working without issues. Now i decided to make the location configurable. For this i created an sap.application.global.properties file in the EAR DC which contains the WAR of this DC.
    The contents of the above file are as follows:
    SAP application properties
    SERVLET.LOCATION=http://<server-name>/ControllerServlet/servlet/com.nike.xapps.eqptsp.swem.controller.ControllerServlet
    The code i am using in the main method to call this properties file and access the property is as follows:
    Context ctx = new InitialContext();
    ApplicationConfigHandlerFactory cfgHdlr = (ApplicationConfigHandlerFactory)ctx.lookup("ApplicationConfiguration");          
    Properties props = cfgHdlr.getApplicationProperties();
    String servlet = props.getProperty("SERVLET.LOCATION");
    contained in a try...catch block.
    On dubugging i get a NoInitialContextException repeatedly in the statement where the lookup is performed.
    These are all the additions i have made for reading this properties file. Does anyone know if there is anything more that needs to be done for this to work.
    Thanks,
    Murtaza.

    thank for the help mangst. i guess the IO approach is also applicable ^^; i changed my code to:
    configFile.load( new FileInputStream( ".\\resources\\config.properties" ) );but i had a little trouble in debugging it since it starts the file search from the main project directory. however it works fine upon deployment. ^^; thanks again.
    Edited by: xnofate on Sep 23, 2008 6:21 PM

  • KM Task Scheduler: How to create custom/editable properties?

    Dear All,
    I created a KM Scheduler Task using the NDWS Wizard.
    The application was successfully deployed and the task runs fine. However, I would like to define some custom properties that could be edited by using the portal, like the standard ones such as Priority, CM Systems, etc.
    Is that possible?
    I already tried to add it in the portalapp.xml, and also in the auto generated files that are in data and meta folders (..co.xml), but the new properties have not appeared in the screen.
    Thanks in advance,
    Marco

    Hi Romano,
    Thanks for the input.
    Do you know in which of the .co.xml files should be added? There is one in "data" and another in "meta" folders.
    The one in "data" folder (actually in one of the subfolders of "data folder") has the following content:
    <?xml version="1.0"  encoding="UTF-8" ?>
    <Configurable configclass="domain.task">
    <property name="name" value="domain.task" />
    <property name="active" value="true" />
    <property name="description" value="Task Test" />
    </Configurable>
    I added in this file a new property but no result.
    The one in meta folder (also in a subfolder of it) has the following:
    <ConfigClass name="domain.task"  extends="SchedulerTask">
    <attribute name="class" type="class" constant="domain.task"/>
    </ConfigClass>
    In this one when I tried to add a new property the task simple does not show, maybe I am not using the correct syntax.
    Do you know in which of these files I should put the custom property and using which syntax?
    Thanks in advance,
    Marco

  • KM Scheduler Service Properties

    Hello experts. I am trying to build a scheduler service in KM that runs an RFC, retrieves some data and stores it into KM once a day. To do this, I tried starting with JCA but that did not work so I ended up using the IConnectionFactory framework and it does work. However, in using that, I have to put the SAP system values and the User ID/Password in the connection properties. I do not want to put this in the code so I wanted to create properties exposed in the System Config -> Knowledge Management -> Content Management -> Global Services -> Scheduler Tasks -> My Scheduler Service. That way, I can maintain those properties there and use them in my code. However, since I do not have experience with the Scheduler Service, I do not know how to expose and read those properties. In a regular component, I would put it in portalapp.xml but it does not seem to work for this one. So, could someone guide me on where to put those properties and how as well as the Java code to read them in at runtime.
    Would really appreciate any help.

    Hi
    Did you find a solution fo this problem?
    Florin

Maybe you are looking for

  • PDF attachment does not open

    I have a Samsung i760 with Verizon Wireless. I am running Windows Mobile 6 Professional. I have installed Adobe Reader PPC 2.0, and the Reader application itself appears to work fine (appears in my Program list, I can open the program, etc.). I have

  • Jdev 11g pre3 Preforms on Windows contra Linux

    Have been working a lot with the Jdev 11g, think it is nice and easy to work with. Except after a little time (or bigger project) it gets really slow, takes like 30sec, when changing a property and tabbing out. (If you look a the memory usage it runs

  • Reference partitioning and partition pruning

    Hi All, I am on v 11.2.0.3. I have a pair of typical parent-child tables. Child table is growing like hell, hence we want to partition it, which will be used for deleting/dropping old data later on. There is no partitioning key in the child table whi

  • BlackBerry 9320 Curve

    Similar problem encountered with the other BlackBerry 9320 Users. My handset automatically shuts off even if my battery is full. Seems that this is a common problem with BlackBerry users. Is this a handset/battery factory defect or OS incompatibility

  • Image on top of video

    Hi,I'm sort of new to iMovie & I have to do a project and I want to place some images on top of a movie is there anyway to do this?