Add columns in DataGridView And display it in the report Viewer at RunTime

Hello Everyone , this is my first participation here, I am civil Engineer and I have a Question 
I created dataGridViewer connected to a database , when I change the records and reopen the application the changed are saved However , I let the user to add/delete columns during the runtime (by using sql command) ,even though those columns are saved and
appear at datagridviewer 
The reported Viewer (which i designed using wizard) is not showing these columns
what should i do , I have been trying to solve this for a week ! could it be a year ? !  
I am using c# visual studio 2012 

Hi Azzam,
According to your description, you want to display changed columns in ReportViewer control. Right?
In Reporting Services, when we retrieve the data, the query or stored procedure will only execute one time. So during runtime, the data in a report will not change. So we can't display the changed columns in report during runtime. However, we can set the
Auto-refresh properties for report so that the report can refresh every X seconds. This is the most effective workaround. Please refer to links below:
SSRS report auto refresh
Automatically refreshing your SQL Reporting Services reports with the AutoRefresh element
If you have any question, please feel free to ask.
Best Regards,
Simon Hou

Similar Messages

  • How can I get the date and time and display it on the report main page?

    Gurus,
    How can I get the date and time and display it on the report main page?
    Thanks!

    Hello,
    You can create a Formula Colum returning a date :
    function CF_1Formula return Date is
    begin
    RETURN(SYSDATE);
    end;
    Put a Field in the Layout having this formula column as source .
    Regards

  • Dynamically fetch data from database and display it in the report

    Hi,
    We have a requirement in developing a report which needs us to dynamically fetch data from the database and display it in the report.
    We have a column called WORKER in the report.
    For each worker there is a measure(PSA) associated with it.
    In the report we have to display both the WORKER and the PSA column.
    What we want is, when we display the list of the workers, the corresponding workerid_id of the worker will be passed and the value of his PSA will be fetched from the database and displayed in the report.
    Or anything similar to this.
    We also have drill applied on this WORKER column. So after any drill up or drill down also the value for PSA should change.
    Is there any way of doing this?
    Please help if possible.
    Thanks,

    hi,
    data : count type i value 0.
    data : Begin of itab occurs 0 ,
    plan_version like hrhap-plan_version,
    APPRAISAL_ID like hrhap-APPRAISAL_ID,
    AP_START_DATE like hrhap-AP_START_DATE,
    AP_END_DATE like hrhap-AP_END_DATE,
    AP_STATUS like hrhap-AP_STATUS,
    AP_STATUS_SUB like hrhap-AP_STATUS_SUB,
    OBJ_DATE_SET like hrhap-OBJ_DATE_SET,
    REVIEW_DATE_SET like hrhap-REVIEW_DATE_SET,
    AP_DATE_SET like hrhap-AP_DATE_SET,
    AP_DATE_EARLIEST like hrhap-AP_DATE_EARLIEST,
    AP_DATE_LATEST like hrhap-AP_DATE_LATEST,
    CHANGE_DATE like hrhap-CHANGE_DATE,
    CHANGE_TIME like hrhap-CHANGE_TIME,
    CHANGE_USER like hrhap-CHANGE_USER,
    end of itab.
    <b>select * from hrhap into corresponding fields of table itab.</b>
    loop at itab.
    write :/ itab-plan_version under 'plan_version',
    itab-appraisal_id under 'Appraisal Id',
    itab-AP_START_DATE under 'Start Date',
    itab-AP_END_DATE under 'End date',
    itab-AP_STATUS under 'Status',
    itab-AP_STATUS_SUB under 'Substatus',
    itab-OBJ_DATE_SET under 'Objective setting date',
    itab-REVIEW_DATE_SET under 'Review date set',
    itab-AP_DATE_SET under 'appraisal date',
    itab-AP_DATE_EARLIEST under 'Earliest appraisal date',
    itab-AP_DATE_LATEST under 'Latest Appraisal date',
    itab-CHANGE_DATE under 'Change Date',
    itab-CHANGE_TIME under 'change time',
    itab-CHANGE_user under 'change user'.
    count = count + 1.
    endloop.
    write : 'No of records' ,count.
    rgds
    anver
    if hlped mark points.

  • How can you add your own print and export buttons to the CR viewer toolbar?

    I posted a previous question that was asking how to get around the Information Bar in IE7 when you export and print.  Unfortunately the CR viewer file download code gets blocked by IE7 because the buttons don't directly download the file.  However, I have been able to get a regular button that calls the following code and streams the file to the client and IE7 does not block it. 
    Sub PrintPDF(sender As Object, e As System.EventArgs)
         Dim crReportDocument as ReportDocument
         Dim crExportOptions as ExportOptions
         Dim crDiskFileDestinationOptions as DiskFileDestinationOptions
         Dim Fname as string
         CrReportDocument = New ReportDocument()
         CrReportDocument.Load(Server.MapPath("estactionlist.rpt"))
         Fname = Server.MapPath("./") & Session.SessionID.ToString & ".pdf"
         CrDiskFileDestinationOptions = New DiskFileDestinationOptions()
         CrDiskFileDestinationOptions.DiskFileName = FName
         CrExportOptions = crReportDocument.ExportOptions
         With crExportOptions
              .DestinationOptions = CrDiskFileDestinationOptions
              .ExportDestinationType = ExportDestinationType.DiskFile
              .ExportFormatType = ExportFormatType.PortableDocFormat
         End With
         CrReportDocument.Export()
         Response.ClearContent()
         Response.ClearHeaders()
                    Response.AddHeader("content-disposition", "attachment;filename=test.pdf")
                    Response.ContentType = "application/pdf"
                    Response.Charset = ""
                    Response.WriteFile(Fname)
                    Response.Flush()
         Response.Close()
         System.IO.File.Delete(Fname)
    End Sub
    So here are my questions?
    1. Is it possible to add a custom print control/icon to the CR viewer toolbar?
    2. If one is not possible, then is it possible to override the CR viewer print and export buttons with your own subroutines like the one above?
    I just want my page to look nice and hate to have print and export buttons outside of my CR viewer. 
    Thanks,
    Kevin

    It might be possible to replace the buttons in a windows app since you can retrieve the toolbar as a toolbar object in the winform viewer  ( ToolStrip toolBar = (ToolStrip) crystalReportViewer1.Controls[3]; )  however with a web app, it's a lot more difficult.
    The problem is that that you need to parse the Request string to try and figure out if the print / export button was clicked.  The code below makes the print button disappear if you click it, so you should be able to modify it to call your custom printing / exporting code instead  (You have to do this check in a postback)
            Dim I As Integer = 0
            If Request.Form.AllKeys.Length > 0 Then
                For I = 0 To Request.Form.AllKeys.Length - 1
                    Response.Write(Request.Form.Keys(I).ToString & "<BR>")
                    If Request.Form.Keys(I).ToString = "CrystalReportViewer2:_ctl2:_ctl2.x" Then
                        CrystalReportViewer2.HasPrintButton = False
                    End If
                Next
           End If
    Shawn

  • Export and Print icons missing from report viewer

    I'm currently embedding crystal within a wicket application in which I'm making use of the getHtmlContent() method to retrieve the report's HTML.  For whatever reason, I'm not able to get either the export or print icons (on the top left side of the viewer).  Is this because I'm using the getHtmlContent() method or do I have something misconfigured somewhere?  Setting the setHasExportButton(true) and setHasPrintButton(true) on the report viewer object has no effect. 
    If I run the same report using the generated JSP outside of my application (within tomcat), I see the export/print buttons.  I notice the JSP makes use of the processHttpRequest() method.  Any help will be greatly appreciated.
    Thanks!
    Louis

    Hi Louis
    - The getHtmlContent() method handles the user's request to generate the HTML for the report and returns the HTML as a String.
    Note: Either the getHtmlContent method or the processHttpRequest method can be used to handle the user's request to generate the HTML for the report, depending on how you write your JSP. If the viewer's content is displayed more than once, then the getHtmlContent method is more efficient, because the request is processed once and the resulting HTML string can be used multiple times. In this case, you must set the content type of the HTML, as recommended in the table. Additionally, using getHtmlContent sets setOwnPage to false and disables exporting and printing.
    - The setOwnPage(true) and  processHttpRequest() method should be used if you want the export and print button to appear in the report viewed through Crystal Report Viewer.
    Following is the snippet of code which shows you how to use these 2 methods.
    //Get the IReportSource object from sesion and pass it to the viewer
         IReportSource reportSource = (IReportSource)session.getAttribute("reportSource");
    Create the viewer and render the report -
         //create the CrystalReportViewer object
         CrystalReportViewer oCrystalReportViewer = new CrystalReportViewer();
         //set the reportsource property of the viewer
         oCrystalReportViewer.setReportSource(reportSource);
         //set viewer attributes
         oCrystalReportViewer.setOwnPage(true);
         oCrystalReportViewer.setOwnForm(true);
         //set the CrystalReportViewer print mode
         //oCrystalReportViewer.setPrintMode(CrPrintMode.ACTIVEX);
         oCrystalReportViewer.setPrintMode(CrPrintMode.PDF);
         //process the report
         oCrystalReportViewer.processHttpRequest(request, response, getServletConfig().getServletContext(), null);
    Hope this helps you .
    Thanks
    Soni

  • How to place an image in database and how to retrieve and display it in the front end

    how to place an image in database and how to retrieve and display it in the front end
    and to place an image in database and retrieve the image from database using xml
    please,help me out.

    Create a table with a Long RAW Datatype column for storing the Image Column Data.
    Create the form based on the table , which by defaults the column with LONG RAW atatype to a Image Item.
    You can use Forms Built in function READ_IMAGE_FILE to read a Image file stored on the file system in to the image item.
    A save on the form saves the image in the Image item in the long raw column.

  • Need to Add field EKET-EINDT and EKET-SLFDT to ME2M Report output in ALV

    Hi All,
    I need to add fields EKET-EINDT and EKET-SLFDT to the output of program ME2M Transaction.
    I have appended the structure MEREP_OUTTAB_PURCHDOC with these fields. and it is coming in the ALV output field catalog.
    I need these fields output only for ALV display only.
    Please let me know which enhancement i need to write code to enhance the output with these filed values added to the ALV internal table
    Thanks in Advance
    Arun

    Hi All,
    I am able to get the field EINDT and SLFDT into the structure using Append structure and is also getting displayed in the output in ALV.
    But i need to know how to add code for filling these fields and passing into ALV. I need to know the Enhancement spot.
    Please let me know how to achieve this scenario
    Thanks
    Arun

  • In Pages 5.2.2: How do you go from 1 column to 2 and keep them on the same page?

    In Pages 5.2.2: How do you go from 1 column to 2 and keep them on the same page?

    Sorry, I tried to say your answer solved my question, but I guess I told it that my response to you solved it. Now that I liked it, the solved option doesn't appear.

  • Hi i am new to labview. i want to extract data from a text file and display it on the front panel. how do i proceed??

    Hi i am new to labview
    I want to extract data from a text file and display it on the front panel.
    How do i proceed??
    I have attached a file for your brief idea...
    Attachments:
    extract.jpg ‏3797 KB

    RoopeshV wrote:
    Hi,
    The below code shows how to read from txt file and display in the perticular fields.
    Why have you used waveform?
    Regards,
    Roopesh
    There are so many things wrong with this VI, I'm not even sure where to start.
    Hard-coding paths that point to your user folder on the block diagram. What if somebody else tries to run it? They'll get an error. What if somebody tries to run this on Windows 7? They'll get an error. What if somebody tries to run this on a Mac or Linux? They'll get an error.
    Not using Read From Spreadsheet File.
    Use of local variables to populate an array.
    Cannot insert values into an empty array.
    What if there's a line missing from the text file? Now your data will not line up. Your case structure does handle this.
    Also, how does this answer the poster's question?

  • Can I obtain the date of the exe and display it on the fropnt panel?

    Hello,
        Is there a way that a Labview program can display the date of the exe and display it on the front panel? I am aware of the version info on the application builder, but I did not see a way to get the date when the exe was created.
    Regards,
    Kaspar

    Hi
    You could use File/Directory Info function in your code like this
    cheers
    David
    Message Edited by David Crawford on 02-24-2010 11:11 PM
    Message Edited by David Crawford on 02-24-2010 11:12 PM
    Attachments:
    App Last Mod.png ‏17 KB

  • I want to print iCal with Mondays in the left hand side column. My calendar prints with Tuesday in the left hand column even though it displays Mondays in the left hand column when in normal use.

    I want to print iCal with Mondays in the left hand side column. My calendar prints with Tuesday in the left hand column even though it displays Mondays in the left hand column when in normal use.

    Thank you for your advice, it works.  I have struggled for hours to find the solution I am very grateful.

  • I´ve made four Columns with text and an Image over the middle of two columns. How do I put a text u

    I´ve made four Columns with text and an Image over the middle of two columns. How do I put a text under the Image that spans over the Columns?

    Did you mean that?
    or
    Did you mean that?
    Let me know.

  • HP Photosmart A516 keeps trying to power up and displays 07564DD6 on the screen

    My HP Photosmart A 516 keeps trying to power up and displays #07564DD6 on the screen.

    sunny_67 wrote:
    When I press the on switch slider, the notebook shows lights then CPU fan begins to spin.  It immediately slows down then stops.  Power light stays on, but nothing else happens.  No startup screen, nothing.  To do it again, power cable must be disconnected then reconnected.  Does anybody has any idea? Please help.
    Once you get it to turn on, I would check to see if there is a BIOS update available for your machine.

  • Can I add or edit Keywords and captions from within the Map module?

    I frequently find a need to edit or add to the caption while reviewing  and geotagging photos in the Map module.  Constantly toggling between modules is inconvenient.  Is there a way to add/edit captions or keywords while working in the Map module  (or view the map module while working in the Library?
    Thanks!
    Steve

    thank you
          From: Modesto Vega <[email protected]>
    To: Steve Murray <[email protected]>
    Sent: Thursday, January 29, 2015 3:27 PM
    Subject:  Can I add or edit Keywords and captions from within the Map module?
    Can I add or edit Keywords and captions from within the Map module?
    created by Modesto Vega in Photoshop Lightroom - View the full discussionYou should be able to change the title, the caption, the sublocation, the city, the state/province, the country, the ISO country code, the altitude, the direction, and a few other fields. However, you cannot add keywords. It would be real nice if Adobe could add this to the Map module. If the reply above answers your question, please take a moment to mark this answer as correct by visiting: https://forums.adobe.com/message/7145077#7145077 and clicking ‘Correct’ below the answer Replies to this message go to everyone subscribed to this thread, not directly to the person who posted the message. To post a reply, either reply to this email or visit the message page: Please note that the Adobe Forums do not accept email attachments. If you want to embed an image in your message please visit the thread in the forum and click the camera icon: https://forums.adobe.com/message/7145077#7145077 To unsubscribe from this thread, please visit the message page at , click "Following" at the top right, & "Stop Following"  Start a new discussion in Photoshop Lightroom by email or at Adobe Community For more information about maintaining your forum email notifications please go to https://forums.adobe.com/thread/1516624.

  • From and To Date in the report

    Hello friends,
                   Can we display the From Date and TO Date in the report heading (not in the column) which is entered by the User.

    hi,
        Hey u use Replacement path variable for this.
        in the new selection which u have created while writing the description/name of it use the replacement patgh variable and u will get the user entered dfates.
    eg.
    purchases &Replacement_path_variable&
    then the column heading would be
    purchases Mar 2008.
    regards,
    VJ

Maybe you are looking for

  • Converting RGB PDF to CMYK PDF

    I'm looking for a way to convert RGB PDF's to CMYK PDF for printing purposes. The RGB PDF is created by an online Flash application and I'm hoping to convert the file using Acrobat via Command line. I have tried a couple of programs e.g. PStill and P

  • When run report from form(6i) on the web,error FRM-921000

    While I was trying to run report from form (6i)on the web,it will give me this error message FRM-921000 and hang. But when I try to call form using form,I do not have the problem. May I know ehat is the cause? Anybody encounter this before? Thanks nu

  • How can I update to firefox 3.6.16 when I was advised automatic update failed?

    I received a notice that firefox update 3.6.16 was ready to be installed and I clicked "install". Then I was advised the update failed. How can I get this update installed now?

  • How to determine Component materials for PO line item Materials.

    Hello friends, I woluld like to know the table name for getting the component Materials of a Purchase Order line item material. There is a table called RESB, which is containing the component materials for the PO line item materials. But this table i

  • Error code: ssl_error_rx_record_too_long

    I can't seem to get any new email from TB. I'm on the latest version 31.4.0. I am able to get my Charter email on my phone and direct off the web. I have double checked the imap.charter.net:143 and smtp.charter.net:25. I did change my password yester