Quantcast
Channel: Crystal Reports
Viewing all 1507 articles
Browse latest View live

Using SetDatabaseLogon()

$
0
0

I am now working on existing application that uses Crystal Reports. I have no prior exposure to Crystal Reports.

For database connection SetDatabaseLogon(username, password, servername, database) is used in the source code.servername is one of DSN names that are setup on the server.

But DSN already specifies all credentials such as username, password and database. Is there a way to just reference DSN name for database connection to avoid hard-coding username, password and database in the source code?

Or is there a way to just use connection string from web.config instead?


Break a large text field at page break

$
0
0

I have a Crystal Report which is populated by a sql server stored procedure. Out of the 12 fields, two contain out put of VARCHAR(MAX) fields of SQL Server tables. These fields are placed in separate Details Sections to ensure that they can grow while retaining relative positions.
 
When the text fields are populated with a large text value (sometimes more than a page length), a part of the field just disappears after the page break. The remainder is not shown on the next page. More surprisingly, when I return back to the previous page where the text field started, the content is different from what was there in the biginning! The large field values are not visible at all!
 
If I export the report, the large field values are not seen only.
 
Is there any size restriction for Crystal Report text fields? More importantly, Is it possible to insert a pager break to the section when it is displaying the large text?
 
I tried playing around with 'Keep Together' property of the text field as well as the section. No success.

I am using VS2012 and corresponding Crystal Report for VS from SAP.

Any suggestions?

Integrating Crystal Reports with Visual Studio 2013 Express

$
0
0

I am using the free edition, VS 2013 express. What is the best Crystal Reports version that is integrable with Visual Studio 2013 express for web?

What is the exact requirement needed to make the integration and is there any batch files need to be installed to fix any integration problem?

Thanks

Crystal Report is not showing updated records in C#?

$
0
0

Hi i created a crystal report. When I call the crystal report from C#.net, It's not showing the updated records instead it shows only the old records, when i manually refresh the report is shows the updated record for that particular page. i couldn't able to navigate the page too........

I'm breaking head with this for past 2days,Can anyone help me to do this...

Expecting quick suggestions

Thanks in advance.............

How can I install the Crystal Reports into Visual Studio 2013 Express for Web

$
0
0

I am using VS 2013 express for Web.

I want to have the Crystal Report object listed along other objects (Web Form, Class, Master Page, Style Sheet, Browse File,...) when I go Add -> New item -> Crystal Report

So will it available automatically when I installed the SAP Crystal Reports Developer version for Visual Studio?

Thanks,

How to add crystal report in visual studio

$
0
0

HELLO, Friends i want to add  crystal report in visual studio...please tell how to add crystal report step by step...please help me friends..

Visual Studio 2012 Crystal Report not working on Web server

$
0
0

Hello,

I have created a crystal report in VS2012. it is working properly on local but when i host site on live server then it gives below error.

Could not load file or assembly 'CrystalDecisions.Web, Version=13.0.2000.0, Culture=neutral, PublicKeyToken=692fbea5521e1304'or one of its dependencies. The system cannot find the file specified.


Thanks,
Krunal

Crystal Report displaying blank in web server

$
0
0

Hi all,

Crystal Reports are appearing correctly in the  development environment , getting blank page after application hosted at webserver. Instead of displaying report blank page appearing.

I tried alot to fix this problem, also tried the below fixes but no use.

1) Enable 32 Applications True at Application pool.

2) placing the aspnet_client folder in the root folder.

Any help!

Thanks & Regards,

Srinivasu D.


Exporting Crystal Report to excel I am getting memory out of exception error.

$
0
0

Hi,

<div class="WordSection1">

When I try to export my crystal report to excel I am getting memory out of exception error.

My data here has 52k rows and 5 columns. When the data is huge I face this problem.. 

When the data is small we don’t have problem In exporting to excel. My server has SP2 installed

 and the setting  ignore paging to false Also did not work. Please suggest.

</div>

Load report failed on web server

$
0
0

Hello,

