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

Suppress blank field

$
0
0

I am using crystal reports. Now I have a customer database, where in the address section, there are multiple addresses (Address 1, Address 2 and Address 3) followed by zip code, and town.

There are situations where the customer leaves these address blank. So what I have done is I took a text object and inside this text object I have merged these columns separated by comma, and in the properties of text object, I have checked 'Grow' and 'Suppress blank', so that in case any of the field is left blank, it suppresses it.

It is working fine, but in case of blank section, I want to suppress commas too. How can I accompalish this?


How to use Crystal reports with multiple table data

$
0
0

Hello,


I have a crystal report which uses ms access database. This database has 5 tables. Now i want to use data from all these tables in the crystal report. How can i embed multiple table data(fields) in a single crystal report. i am using C# + asp.net.

regards

Crystal Reports 13.0.2 (VS2012), Dynamic Image Loading

$
0
0

The images that should load in the picture object(insert -> picture -> selected 1.jpg) dynamically are not showing up in the report. instead the default image that was selected shows up.(1.jpg)

what I've done was to change the "Graphic location" to "Pic/"+{PICID}+".JPG", plus the same syntax in the hyperlink section. when i click on the image(hyperlink), it shows up in the browser but not in the report.

i've searched alot and added the handlers in web.config, checked with other images, used an ole paintbrush image, added the "aspnet_client(2.0 and 4.0)" folder to the root, checked the folder permissions of the images(everyone) and still the same image shows up.

the inspection shows this:

<img alt="Image" border="0" src="CrystalImageHandler.aspx?dynamicimage=cr_tmp_image_3663c827-ebbe-45aa-b775-3f0ea21283a1.png" style="width:86px;height:115px;">

but the hyperlink is correct and is:

<a href="javascript:parent.bobj.event.publish('hyperlinkClicked','CrystalReportViewerUTP__UI','url=%252fSitePics%252fUsersPic%252f1327.jpg&target=_self')" target="_self"><img alt="Image" border="0" src="CrystalImageHandler.aspx?dynamicimage=cr_tmp_image_3663c827-ebbe-45aa-b775-3f0ea21283a1.png" style="width:86px;height:115px;"></a>

any help would be appriciated

Crystal Reports : Table Doesn't exists Error

$
0
0

Hello People

I have two crystal reports with same ms access database. One crystal report with using table"GenderSample" is working. While the other report using table "Apartment" is not working. I am using two .aspx files to export crystal report into PDF. Both use the same code but using different datatables.

Bolow code is givng me error that "The Microsoft Jet database engine cannot find the input table or query "Apartment".Though the table " Apartment" is there in the database.

OleDbCommand cmd = new OleDbCommand();
        cmd.Connection = cn;
        cmd.CommandText = "select * from Apartment"; // other crystal report uses GenderSample instead of Apartment
        OleDbDataAdapter da = new OleDbDataAdapter();
        da.SelectCommand = cmd;
        DataTable datatable = new DataTable();
        da.Fill(datatable); // getting value according to imageID and fill dataset
        ReportDocument crystalReport = new ReportDocument(); // creating object of crystal report
        crystalReport.Load(Server.MapPath("~/CopyofCrystalReport.rpt")); // path of report 
        crystalReport.SetDataSource(datatable); // binding datatable
        CrystalReportViewer1.ReportSource = crystalReport;
        crystalReport.ExportToHttpResponse(CrystalDecisions.Shared.ExportFormatType.PortableDocFormat, Response, true, "PersonDetails");

* Note: This error is on the production server on localhost the same thing is working well.

Please let me know what could be the cause. Thanks

Report converted to pdf, prints fine when saved & printed, but not in direct print?

$
0
0

Hi,

I've a print option in my app, which converts reportviewer to pdf when print button is clicked.

Now, if I save this converted pdf and print, print comes in exact size. But, if I directly click print button in the pdf, print comes smaller or wrong in expected size.

How to fix this problem?

Crystal Reports for VS2010 PDF creation issue

$
0
0

Hi,

We have a web app that uses Crystal Reports in a Visual Studio 2010 project mainly as an export to pdf, and was working fine. We used Crystal Reports v 13.0.2000.0.

After joining the project, I installed Crystal Reports v 13.0.2000.0 for Visual Studio 2010 on my local machine. After modifying some Reports the app was working fine localy on my as well as my colleague`s local machine. When published to a test server, the Reports were not creating as PDF's, and nothing happend when clicked on the export to PDF button.

I tried to reinstall Crystal Reports, checked the .dll`s version, everything was fine.

