Report Document not show on Crystal Report Viewer in C#

My program is modified from VB.NET. Now I struck with Crystal Report that Crystal Report Viewer didn't show Report Document.
Printing code is composed of two forms. One assign parameters and objects need. Other is Crystal Report Viewer form, CrystalReportForm. Last one run report by parameter from the first.
When run this code that it didn't found any error but the problem is no report show on Crystal Report Viewer on second form. It just blank Crystal Report Viewer. There arm't any message response.
Here is my code.
// report caller form.
private void Print()
   CrystalReportForm rptForm = new CrystalReportForm();
   string[] strtbl;
  strtbl = new string[1];
   string[] strqry;
  strqry = new string[1];
   // prepare var
   string myqry;
   string myrpt;
   // Pass The Table That you used in the crystal Report
  strtbl[0] = "r_receipts";
   // Pass the Query
  myqry = "SELECT * FROM r_receipts";
  myrpt = "rptReceipts.rpt";
  strqry[0] = myqry;
   //Pass For Mdi True
  rptForm.MdiParent = this.ParentForm;
  rptForm.ViewReport(myrpt, strtbl, strqry, "");
   //Parameter Value It is Optional
  rptForm.Show();
// Crytal Report Viewer form.
public void ViewReport(string ReportName , string[] TableName, string[] QueryString , string Parameter = "")
   //Me.MdiParent = mainpage;
   if (TableName.Length  != QueryString.Length  )
   MessageBox.Show("Passed Variable Are Not Correct", "Message", MessageBoxButtons.OK, MessageBoxIcon.Information);
   return;
   CrystalDecisions.CrystalReports.Engine.ReportDocument rpt = new CrystalDecisions.CrystalReports.Engine.ReportDocument();
   CrystalDecisions.Windows.Forms.CrystalReportViewer crv  = new CrystalDecisions.Windows.Forms.CrystalReportViewer();
  crv.ActiveViewIndex = 0;
  crv.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
  crv.ToolPanelView = CrystalDecisions.Windows.Forms.ToolPanelViewType.None;
  crv.Dock = System.Windows.Forms.DockStyle.Fill;
  crv.Location = new System.Drawing.Point(0, 0);
  crv.Name = "CrystalReportViewer";
   MySqlDataAdapter at =new MySqlDataAdapter();
   DataSet ds = new DataSet();
   for (int i = 0; i < TableName.Length; i++)
  at = GetDataAdeptor(QueryString[i]);
  at.Fill(ds, TableName[i]);
   string rptPath  = "";
  rptPath = Application.StartupPath + "\\" + ReportName;
  rpt.Load(rptPath);
  rpt.SetDataSource(ds);
   if (Parameter != "")
  rpt.SetParameterValue(0, Parameter);
  crv.ReportSource = rpt;
  crv.Refresh();
   //CrystalReportViewer.DataBind();
   //Me.Panel1.Controls.Add(CrystalReportViewer);
   Panel panel1 = new Panel();
  panel1.Controls.Add(crv);

Hi Bhushan,
It's not yet fixed. My dataset (ds) can't bine to DataGridView as
DataGridView1.DataSource = ds
But it could do like this
DataGridView1.DataSource = ds.Tables[0];
When I bine to Crystal Report Viewer setdatasource
CrystalReportViewer1.setdatasource = ds.Tables[0];
It still not work, anyway you suggest let me in the right way. I very confuse the thing I fix to bine to DataGridView
Thank,
Chaiwat