We started to have a weird problem about a week ago. Suddenly about once a day all Crystal reports on the web server stop loading ("Load report failed."). All of them at once (we have around hundred). There is no apparent reason for this. To fix the problem I have to re-publish the ASP.NET application. What's more - this is a server specific. We have 3 web servers where this application runs, and only one of them has this issue.

We had tried to reboot the server, clear the cache - no luck. What could be an issue? Any suggestions would be appreciated.

Thank you.

Crystal Report with MySql

$
0
0

Hi All,

I am using VS 2008 with MySQL. I have a database in MySQL. I want to pass Student Roll Number and according to that Roll Number I want to display report which should be Printable.

How to do that?

Thanks

Print Crystal Report on Server from ASP.NET Web Service

$
0
0

Hi

Can I print a Crystal Report from a Web Service to the local default printer (on the Server, not the client)  without displaying the printer selection dialog (or any dialogs)? Can I even print on the server?

Many thanks for any and all assistance.

Ross

When printing multiple pages in crystal report invalid index issue

$
0
0

Dear All,

When I am going to print a crystal report with multiple pages following error  occurred

please help on following issue

Error ~ AT ~ Invalid index. (Exception from HRESULT: 0x8002000B (DISP_E_BADINDEX)) - StackTrace    
at CrystalDecisions.ReportAppServer.Controllers.PrintOutputControllerClass.ModifyPrintOptions(PrintOptions newVal) -    
at CrystalDecisions.CrystalReports.Engine.PrintOptions.set_PrinterDuplex(PrinterDuplex value) -    
at CrystalDecisions.CrystalReports.Engine.PrintOptions.CopyFrom(PrinterSettings printer, PageSettings page) -    
at Com.Isi.Client.OMSClient.CrystalReportViewer.tsbtnPrint_Click(Object sender, EventArgs e)


 

CR Viewer Shows no report

$
0
0

Hello, 

We have migrated from Windows Server 2003 to 2012 R2 Essentials.  We installed VS 2010 Ultimate in the server so my Development Server is also the Production Server.  The thing is that when we are executing the application from the IDE the reports are shown with no problems but, when we deploy the project and run it from IIS the report page is blank and do not show any error messages.  I'm really confused here.  Maybe I am missing something very stupid, but can't get to it.

Any help will be greatly appreciated.

C a r l o s  A n t o n i o

Page orientation

$
0
0

Hello,
I'm having a problem while printing label on Monarch printer.
My label:
width: 4,5 cm
height: 3,5 cm
Page orientation for printer portrait - same as rpt file settings.
The printer prints my label rotated by 90 degrees.
It turns out that when width>height CR changes orientation to landscape.
Has anyone had such problem and found a solution?

My code:

  ReportDocument EtWydruk = new ReportDocument();
  EtWydruk.Load(string.Format(Properties.Settings.Default.PrintOutPath, WydrukNr)); //plik raportu
  EtWydruk.SetParameterValue(0, GID);
  EtWydruk.SetParameterValue(1, zlecID);
  EtWydruk.DataSourceConnections.Clear();
  EtWydruk.DataSourceConnections[0].SetConnection(Properties.Settings.Default.SQLSrv, Properties.Settings.Default.SQLDb, Properties.Settings.Default.SQLUser, Properties.Settings.Default.SQLPass);
  EtWydruk.PrintOptions.PrinterName = Properties.Settings.Default.Printer;
  EtWydruk.PrintOptions.DissociatePageSizeAndPrinterPaperSize = true;
  EtWydruk.PrintOptions.PaperOrientation = PaperOrientation.Portrait;
  EtWydruk.PrintToPrinter(IleKopii, false, 1, 1);
   EtWydruk.Dispose();


Cannot see the second chart in second page in my report when i integrate with vs2010

$
0
0

Hi,

i have a crystal report

with 4 groups in which i have sub reports

when i execute from my crystal report designer i can see the whole report

but, when i integrate with asp.net i cannot see the last 2 items(chart,table)
from second page

FYI , i have total 3 graphs in my report i can display the frst two but i cannot display

the 3rs chart and and a table

so can somebody help me on this

Thank you

how to pass the parameters at runtime in crystal reports using c#

$
0
0

Hi

