How to create user editable Crystal Report with dynamic dataset

What I would like to achieve:
A program loads a report in runtime updates list of database fields (possibly includes sample data), open report in "Crystal Reports 2011" (or 2008) where user customizes report and saves it. Later on the program loads the report, fills actualized data and displays it in .net report viewer.
What I do:
CrReport = New CrystalDecisions.CrystalReports.Engine.ReportDocument
CrReport.Load(TemplateFilename)
Dim Results As DataTable
DataTable is filled from a database
CrReport.SetDataSource(mResults)
CrReport.SaveAs(NewReportPath, True)
The NewReportPath is opened in the default program.
What are the problems
The report is open in preview mode (not in design).
When the field is added to the report the designer asks for XML datasource on preview.

The short answer is that it is not possible. I broke the question to other two: How to save a report that it opens without preview? and How to create user editable Crystal Report with dynamic dataset, where it is possible to find details. Key answer is Re: How to create an editable previewable report?

Similar Messages

  • Unable to save the Crystal Report with Dynamic paramters in Enterprise

    Hello,
    We are not able to save our Crystal Report with dynamic parameters in Enterprise, Error message as follows :
    "Failed to read data from report file C:\DOCUME1\...\crw{...}.rpt. Reason : Failed to read parameter object"
    CR Developer Version 12.0.0.683
    help us in this regard..
    thanks,
    Narasimha Murty

    Hello,
    The error message occurs because the user or group who created the LOV does not have the appropriate rights in Business View Manager.
    Try this hope its helps
    To resolve this issue follow the steps,
    1.Log on to Business View Manager as administrator.
    2.Click View > Repository Explorer.
    3.Right-click Dynamic Cascading Prompts. Click Edit Rights.
    4.Click the appropriate user or group receiving the error.
    5.Click the Granted option for the right to View, Edit & Set Security rights.
    6.Click OK. Close Business View Manager.
    The user or group is now able to save a report with dynamic parameters to Enterprise.
    Regards,
    Vinay

  • How to creat a summary of report with .txt

    Hi All,
         I want to creat a summary of report with .txt,and i have disabled the function about report generation in teststand.
         i created a complex sequence,it include some sub-sequences,example:the uut is tested on three different temperatures and four different voltages conditon.So i have creat three sub-sequences (diffrent temperatures) include four steps (different voltages),then mainsequence invoke three sub-sequences to excute test.
        i only want get the fail-step's summary with,include: fail-step's name,status 
        how to do?thanks a lot
    Solved!
    Go to Solution.

    You can use Parameters.Step.Name to get the failed step name. You can also use something like Parameters.Step.StepType.Name == "NI_MultipleNumericLimitTest" to filter different types of steps.
    As far as finding the entire failure chain...
    You can check RunState.CallStackDepth to see how many callers deep you are. Based on that information you can use RunState.Caller.Caller.(continued for however many callers deep you are).RunState.Step.Name or .Sequence.Name
    So if the CallStackDepth is 1, you would only need to use one Caller. If it was 2, you would need to recursively use 1 Caller and then 2 Callers and so on.
    CTA, CLA, MTFBWY

  • How to create an editable previewable report?

    The Situation (the report is  CrystalReports.Engine.ReportDocument):
    I load the report (.Load(Template)) and  set data (.SetDataSource(DataTable)). I save the report (.SaveAs or .Export). The Template does not necessary contains fields in DataTable used as datasource.
    When I open the created report in "Crystal Reports 2011" the report preview is shown.  When I switch to the design tab I can drag fields to the report, but when I switch to the preview again a dialog asking for ado.net xml datafile is shown and when canceled (I have no datafile) empty preview is shown. In Visual Studio 2010 (CRVS 2010?) I see the preview when I cancel the dialog and click the design and  the preview again.
    The Question:
    Is it possible to create a report containing data with the preview working after report is edited?
    Note:
    I can achieve the desired behavior with external data file, but this soulution is not very convenient.

    Ah... that helps a lot...
    A couple of ways to go about this. From your template report compare the fields that exist in the report with those your Query has and add them into the Report. You can use the Command Object to append the fields and then the report will need to be refreshed against the XML file. In this case though the report will need to be ran again.
    Another option is to export your data from your Query into a DataSet and simply .setlocation to the DS, great for small amounts of data, less than 2K rows or so but you'll have to test for the limits.
    Another option is to to use RAS to completely create the report from nothing. See these samples on how to:
    http://wiki.sdn.sap.com/wiki/display/BOBJ/CrystalReportsSDKSampleApplications
    Bottom line is if you change the fields in a report it is going to have to be refreshed so the report can add/update the field reference list saved in the RPT file. If they don't match CR will simply delete all fields it can't match up.
    If using RAS to Create the report and set it to the new field list then you can build your own "Report Designer"
    As for running the Query again, that depends on how and where the data exists. If you save your date results into an XML file then it won't hit the DB again.
    This will generate the XML file:
                ds.WriteXml(@"D:\Atest\list_of_workflows.xml");
                ds.WriteXmlSchema(@"D:\Atest\list_of_workflows.xsd");
    Then load the XML file into a Dataset and then simply use:
    rpt.SetDataSource(ds);
    To set the Report to the XML file.
    XML is the preferred way and it doesn't have any memory limitations as Active DataSets do. ( MS limitation due to security, CR can't access the original so we have to make a copy which effectively doubles the amount of memory required )
    Don

  • How to stop printing the crystal report with an alert message

    I am having a field called "APPROVAL" in my stored procedure with which I prepared the CR. I want that if the value in the filed is 'A' then only the crystal report should print else it should prompt with an alert message.

    Hi Sreejith,
    Check this helps you:
    Create an alert from "Report  -> Alerts -> Create or Modify Alerts" with below steps:
    1. Provide name of the alert (say Alert1)
    2. Click on X+2 in front of "Message" field and write the Alert message you want to display.
    3. Click on Condition button and write the condition If not({APPROVAL}='A') then true;
    The above Alert will prompt with configured alert message when {APPROVAL} field is not having value of 'A'
    Now, in a formula, write below content and display it where you want to display the APPROVAL field value:
    If {APPROVAL} = 'A' then
              {APPROVAL}
    This formula content will be blank if the value of {APPROVAL} is not 'A'
    Thanks,
    Raghavendra

  • How to create a matrix like report with description column

    Hi,
    currently i have two tables - one describing a job and another describing the stock. it is a simple relation where a job uses stock.
    i join job and stock using stock_code. there are three categories of stock - namely envelope, insert, stationary.
    i wish to create a cross tab report - basically i would like it to look like
    jobname, envelope, stationary, insert
    abc, e1, s1, i1
    , ,s2,i2
    def, e2,s3,i4
    , e3, , i5
    basically for each job i would like to place the stock code under envelope, stationary, or insert based on what type of stock it is. i can do this in sql, however, i get left with blank spaces.
    i do this by
    select     
    "FILE_PARAMETER"."FILE_NAME" as "FILE_NAME",
    "CATEGORY",
    "STOCK"."STOCK_CODE" as "STOCK_CODE",
    decode(upper("CATEGORY"), 'LASER', "STOCK_CODE", '') "LASER",
    decode(upper("CATEGORY"), 'ENVELOPE', "STOCK_CODE", '') "ENVELOPE",
    decode(upper("CATEGORY"), 'INSERT', "STOCK_CODE", '') "INSERT",
    decode(upper("CATEGORY"), 'INSERT',"STOCK"."DESCRIPTION",'') "DESCRIPTION"
    from
    "FILE_PARAMETER" "FILE_PARAMETER",
    "JOB_OVERVIEW" "JOB_OVERVIEW",
    "STOCK" "STOCK"
    where
    "FILE_PARAMETER"."FILE_NAME"="JOB_OVERVIEW"."AP_JOB_CODE"
    and "FILE_PARAMETER"."SCODE"="STOCK"."STOCK_CODE"
    ORDER BY "FILE_PARAMETER"."FILE_NAME", "CATEGORY"
    unfortunately this doesn't give me exactly the output i want. i would like it to show the first piece of stock in each category on the first line, and each subsequent stock on the line after that for each job group. my solution at the moment will put the stock in the corresponding stock category column but i have been unable to find a solution to removing the blank space.
    i have created the matrix report in developer and it can do what i want, however, it will not show the description for insert only. the way i have grouped it, it wants to show it all, and being a reports newbie i have no idea how to fix that
    any solutions would be very much appreciated!

    This feature is supported in MS Access and known as CROSSTAB through TRANSFORM function.
    In Oracle this exists but not in a elegant way as in MS.
    You have addition function GROUP BY ROLLUP and CUBE and GROUP BY GROUPING SETS, available in 10g, which can help you.
    Look in manuals and play with it!

  • How to feed data into crystal reporte with "SQLQuery" method in c#?

    Hi there,
    I've an old app that was written in VB with some crystal reports from Crystal Report 7.
    Now I need to upgrade this old app into c# with newer version of Crystal Report, so we decide to go for VS2010.
    I can open the report template in the VS2010 without any problems.
    But I'm running into some issue here:
    the old report has multiple tables from a SQL db as the connection. Each table has a PK to each other.
    and the VB code feed the data like below:
    MainForm.CrystalReport(1).SQLQuery = SQLString
    I couldn't find any reference for "SQLQuery" method in the C#, is there such command exist?
    Thank you in advanced,

    Thank you Ludek. Looking into the info you provided.

  • How to create a Power Pivot Chart with Dynamic X-Axis (date time) similar to that in Performance monitor (Start-- Run-- Perfmon)?

    Hi,
    I want to create a Power Pivot Chart and a Power View chart in Power BI where the x-axis should be the current system date time axis and it's functionality should be similar to that in Perfmon.exe tool (Start-->Run-->Perfmon)?

    Hi Manjunath,
    Do you mean you want to programmatically create such a dynamic chart which has a X axis of time? If you just want to do this manually, please take a look at this document which is talking about how to create charts with Power BI:
    Charts and other visualizations in Power View
    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.

  • Error when uploading a crystal report with dynamic parameter into Infoview

    Hi All,
    I was trying to upload a crystal report which has a dynamic parameter into a Infoview. It shows an error message that say:- "Failed to read data from report file C:\WINDOWS\TEMP\tmp27A.rpt. Reason: Failed to read parameter object ". Can anybody help me in solving this?
    Thanks!
    Edited by: undefined on Aug 20, 2009 8:57 PM

    Post your question to the Business Objects Forum

  • Unable to Save Crystal Reports(With Dynamic  Parameters to Infoview)

    I am using Crystal Reports 2008 and BOXI 3.1. I have 5 dynamic parameters and can't save my report to Infoview, but If I use Static parameter then I am able to save it.
    Any help would be highly interested?
    thanks
    nisniki

    What is the exact error message and the version of crystal reports.Can you also check that all the BOE services are up and running

  • How to create feilds in Webi reports with where condition

    I need to create a feild display name by keeping the constraint condition
    o     Display value – dbo.Personnel.Fullname   METRICPERSONNEL
    o     Joining tables – dbo.MetricRequestTeam.MetricRequestKey, dbo.MetricRequest.MetricRequestKey
    o     Constraint – dbo.MetricRequestTeam.MetricRoleTypeKey = ‘2’
    How we can do this in webi level.
    Thanks

    Hi Sasi,
    I am taking assumption that you have already merged both the table at report level on common column.
    So for Analyst column in report you want to display :
    IF  dbo.MetricRequestTeam.MetricRoleTypeKey = ‘2’ THEN "Lead"
    Else IF dbo.MetricRequestTeam.MetricRoleTypeKey = ‘4’  THEN "Analyst"
    Am i Right??
    For this just create a variable  ( I think here it will be a Dimension) with following formula:
    =If([Column_Name] =2) then "Lead"
    Else (IF([Column_Name] =4 then "Analyst" else "None")))
    Drag this variable to analyst column it will give you desired values.
    Points to remember:
    If the data type of column "dbo.MetricRequestTeam.MetricRoleTypeKey" is string then put "2" or "4" in formula else it will give you #syntax error.
    Alternatively you can also give following formula:
    =If([Column_Name] InList ("2") ; "Lead";
    (IF([Column_Name] InList("4") ; "Analyst" ; "None")))
    Hope it helps!
    PS: you have already marked a reply as correct answer
    Thanks,
    Shardendu

  • How to create PDF from Crystal Report instead of CRT

    Hi
    How can we view the reports as PDF within SAP Portal (instead of viewing crt-Files with BO-iView-template)?
    I know CRs as PDF from SAP NW IdM - reports are created as PDF there.
    We use CR 2008 SP2 with SAP_BW as datasource. We'd like to view the reports in SAP Portal.
    Regards
    Kanan

    Moved to Integration Kit forum

  • How to create and process Iinteractive report with selected records in 4.1

    Hi,
    I want to have an Interactive report that will have in front of each row a checkbox that can be selected for batch processing. Is there a way to do so?
    If there is please include some method to process those records i.e. for each selected record create a new record on a different table and update the record itself as processed.
    thanks
    Edited by: yannisr on Jul 13, 2012 5:58 AM

    For this you need to consult APEX documentation for two things
    Create a checkboxes using APEX_ITEM API
    How to reference those checkboxes within an On Submit Process

  • How to create a graph(9i reports) with 3 queries in 1 Chart

    Hi, i have 3 query's which creates three groups.
    The x-as is de month,month1,month2.
    The Y-as ClaimsInEURO.
    There has to be one BAR which displays the top10 reasons.
    And two lines one with Total Claim and one with SUM Claim.
    Can onyone explain me the settings and especially how to set the groups?

    Hi,
    You may not be able to create one graph with multiple queries. You must get all the data into ONE query, and create a graph based on that query.
    Navneet.

  • How to create a table less structure with dynamic menu module

    Hi guys,
    I am using dynamic menu module for creating a main menu for http://firstsite08.businesscatalyst.com/
    but it is generating table structure. What changes to do i had to make to generate a table less structure from dynamic menu module.

    Hi Andy,
    When you create a Menu, the option dropdown for the menu has Default, but under that you will see HTML CSS Only option which creates a ul li structure.
    For the Menu Module options you can find more information from the knowledgebase: http://kb.worldsecuresystems.com/134/bc_1345.html?bc-partner#main_Menu_Modules
    If you would like to use the version 2 menu module you can find a bit of a guide I wrote here: http://forums.adobe.com/docs/DOC-1903

Maybe you are looking for