Similar Messages

  • Narrative is not showing up in Layout View

    Narrative is not showing up in layout view when I'm creating a custom report. In Step 2, Creating Layout. I am hovering over add view, then down to advanced. Narrative is not showing up. How do I get this to work??? Static text and Legend is not showing either.
    Thank you for your help!!

    Hello,
    You need to have the privilege Analytics Scripting in step 4 for the narrative report to work. Only then would you HTML and javascript you apply on the Narrative report would show up.
    Please update if this works or not.
    Regards,
    Paul

  • Old All-Day events not showing in Calendar List View

    Reviewing events in my Calendar on the iPhone and have noticed that All Day Events that are older than one year do not show in the "List" view
    For example, I have all my holidays in a calendar called "Vacation". Month and Day view list holidays from earlier than today (09 Sept 2008) properly, however list view shows nothing. Timed events (e.g. day trips) in the same calendar show.
    Similarly no Birthdays appear in the past. I can see a case for Birthdays being omitted in the past, but not other events (e.g. wanting to know exactly when you went to that all day wedding last summer)

    I have this same exact problem. For me, past events that have a specific time associated with them show up in List view; however, past events that are all day events only show in List view once in a blue moon only. Apple support has been absolutely clueless about this issue. They just tell me it's weird and they have no explanation. It's unbelievably annoying though.

  • Why some times jdeveloper does not show a coreect design view ?

    Hi
    thank you for reading my post
    why jdeveloper does not show a correct design view of jsf pages sometimes?
    It does not shows labels and ... , just show tag names like : form , ... ?
    here is a picture for this :
    1-incorrect page:
    http://www.flickr.com/photos/59086726@N00/217556594/
    2-correct page :
    http://www.flickr.com/photos/59086726@N00/217556595/
    I just closed and open the IDE and page designer shows incorrect pages
    thanks

    Also try this...go to the project properties for the View project. Look at the JSF Libraries and remove the two JSF libraries and then re-add them....this sometimes helps.
    Regards
    Grant Ronald

  • Calendar events not showing up in list view

    Hi,
    some of my events are not showing up in list view. They are synced to the iphone. I can see them in day and month view.
    It seems to me that events created with ical and synced through MM are not showing up, but I'm not sure.
    Any idea?
    Wilfried.

    Yes I have also events from the holidays and the events I created.(Invitations and others) but where is this option for the NC? In general>notifications I can't find anything about showing events from different calendars there. And how is this subscription made because I had the holidays as soon as I input my account on this device. Maybe I included the holiday calendar but I don't remember. How is that made? And where to find these options?

  • Calendar items not showing ONLY in list view on iPhone

    Weird: My Calendar items are not showing in the list view only, on iPhone.
    They show when I search, they show in month, they show in Day views--just NOT in list view.
    Ideas?

    I just had the same problem (calendar information--for eight different calendars--OK on laptop and on Mobile me; on the iPhone only 3 of my calendars were displaying in "List" view, but all eight were appearing in "Day" view); first time I've encountered this problem (and immediately after installing the 11-February-2010 iPhone software update, so I'm suspicious that this might have been the cause).
    Solution described in posting immediately above seems to have worked. I.e.,:
    1. shut OFF MobileMe syncing for calendars on the iPhone (from Settings menu);
    2. wait for calendar entries to be removed;
    3. shut off iPhone, and wait 2 minutes;
    4. restart iPhone;
    5. turn ON MobileMe syncing for calendars on the iPhone (again, from Settings menu).
    All eight calendars now appear in List view (and still appear in Day view).

  • New tables & indexes created do not show up in dba_segments view

    Dear all,
    I have created 3 tables and some indexes, but these objects do not show up in dba_segments view. Is this a normal behaviour? Previously, with dictionary managed tablespace, I can specify the minimum extent to create, when the table/index is created. But I'm not sure how the locally managed tablespace work. Please do advice. Thank you very much in advance.
    I'm using Oracle 11g R2 (11.2.0.1.0) for Microsoft Windows (x64), running on Windows 7.
    For the purpose of reproducing this issue, I have created the tablespaces as follow:
    CREATE TABLESPACE CUST_DATA
    DATAFILE 'd:\app\asus\oradata\orcl11gr2\CUST_DATA01.DBF' SIZE 512K
    AUTOEXTEND ON NEXT 256K MAXSIZE 2000K
    EXTENT MANAGEMENT LOCAL UNIFORM SIZE 256K
    SEGMENT SPACE MANAGEMENT AUTO;
    CREATE TABLESPACE CUST_INDX
    DATAFILE 'd:\app\asus\oradata\orcl11gr2\CUST_INDX.DBF' SIZE 256K
    AUTOEXTEND ON NEXT 128K MAXSIZE 2000K
    EXTENT MANAGEMENT LOCAL UNIFORM SIZE 128K
    SEGMENT SPACE MANAGEMENT AUTO;
    CREATE TABLE CUSTOMER_MASTER (CUST_ID VARCHAR2 (10),
    CUST_NAME VARCHAR2 (30),
    EMAIL VARCHAR2 (30),
    DOB DATE,
    ADD_TYPE CHAR (2) CONSTRAINT CK_ADD_TYPE CHECK (ADD_TYPE IN ('B1','B2','H1','H2')),
    CRE_USER VARCHAR2 (5) DEFAULT USER,
    CRE_TIME TIMESTAMP (3) DEFAULT SYSTIMESTAMP,
    MOD_USER VARCHAR2 (5),
    MOD_TIME TIMESTAMP (3),
    CONSTRAINT PK_CUSTOMER_MASTER PRIMARY KEY (CUST_ID) USING INDEX TABLESPACE CUST_INDX)
    TABLESPACE CUST_DATA;
    SQL> SELECT TABLE_NAME, TABLESPACE_NAME
    2 FROM USER_TABLES
    3 WHERE TABLE_NAME LIKE 'CUST%';
    TABLE_NAME TABLESPACE_NAME
    CUSTOMER_MASTER CUST_DATA
    SQL> SELECT INDEX_NAME, TABLESPACE_NAME
    2 FROM USER_INDEXES
    3 WHERE TABLE_NAME LIKE '%CUST%';
    INDEX_NAME TABLESPACE_NAME
    PK_CUSTOMER_MASTER CUST_INDX
    SQL> SELECT SEGMENT_NAME, SEGMENT_TYPE, TABLESPACE_NAME, BYTES
    2 FROM USER_SEGMENTS;
    no rows selected

    Prior to 11g, when you created a table or whatever, you automatically allocated one extent.
    This is now no longer true and depends on a parameter I don't remember.
    dba_segments is a summary of dba_extents.
    Obviously, if there is no extent allocated, the table (view is defined with inner join) will not show up.
    You could qualify this is as a bug and submit a SR to Oracle. But then the performance impact may be huge.
    Sybrand Bakker
    Senior Oracle DBA

  • Accounting document not showing

    Dear Guru's
         The Issue is  After posting miro document one miro document will show in the bottom of the screen, my client place along with miro document accouning document also showing with in the brackets,  it is showing  like this Invoice doucment posted  51057123 was posted (accounting document 441234),  but here the problem is it is showing some user login ID's only recently one user took the miro transaction authorisation in his login ID accounting document not showing. 
    Pls suggest me,
    Thanks & Regards
    Chandra Sekhar Reddy.P
    998673663

    Hi..
    This is regarding authorization ....
    when u save the document in MIRO....later u run transaction /NSU53 & forward the activity to Basis guy....
    Repeat this till u are able to see the accounting documents generated...
    Regards,
    Satpal

  • Accounting document not showing in G/L -fbl3n

    Dear All,
    We are facing a problem n accounting document not showing in G/L FBL3N. when i saw in FB03 then it showing with all details including GL account. but when i go in FBL3N it was not showing. The document posted from payroll hra component. fb03 screen shot attached.
    Thanks,
    Mukesh

    Hi .
    Did you enter the correct parameter in FBl3n . Its looks liek this is related to Fiscal year 2013 and posted on 31.05.2013. .
    Can you please neter below parameters in FBl3n
    company code 1000
    GL account  42001021
    All item
    Posting date  31.05.2013 to 31.05.2013
    I am little bit confused  that your header of document not showing any Ledger group as well . can you please run FBL3n with above parameters and if it doesn't display  letus know .

  • Text in landscape orientation is not showing up in portrait view

    When I have added additional pages while working in landscape mode and added text to these pages, the text is not showing in portrait view. The only text that shows is the one that comes if I have used the default text box in the 2 column mode. Even using the default textbook I find is not looking good because extra spaces I am putting in for landscape mode aren't needed in the other view. Finally, the headers are also not showing up in portrait view. What to do?
    Other difficulties:
    1) hyperlinking text is defaulting to the hyperlink character style which is not letting me change the colour from red to blue.
    2) jpg images are not being recognized as figures. I would like to be able to bookmark the images, but it is not allowing me. I would also like to have them show in portrait mode, but they are not.
    Thank you!!!

    Sorry if I'm being daft, but what do you mean by linking the text fields? I have one text box in landscape view. When I go to portrait, it no longer exists. If I insert a text box in portrait view, it does not appear in landscape.
    I'm not sure if this is the same problem, but I'm hoping you might have some ideas.
    Thanks.

  • Material Document Not Shows the System

    Dear All
         In my client is Done the Migo W r t Po but that Materail document not shows the PO History and Mb51, but i check the PO in delivery is Complted in delidery status. plz i need your help.
    Thanks  And Regards
    Sonu

    Sorry ya, its not Coming, material document does not Exist. error is comeign.

  • Picture not showing in Crystal Report Viewer

    We have an asp.net web solution that shows Crystal Reports using the crystal report viewer and also exporting the reports to PDF, Word and Excel The reports are working fine, but when showing the reports in the crystal report viewer the picture in the report is not shown (see crystalviewer.png), but when exporting to PDF, Word, Excel and so on, this picture is shown (PDF.png).
    Can you check if this is an error in crystal report ? or is there some kinda security issue?
    The report is not attached to this document, because the file type is not allowed.
    We have even tried to install the latest version (13.0.9.1312) from your homepage.
    This version also has the problem. http://scn.sap.com/docs/DOC-7824 Exporting crystal report
    report.ExportToHttpResponse(CrystalDecisions.Shared.ExportFormatType.PortableDocFormat, Response, False, Page.Title)
    CrystalReportViewer1.ReportSource = report

    Please provide more info on:
    We use register to this page.
    How is that done? Or, what is it that you do in the registry to manage the CR viewer?
    - Ludek
    Senior Support Engineer AGS Product Support, Global Support Center Canada
    Follow us on Twitter

  • User-Defined Alphanumeric field not showing in Crystal Cross-Tab Reports

    Hi  All,
    We are facing the given below issue in crystal reports :
    In Crystal Cross-tab reports User defined fields with alphanumeric datatype are not displaying where as User defined Fields created with Numeric datatype are displayed and SAP fields for eg; Item name which are AlphaNumeric datatype are showing up.Can any body help us on this?
    Regards
      Uma

    Hi Uma,
    You may check these first:
    Re: Problem after upgrding to SAP B1 8,81 PL07
    Re: Crystal not displaying  UDF
    Re: UDF not visible in crystal report
    Thanks,
    Gordon

  • Hana view column descriptions are not showing in Crystal 2013

    Hello All,
    I have a hana calculation view which has the column name and label defined perfectly. When I use the HANA view in Crystal Report 2013, the column labels are not showing up in the field explorer even after enabling the show both name and description. Please help.

    hi
    is anyone has answer for this question.
    thanks...!!!!

  • Chart Ledgend Display Label not showing correctly in CR Viewer 2008

    Hello All
    I have a chart where I have edited the displayed Legend Name for 3 chart elements using Edit Axis Label. The three new labels display correctly in CR Designer, when I run the report in CR Viewer I see 2 ledgend labels with the Edited Label and the thrid displays Original Label.
    Has anyone encounted this before and knows what the solution is or is this a Bug in the software, which requires an OSS?
    Thanks
    Phillip

    Hi Phillip,
    I remember some Bugs related to chart labels fixed in Service Pack 3.
    What service pack level you are?
    If you have the same problems with Crystal Reports Viewer on SP3 level then we need more details about the issue to replicate and escalate it.
    If you do not have SP3 yet, then please describe the steps, so we can test it in SP3.   
    Vitaly

Maybe you are looking for

  • The "new" hotmail no longer works with safari, but works with firefox. Hmm.

    The "new" hotmail no longer works with safari, but works with firefox. Hmm. i find this very convenient being a microsoft product. anybody else wonder why this new version happens to not be safari compatible? does anybody know if it works on the PC v

  • Question Regarding Cursor

    I need to create a Cursor where in the SELECT clause I am using Replace function. The replace value is coming from a variable. declare cursor csr is select replace(col1,'{DATE}',v_date) from tab1; begin v_date := fun_get_date(); for c in csr loop end

  • Overlapping Objects

    All, I am working on code which differentiates bright objects in a camera's field of view.  Programming in LabVIEW, I have so far been able to detect and enumerate separate objects using LabVIEW's built in function.  My next challenge will be to diff

  • JavaScript / DHTML Tabs - APEX 2.2

    Is there a built-in way in APEX to do this : http://www.barelyfitz.com/projects/tabber/ Or do I just have to do it the old-fashioned way by writing my own scripts? Thanks!

  • Scripting Multi Language

    Hello. I've been authoring DVDs for about half a year, and I've got my head around the basics. Im embarking on my first major DVD project. It has 4 language options, each language has audio and subtitle content and the menus also will need to be in t