Crystal Reports :: Unable To Display Data After Postback?
Sep 17, 2010i am displaying some crystal reports on some pages but when the user wants to print it, the data disappears and all you see is the labels.
[Code]....
i am displaying some crystal reports on some pages but when the user wants to print it, the data disappears and all you see is the labels.
[Code]....
i am havin one join condition in back end and storing the result into dataset and from dataset i am unable to load data into crystal reports nothing is coming only empty report is getting displayed.
View 1 RepliesI have a problem that i'm sure will not be hard to fix for anyone who has been using CR for some time.
To start I have created a program in VB2008, that uses a MS Access data file, I can connect to it with no problem and can also add data and amend data, so all seems to work perfectly. I have published it and it once again runs perfectly on another/s machines.
I have now a requirement for a number of reports so have choosen CR for this purpose. I have connected the report to the database and that runs with no problems at all, that is untill I try to run it on another machine, it seems not to be able to find the database and comes up with a panel wanting me to log in with a password and Admin name.
I feel it's proberly a problem with the path of the database, I have tried so many time with diferent data files but with no success.
I have a problem with CR on server; I have reports that read connection string from web.config. On my development computer, everything is ok.
On server, report page opens normally, report template (I mean Print, Export etc.) is displayed but data is not shown there. Interesting point is data is loaded even though it is invisible, I understand that for reports more than 1 page, toolbar page buttons becomes enabled. Additionally, when I make a postback, by changing page number or changing zoom ratio, data becomes visible.
I have written this code for CrystalReportViewer but this not work
Private Sub Form2_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
Dim scon As String = "server=(local);database=my;User;Password=sa"
sqlcon = New SqlConnection(scon) [code]....
I have two reports but i want to use the same crystal report viewer to display both reports depending on an option selected. How can I achieve this?
CrystalReportViewer.setCrystalReportSource(CrystalReportSource3) or something like this i am just not sure about the code in c#
I am working with Parametrized Crystal Reports. There are only two page called Source.aspx and Target.aspx.
[code]...
Only One text box data shows Not 2nd One.Can any one help me with this by checking my code?
When i run the application locally it works fine but when i publish it n access from it it gives the error asEither the Crystal Reports registry key permissions are insufficient or the Crystal Reports runtime is not installed correctly.
View 2 RepliesI want to display a crystal report in my vb.net application. Suppose I have tables named student details, student marks, student address, etc... Nowif I want to display all these details (fields of all tables) in one crystal report (with page breaks if necessary) then how will I achieve it. I will be providing a combo box in my application that contains list of student names.How can I link this combo box with the cystal report to dynamically display report for different student on selected index change of combo box?
View 2 RepliesI have this asp.net website that generate records of Staff. As you type staff's Id no. in a texbox and click the 'Generate record' button, the page will be redirect to the another page of which the report has to be viewed.
In my first aspx.cs (session.aspx):
[Code]....
I have my report.rpt which I have already populated with designated fields like:
Staff_No, First_Name, Middle_Name, Last_Name
Also, I have already drag the CrystalReport Viewer from toolbox in my second page.
That's all what I have done. Any thing that I forgot to do, I do not know.
I got no errors. But when I run it in the browser, the report does not displayed in the browser and I got this "The parameter is incorrect" text at the end of my browser.
-- I'm using SQL server for my database, Visual Studio 2008 (C#) for the codes and everything..
How do i display arabic data in correct format?
The following information(fig -1) is displayed correctly in crystal reports viewer but when i export the report in to word or pdf, using the export feature in cr viewer, iam getting a differnt output (fig -2).
I am using crystal report and I am exporting data to PDF. In crystal report for a particular field I have HTML text as input. So I have set Text Interpretation as 'HTML Text' for that field in crystal report. But still in PDF few things are not working. That is, it is not showing bold, and bullets etc. Underline and color and font are working fine. HTML text is :
[Code]....
i Want to show data for single employee like this like this
Emp Id : xyz
Emp Name : abc
-------------------------------------------------------
Child name Date of birth education
abc 12/12/2000 o levels
I want to show the user defined Data table created at runtime in code behind C# and i want the load the datatable values in the crystal report ....
View 1 RepliesI write some code below in FrmPrescription.aspx.cs file :
protected void btnPrint_Click(object sender, EventArgs e)
{
try
{[code]....
this code is for local print,but if crystal report has more than 1 pages in that case it will print just one page!
I have store procedure: ALTER PROCEDURE dbo.GetAllInfoFromUsers(@name varchar(50)) AS select id, userName,password, role from tbl_users where userName=@name
Then I have Report.aspx page:
<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
<CR:CrystalReportViewer ID="CrystalReportViewer1" runat="server"
AutoDataBind="True" Height="1106px"
Width="876px" />
[Code]....
I have dataset (MyDataset) build out of store procedure. and I have StoreCrystalReport.rpt linked to MyDataset.
I am unable to see the filtered output in crystal report.
I have a crystal report using store procedure with DSN Name: 192.168.0.3. when I keep the connection to this server it's OK
But when i change the logon info and disconnect to the server to connect to My PC it appear the error :
"Unable to connect: Incorrect log on parameter"
[code]....
there is error appear when i use crystal report v13 with Visual Studio 2010 in server
Unable to load one or more of the requested types. Retrieve the LoaderExceptions property for more information.
what is the reason of this exception
Im working on Visual Studio 2008 to develop a web application in asp.net. if I add a crystal report file (.rpt) in my project, I see only hexadecimal code.
View 1 RepliesWhen i export crystal report (table formtatted) to excel (using in web app) and see the output than i dont get column and row lines i mean My data comes in table format but without column and row lines. Can anyone pl guide me on this? What should i do to get proper format like present in crystal report.
View 1 RepliesI have designed a report for printing cards and am able to print it on my local machine but when i upload on the server, i can preview the report but when i click print through a pdf its coming out blank.
View 1 RepliesIn our program, we are exporting crystal report (ExportToStream method) in html format and sendind via email body contents.
The email is showing correct format i.e same format as like format showing in crystal report viewer.
But when the user, farwarding the same email to any other person, the format is totally collapsed. All lines are moving up and text parts showing down with out proper alignment.
How to resolve this issue?
I'm new to Visual Studio.NET . I need to integrate the crystal reports into an ASP.NET application. I generated Crystal report with the help of crystal report XI developer edition(Stand alone version and NOT from the one which comes from visual studio).
How to integrate this report with the web application.
We have quite a few reports which were developed earlier in Crystal Reports 8.5. We are now planning to use these reports in our web application developed in VS 2008 (C#).
What dlls are needed for calling 8.5 in the application and how should they be added to the application while shipping it to the client?
They are also struggling to get the code running. Would also need the code to call the report with parameters.
I'm new to Crystal Reports and am just trying to add some simple reports to my web application. In the non-report pages I've been using SqlDataSources to retrieve data from the database and would like to do the same for the report pages. I saw a tutorial that indicated I could do this by explicitly setting the data source for the report in the Page_Load callback of the ASPX page as shown below:
[code]...
Is there a way to create "bound" fields w/o a database, since I'll be specify the database at runtime? Or is there a way to create the ".rpt" file w/ unbound fields, that get "bound" at runtime?Or is there a better way to do this altogether?