Hi, I'm building a report on the fly and I need to create groups. From googling, it seems that I need to clone from an existing group. In order to that, I need a single group in my blank report. I'm trying to create a dynamic group as in http://www.encodedna.com/2013/06/dynamically-change-groups-crystalreports.htm but my Insert Group menu option is greyed out. Any ideas?
Crystal Reports - programatically create a new group
crystal reports convert string yyyy-MM-dd HH:MM:SS to datetime format
Hi,
I have date string in yyyy-MM-dd HH:MM:SS format.
For example, 2014-12-16 10:16:02
How to convert to DateTime format in crstal reports 2011?
Thanks.
Carriage return in BVM for CR input parameters
Hello,
How to use a carriage return/newline character in the BVM for input parameters for a crystal report? (CR 2013 SP3P4, BVM 14.1.13.1405.SP3P4)
I have written a query with carriage retrun in the select clause. The LOV is getting scheduled. In the CR input parameters' window, I am not able to see the complete string in a value - only the part before carriage return in visible. Also, I am not able to select anything. When I select a row, it is not getting selected, the box 'blinks' , seems to refresh or load, like it happens for cascaded parameters.
Any help for the same?
Basically, the width of the input parameters' pop-up box cannot be changed and the length values are not visible to the users, hence the carriage return approach.
Thanks,
Prasanna
Invalid Argument was encountered
Hello,
I created a very basic report with one formula and 5 tables primary table is joined to all other tables (left join). 90% of the data is coming from one table. I used Select Expert Record to filter out certain fields - but I can't imagine that is causing the error.
I want to print all monthly bills on a click. It Prints only last bill
I m suing crystal report for printing all the monthly bills on a single click. Problem i m facing is the loop and other ode is working fine but the ystal report viewer is showing only the last bill to print.
I m posting my code plz check
aspx page code
<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Prints.aspx.cs" Inherits="invenrtymanagement.Prints" %>
<%@ Register Assembly="CrystalDecisions.Web, Version=13.0.2000.0, Culture=neutral, PublicKeyToken=692fbea5521e1304"
Namespace="CrystalDecisions.Web" TagPrefix="CR" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
<title></title>
</head>
<body>
<form id="form1" runat="server">
<div>
<CR:CrystalReportViewer ID="CrystalReportViewer1" runat="server" AutoDataBind="true" />
<CR:CrystalReportSource ID="rptDoc" runat="server" ></CR:CrystalReportSource>
</div>
</form>
</body>
</html>
.cs page code
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Data;
using System.Data.SqlClient;
using System.Configuration;
using CrystalDecisions.CrystalReports.Engine;
using CrystalDecisions.Web;
namespace invenrtymanagement
{
public partial class Prints : System.Web.UI.Page
{
SqlConnection con = new SqlConnection(ConfigurationManager.ConnectionStrings["con"].ToString());
SqlDataAdapter da;
DataTable dt;
SqlCommand cmd;
string sstr;
protected void Page_Load(object sender, EventArgs e)
{
if (!IsPostBack)
{ }
try
{
int t;
SqlDataAdapter da105 = new SqlDataAdapter("select BillNo from Customer_Bill where mode='0'", con);
DataTable dt105 = new DataTable();
da105.Fill(dt105);
for (t = 0; t < dt105.Rows.Count; t++)
{
//System.Threading.Thread.Sleep(10000);
ReportDocument rptDoc = new ReportDocument();
DataSet1 ds = new DataSet1();
DataTable dt = new DataTable();
dt.TableName = "Crystal Report Example";
SqlDataAdapter da = new SqlDataAdapter("select * from companyprofile a join Customer_Bill b on a.states=b.LedgerAccountID join bill_details c on b.BillNo=c.BillNo where b.BillNo ='"+ dt105.Rows[t][0].ToString() +"'", con);
da.Fill(dt);
ds.Tables[0].Merge(dt);
rptDoc.Load(Server.MapPath("CrystalReport1.rpt"));
rptDoc.SetDataSource(ds);
CrystalReportViewer1.ReportSource = rptDoc;
//cmd = new SqlCommand("update Customer_Bill set mode='1' where BillNo='" + dt105.Rows[t][0].ToString() + "'", con);
//con.Open();
//cmd.ExecuteNonQuery();
//con.Close();
//break;
}
//int t;
// SqlDataAdapter da105 = new SqlDataAdapter("select BillNo from Customer_Bill where mode='0'", con);
// DataTable dt105 = new DataTable();
// da105.Fill(dt105);
// for (t = 0; t < dt105.Rows.Count; t++)
// {
// sstr = dt105.Rows[t][0].ToString();
// cdetail();
// dataname();
// showgrid();
// adr();
// ScriptManager.RegisterStartupScript(Page, GetType(), "dvQuotation", "doPrint();", true);
// //btnPrint.OnClientClick = ;
// //this.btnPrint.Click = true ;
// }
//
}
catch (Exception ex)
{
Response.Redirect(ex.Message);
}
}
public void print_page()
{
// Page.ClientScript.RegisterStartupScript(this.GetType(), "myScript", "doPrint();", true);
}
}
}
I need your urgent attention.
SAP Crystal Reports 2011 Trial
I remember sometime 7 months ago in the SDN blog there was a post which has 6 months free trail license for SAP crystal reports 2011.
I know the default is 1 month, but I could not search for that trial license which was good for 180 days.
if any one can trace that posting or knew the trial license key, I would appreciate.
User interactive filters in CR 2013
Hi,
I have requirement to create filters for the user to select Top N/Bottom N records on the selected measures from drop down.
Being worked with Crystal reports before and understand the tool limitation but still posting to look at the suggestions.
if no work around then is it possible to provide parameter option user to select "TopN/Bottom N and Measure prompts" after initial refresh run ?.
Like User can refresh report with FY/Period first time and then later if they want to filter, then they can see Top&Bottom N / measure prompts to select.
Crystal reports 2013 on HANA/BEX query
Thanks,
Jothi
Invalid export type
Dear All,
I am facing the issue with "Invalid export type" when i am trying to create a PDF by reading the elements
I am using the Crystal reports 2013 and VS 2010 which is running in Windows 2008 R2 platform.
faollowing is the error shown :
System.Runtime.InteropServices.COMException | {"Invalid export type."} | System.Runtime.InteropServices.COMException |
This is working fine when i do the same with VS 2003 and with CR 9.0.2
Following is the stack trace :
at CrystalDecisions.ReportAppServer.Controllers.ReportSourceClass.Export(ExportOptions pExportOptions, RequestContext pRequestContext)
at CrystalDecisions.ReportSource.EromReportSourceBase.ExportToStream(ExportRequestContext reqContext)
at CrystalDecisions.CrystalReports.Engine.FormatEngine.ExportToStream(ExportRequestContext reqContext)
at CrystalDecisions.CrystalReports.Engine.FormatEngine.Export(ExportRequestContext reqContext)
at CrystalDecisions.CrystalReports.Engine.FormatEngine.Export()
at CrystalDecisions.CrystalReports.Engine.ReportDocument.Export()
at Sample.clsCrystalToPDFConverter.Transfer(String inscode, String enrolment_number, String withdependent
I am attching the code for your reference.
Since i am beginer to the world of CR please help me.
Advance thanks.
Crystal Reports XI R2 SP6 Install Error...
In an attempt to provide a silent, unattended install method to our user base, I'm utilizing MSIEXEC to install the CrystalReports.msi installer (see attachment - cmd.window.text.png), but have encountering an error (see attachment - error.window.png) and cannot proceed with the installation. Please advise at to how to move past this issue and proceed with the install. Thank you.
Where do I find the SDK for .NET
Is there a downloads site for the VS SDK?
Counting Hours
I have been trying to figure out how to note each hour used in a formula and am very stuck!
For example, if a surgical case starts at 7am and runs until 10:14am I would like a 1 placed in each hour that the case touched.
So there would be a 1 in 7am,8am,9am, and 10am. The rest of the hours would contain zeros.
Any help would be greatly appreciated.
Total sum on record select needed
HI I Have a report that I have to make a record select based on if the order had over $1000.
the data is grouped according to ship date and order# and I am summarizing the order.
Order
Shipdate Units Total$
07/07/15
123 200 1500.00
But how the $1500 showm is a Running total. It does not show up in the RECORD selection.
How to pass the parameters from dashboard to crystal through the Open Doc URL
HI Experts,
I have created a dashboard having three prompts in the BEx level.Now I want to pass these three prompts(two prompts with single values,1 with multiple values)as the parameters in the open doc URL for the Crystal Reports for Enterprise 4(same query). I was success in passing the Single Parameter, but when try to pass the three prompts it is not taking the parameters.
Thanks & Regards,
Shivani.
Crystal report full-page images not showing in design or preview
Experts,
I need to import multiple full-size (8.5x11) pictures into a Crystal report for use in SAP Business One. The pictures are .jpgs taken from each page of a .pdf document. Picture sizes are under 300KB, typically. I tried importing .pdf pages as OLE objects and could not resize them to fit the page properly, so I decided to convert them to picture files. After just 3 or 4 images, the Crystal report (which contains virtually nothing else) grows to 47MB in file size. I am no longer able to see all of the images in the report designer and preview windows, and they don't even export to another format. I can think of no way to view the pictures while I'm continuing to design the report.
Our client needs this document created in Crystal to work with another software. They have up to 20 pages of full-sized pictures as part of their requested marketing-related report. The data portion of the report would be minimal (10 records max, probably) and the tables involved would not be particularly complex. There would be no subreports as far as I can currently determine.
Is there some limit I'm reaching here that is related to Crystal Reports or am I experiencing a memory or hardware limitation? This is occurring on multiple computers, both local and on remote desktops. I have created very complex reports with 20 or so smaller pictures on them and with multiple subreports that end up being 45MB or so in size and they work fine. Why would this situation be so different?
Thanks for any assistance.
Linking Subreport By Parameter with Character Leading Zero - Subreport Empty
Hello,
I'm linking a subreport to a main report, using a character field (employee number) in the main container report to link to an employee number prompt in the subreport. The problem is, for employee numbers with a leading zero, the subreport at runtime generates an empty result set. All other employee numbers generate subreport data fine.
The only cause I can think of is somehow the employee numbers with leading zeros are being translated as a number when being linked to the subreport. Except I checked the subreport employee parameter, and that is defined as a string!
When I run the subreport standalone for that leading zero employee number, data does appear. So the subreport on its own is pulling the data in fine. It's just when linked to the container main report that the empty result set occurs.
Very frustrating; any ideas appreciated.
Thanks all.
-SL
Problem connecting Crystal Reports to either MS SQL Analysis Server or local cube file
Hello,
I am trying to use Crystal Reports to report on a cube built inMicrosoft SQL Server Analysis Services (SSAS), however Iam stuck at the very beginning, as I cannot connect to SSAS server.
Here is what I doinCrystal:
1)
OLAP Cube Report wizard -> Select Cube - > Add Server -> Server Type = Microsoft OLE DB Provider for olapservices 8.0 -> type the name of my SSAS server -> click Test Connection -> I get the following error:
"The connection could not be established. Failed to initialize (Cannot connect to the server ‘...’. The server is either not started or too busy.) "
Crystal Reports and SSAS are installed on the same machine. SSAS is running which can be verified in SQL Server Management Studio and SQL Server Configuration Manager. I also restartedSSAS servicewith no luck.
Versions:
- - Crystal Reports -> Help -> About: 14.0.2.364 – which corresponds to v2011 SP2
- - SSAS is a part of SQL Server 2012. Help -> About: Microsoft Analysis Services Client Tools is of 11.0.2218.0 version
- - Windows 8.1. Version 6.3 (Build 9600)
2)
Then I tried to open a local cube file:
OLAP Cube Report wizard -> Select Cube - > Local Cube file (.cub) -> select sample file Sales Reports.cub -> click Test Connection -> “Connected Successfully”.
However, I cannot select a cube file because OK button is grayed out.
3)
Then I tried to do withoutOLAP Cube report wizard:
I started a new report -> new Connection -> select OLAP. As soon as I click + to expand OLAP node, Crystal crashes (“Crystal Reports has stoppedworking. Windows will close the program”).
I also downloaded from Microsoft Analysis Services OLE DB Provider for Microsoft SQL Server 2012, and installed it – this made no difference.
Any light shed on this is appreciated. Thanks!
Max
SAP Crystal Reports 2011 Trial
I remember sometime 7 months ago in the SDN blog there was a post which has 6 months free trail license for SAP crystal reports 2011.
I know the default is 1 month, but I could not search for that trial license which was good for 180 days.
if any one can trace that posting or knew the trial license key, I would appreciate.
Arrays filled with text/blank instead of key
Since our upgrade from BO 4.0 to BO 4.1 SP 6 arrays in Crystal reports from variables designed in Query Designer are filled with text or remain blank instead of keys.
When using Crystal prompt, default values appear correctly. The report is also filtered correctly. However when I drag-and-drop the parameter on display, the field shows the text instead of the key.
When I access the Crystal Report by OpenDoc and submit the variable values, the report is again filtered correctly, however when displaying the parameter , the field remains blank.
Somehow Crystal refers to the texts when using the promt and doesnt fill the parameter correctly when being accessed by OpenDoc. At the same time filtering does work correctly.
We need keys as they are used for linkages via OpenDoc to other Crystal Reports.
We use Crystal for Enterprise 14.1.6.1702.
Any idea how to fix it? I havent found any information in (release) notes. The function "GetuniqueName()" doesnt apply on parameter arrays.
Greeting
Achim
Crystal report 2013 - Arabic support
Hi,
I am using Crystal report 2013. I am placing some Arabic text on the UI as labels. Initially the labels were coming fine but now when I am trying
to copy and paste the Arabic content it is showing ???with some arabic characters in the text field. When I try to edit the Arabic content at that time
the content shows fine.
Can anybody help me in this regards?
Thanks,
Simran
Could anyone please help me how do we read Gender from the followinng rawdata after dob abc/db///23jan14/m/ggg
Could anyone please help me how do we read Gender from the followinng rawdata after dob abc/db///23jan14/m/ggg
Thanks,
Nanda