I checked my GAC, and found two versions there, the 10.2.3600.0 and 13.0.2000.0, although I have not installed the 10.2.3600.0 (I do have VS2008). Test server has Crystal Reports v 13.0.2000.0. 

Any help is much appreciated.

Thanks.

Unable to show image on Crystal Report

$
0
0

Hello Everyone,

I want to display the company logo (an image) in the Page Header of my reports. I have the file stored on physical drive and I also know its path - in other words, no DB involved. So when I place the image while designing, it's visible. When I preview it within Visual Studio by clicking on 'Main Report Preview' the image is still there. However, when I run the application to view the report, all the data is populated correctly except the image.

Any ideas?

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?


How to set printer pageSize dynamically when export RDLC to PDF?

$
0
0
<div>Hi,</div> <div>I've some RDLC's which are of different pageSizes like  Letter, A4, some custom sizes also.</div> <div> For printing these RDLC reports, I convert them to PDF and from PDF, I print them.</div> <div> </div> <div>1. How can I set printer orientation& pageSize automatically based on PDF size when printed from PDF?</div> <div>Ex: if PDF is of A4, then orientation is portrait and pagesize is A4.</div> <div>if PDF is 6X4, then orientation is landscape and pagesize is whichever comes nearer to the PDF size.</div><div> </div> <div>2. Is there any way to print them directly? When I click print button on my page, directly print preview comes.</div>

Cannot access to CrystalReportViewer in first-time access (ASP.NET page, Single Sign-on)

$
0
0

Greeting everyone, I added CrystalReportViewer control in my custom ASP.NET page. And I wanna user can experience single sign on features in my web application.

  

The site map as follows:

- Home (SSO is preferable, with top ten product list retrieved from custom DB – by using Windows Authentication)

- Report (SSO is preferable, retrieved data from custom DB – by using Windows Authentication)

- Document List (SSO is preferable, with iFrame and pointed to SharePoint Web Part)

  

After I deployed the web application to IIS, I tried to login Windows as a domain user account. I can access Home page and Document List without login prompt(using IE 11).

  

Btw, when I tried to view report, browser prompts Windows login and require user name / password. After I click cancel and “401 - Unauthorized” displayed.

I can read crystal report viewer when I go to the page again and no more login required.

  

I can reproduce the problem after I restarted IIS or access the same page by using other user account. May I ask your advice & help?

  

Supplement information for server environment listed here:

- SAP Crystal Reports 2013 Support Pack 1

- Visual Studio Professional 2012

- .NET Framework 3.5

- Windows Server 2012

- CrystalReportViewer control

- CrystalDecisions.Shared (v 13.0.8.1216)

- CrystalDecisions.Web (v 13.0.8.1216)

- CrystalDecisions.CrystalReports.Engine (v 13.0.8.1216)

- Report Template Folder permission (under IIS folder)

-> Domain Users: Read, Read & Execute

-> Domain Administrators: Full Control

 

Thanks,

Tony

Crystal report suppress if duplicated issue

$
0
0

Hi,

    I will be created for group report in the ASP.NET, This report i am getting some duplicate columns, i removed duplicate columns using suppress if duplicated option, So its working for first page, If first page record has continue to second page means this option is not work, So how can i remove this duplicate columns in all the pages using report Group section.

 Please help me.

Thanks,

Crystal reports are not loading fully, memory full issue.

$
0
0

Hi,

i am trying to display the crystal report on crystal report viewer. My crystal report has 18 subreports, i am using images in the subreports . I am trying to acheive this on page load. On some occasions the page using the crystal report viewer gives me "Memory Full" Error. Sometimes the reports loads but not fully, first few subreports loads while other subreports are empty.

i also tried using dispose() , close() but i am able to add these functions on Page_Unload. Please suggest what should i do.

Regards

Crystal Reports HTML Paragraph Breaks not showing

$
0
0

I am importing HTML text data into crystals reports and set the Text Interpretations to HTML

The data displays but there is no line under each of the paragraphs

Appreciate any suggestions

How to calculate opening & closing balance in crystal report 8.5

$
0
0

Hi All,

I want to create stock ledger report in crtystal report as per below mentioned format :-