when i run my report its prompting for input values ,
so to stop this i need to pass my parameters during runtime in C#
how can i do this ,i have subreports inside
Can Somebody suggest me

Thank you

how to avoid the prompting of parameters

$
0
0

Hi
below is my code i tried to pass the parameters in runtime,

but i dnt know when i run still i get prompted for input.

protected void Page_Load(object sender, EventArgs e)
{

DataSet ds = new DataSet();
DataSet ds1 = new DataSet();
DataSet ds2 = new DataSet();
DataSet ds3 = new DataSet();
DataSet ds4 = new DataSet();
DataSet ds5 = new DataSet();
DataSet ds6 = new DataSet();
DataSet ds7 = new DataSet();
ReportDocument rpt = new ReportDocument();

DataTable dt2 = GETTABLE2(ID,DAT);
ds.Tables.Add(dt2.Copy());
rpt.Load(Server.MapPath("PATH"));

rpt.SetParameterValue("@ID", "3265", rpt.Subreports[0].Name.ToString());
rptDoc.SetParameterValue("@DT", DateTime.Now, rpt.Subreports[0].Name.ToString());
DataTable dt3 = GETTABLE3(ID,DAT);
ds1.Tables.Add(dt3.Copy());
rpt.Subreports[0].SetDataSource(ds1.Tables[0]);


rpt.SetParameterValue("@ID", "3265"rpt.Subreports[1].Name.ToString());
rpt.SetParameterValue("@DT", DateTime.Now, rpt.Subreports[1].Name.ToString());
DataTable dt5 = GETTABLE4(ID,DAT);
ds3.Tables.Add(dt5.Copy());
rpt.Subreports[1].SetDataSource(ds3.Tables[0]);

rptDoc.SetDatabaseLogon("sa", "sa123", "abc", "CR");
rpt.SetDataSource(ds.Tables[0]);
CrystalReportViewer1.ReportSource = rptDoc;
}


Can somebody help me thanks

How to set the selection formula in crystal report in asp.net

$
0
0

Dear All,

I have created a crystal report and  created selection fields like this,

and  Now I am trying to set the selection formula in this given way but its showing error

SelectionFormula = "({D_LEAVE.ENTRY_DATE} >= '" + TextBoxFromDate.Text.Trim() + "' AND {D_LEAVE.LV_NATURE} IN ('AB','CL','EL','SL','WP') and {D_LEAVE.CANCEL_FLAG} is not null and {M_EMPL.EMPL_STAT} = 'Y'";

Error: 

The ) is missing. Details: errorKind Error in File arrear_register

so please help me.

Thanks in advance

Crystal Report logon fails on webserver

$
0
0

Hi all,

Since we upgrated from sqlserver2000 to sqlserver2005 my reports won't work anymore on the webserver. On my dev machine they work perfect.
I use an OLE DB connection to the server, I already edited the provider to SQLOLEDB (standard SQLCLNT).

I receive this error:

Logon failed. Details: ADO Error Code: 0x Source: Microsoft OLE DB Provider for SQL Server Description: [DBNETLIB][ConnectionOpen (Connect()).]SQL Server does not exist or access denied. SQL State: 08001 Native Error: Logon failed. Details: ADO Error Code: 0x Source: Microsoft OLE DB Provider for SQL Server Description: Invalid connection string attribute SQL State: 01S00 Error in File C:\WINDOWS\TEMP\rptVacatureDetail {D27274A5-95FE-4A8F-A5E3-C1CF7A584B06}.rpt: Unable to connect: incorrect log on parameters.


The following code loads & connects the report

Dim rapport AsNew ReportDocument
rapport.Load(mapReports & "rptVacatureDetail.rpt")
rapport.SetDatabaseLogon("loginname", "password","severname", "database")
paramField.ParameterFieldName =
"@vac_id"
discreteVal.Value = Request.QueryString("vac_id")
paramField.CurrentValues.Add(discreteVal)
paramFields.Add(paramField)
reportviewer.ParameterFieldInfo = paramFields

reportviewer.ReportSource = rapport

This simple code has always worked for me, it still does on my devmachine but as soon the application is published the reports won't show

Thanks in advance!

Viewing all 1507 articles
Browse latest View live


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>