Item No & D.Category D.Number D.Date rec_qtyiss_qtybal_qty
A-8596314      OP_BAL :150
DIN I02415 05/06/2014 15 165
DOT I08541 07/06/2014  10155
DOT I08542 08/06/2014  5150
DIN I02416 10/06/2014 190 340
DOT I08543 13/06/2014  40300
DOT I08544 22/06/2014  90210
DOT I08545 25/06/2014  60150
     TOTAL205205150

and I am creating report from below mentioned view:-

CREATE VIEW LDR_STK AS      
select A.CAT,A.NO,A.REF_NO,A.DATE,A.I_CODE,B.DESCRIP,SUM(A.REC_QTY) REC_QTY,SUM(A.ISS_QTY) ISS_QTY,SUM(A.REC_QTY)-SUM(A.ISS_QTY) BAL_QTY FROM         
(select A.I_CODE,A.CAT,A.PROD_NO REF_NO,A.NO,B.DATE,A.QTY REC_QTY,0 ISS_QTY FROM STK_INH A, STK_IND B     
WHERE A.CAT+A.NO=B.CAT+B.NO      
UNION ALL        
select A.I_CODE,A.CAT,B.REF_NO REF_NO,A.NO,B.DATE,0 REC_QTY,A.QTY ISS_QTY FROM STK_OH A, STK_OD B     
WHERE A.CAT+A.NO=B.CAT+B.NO) A, ITM_MAST B    
where A.I_CODE=B.I_CODE      
GROUP BY A.CAT,A.NO,A.REF_NO,A.DATE,A.I_CODE,B.DESCRIP

All data dispalying correctely in report but opeing balance and balance qty for each transaction doesn't showing correct figure. And in report i created group on doc-category, item-code & doc-date.

Pls tell me how i can create it i will ve very thankful to your.

Thanxxx

Neel

Crystal Report export to PDF in ASP.NET 4.0,Windows Server 2008,IIS 7.5

$
0
0

we have application in visual studio 2008,iis 6.we converted that appliction to visual studio 2010,crystal reports 13,IIS 7.5,Windows Server.When we export report into large PDF not displaying anything in IE 11, But small data it's working fine.Report is working in under IE 10.It was report working before conversion.Could any body help me.


Crystal Report Viewer web page requires login again

$
0
0

Hi All,

I'm new to Crystal Report integration with Web Form. I have web page and it contains a Crystal Report Viewer.  At run time i'm binding the report in Crystal Report Viewer. I'm using Form authentication in my project. The code is working fine in my local system. When i deploy the binaries in my local server, Crystal Report web page is loading properly. But when i do any action first time, it is throwing me to login page. If i provide the login details then the report page is working fine. 

I have added all the required setting in web.config file. Also copied the crystalreportviewers13 folder IIS folder. 

Thanks in advance for your kind help.

Adding ODBC Driver DSN with SQL Server 2008

$
0
0

I literally forgot how to create and add an ODBC Driver, DSN in order to connect Crystal Reports with SQL Server 2008. When I open DatabaseExpert>History, I see there is already a connection named "GE2_Reports". However when i go to Control Panel>Admin Tool>ODBC. I didn't find "GE2_Reports" anywhere. Can someone tell me the steps to create this?

 

contents of Web.config files to run runtime in Crystal report 13.0.2 in VS2010

$
0
0

What contents should be added to run crystal report at runtime while visual studio 2010 and crystal report 13.0.2

Plz

Crystal Report Error--please help

$
0
0

i m new to reporting in mvc 4 .i have aspx page which hold crystal report viewer. but when i load in to iframe report doesnt work and throws following exception..

Error in view

Error on view

what is this error about i cant understand the error.

Crystal Report Error in MVC APPLICATION

$
0
0

Hi ,

my  mvc web application have aspx page that shows the Crystal report,but when i run the application error shows like below.

this is my aspx markup code

<form id="form1" runat="server"><div><CR:CrystalReportViewer ID="CrystalReportViewer1" runat="server" AutoDataBind="True" GroupTreeImagesFolderUrl="" Height="50px" ReportSourceID="myreportsource" ToolbarImagesFolderUrl="" ToolPanelWidth="200px" Width="350px" /><CR:CrystalReportSource ID="myreportsource" runat="server"><Report FileName="Reports\Myreport.rpt"></Report></CR:CrystalReportSource></div></form>

and on the debugger  it doesnt show any error..but i inspect the object its with more errors like below

please help.

thank you

Viewing all 1507 articles
Browse latest View live