On SSRS Export or Print, Select the first 9 columns out of 15 columns

Hello Every1,
My Greetings for the day!!!
I am Hiren Parikh from India.
I am developing a SSRS report (Tablix) which has 15 columns. While developing the report, I have come a crossed a strange requirement.
When the reports gets loaded in SSRS Preview or in Sharepoint, it should display all the 15 columns.
However, if the user exports the same report or print the report in that case only the first 9 (columns 1 to 9)should come and the remaining 6 (columns 10 to 15) should not come in the print or export.
I request you all to suggest me.
Thanks in advance.
Regards,
Hiren Parikh.
Hiren Parikh

Hi Hiren Parikh,
Per my understanding that you want to hide the remaining 6 columns when print or export the report but display all the column when view in Sharepoint, right?
I have tested on my local environment and if your SQL Server version is 2008 R2 or higher, you can take reference as the method below:
This method is use the expression to show/hide the 6 columns in the report, when you print/ export the report it will hide, only when you preview in the designer or view the report in the server you can see all the columns
Details information below for your reference:
Check the entire column and right click the column to select the "Column Visibility"
Check the "Visibility" on the left pane and check the "Show or hide base on an Expression"
Expression:
=iif(Globals!RenderFormat.IsInteractive,False,True)
Repeat the step1 and step2 to hide the other columns.
If your version is SSRS 2008 and older, you can create a Parameter name 'Display or Print' and can give 2 values one Display and another Print.
Create two tablix: one have 15 columns (Tablix1)and another 9 columns (Tablix2)and when choose "Display" show the tablix1 and hide the tablix2 and when select the "Print" hide the tablix1 and show the tablix2.
If you have any problem, please feel free to ask.
Regards
Vicky Liu
Vicky Liu
TechNet Community Support

Similar Messages

  • How do you print only the first ten rows in a table?

    Hi everyone:
    I am trying to print only the first ten records by using <?for-each: <group name>?> and <?end for-each?>. Is there any stop tag that I could use to stop printing after the printing the first ten records without modify the XML data file? I am using XMLP Desktop 5.6.2. Thanks for your help!

    You are right kkretser. However, if your report have 2 or more layouts pages. You may want to output the necessary records to each page like the first 10 records to the first page the next the to the second page. Like you said I figure out now that you can use <?if:position()<10?> print out the rows and then on the second page layout, you can do <?if:position()>=10?>. Thanks to all of your replys, guys!

  • How do I print only the first page of multiple PDF documents?

    I have about 1,500 PDF files (scientific papers) that I need to print only the first page of... Any suggestions on how to do this as a single job or as a few jobs? The files are organized in a bunch of different folders, so if there was some way to do this folder by folder, that would be ok too. Thanks!

    Make sure that in System Preferences Printing & Fax pane you set the default printer to the one you want to use, then put all of these PDF files into their own folder, then open terminal and type the following (without hitting return afterward):
    lpr -o page-ranges="1-1"
    Then drag one of the PDF files into the terminal window (it will add it's path to the end of your command) and replace the file name with *.pdf, so it will look like this:
    lpr -o page-ranges="1-1" /Users/todd/Documents/My\ Folder/*.pdf
    Then hit return.

  • Selecting the first file from a group of opened files in Photoshop

    Hi, I've been digitizing microfiche with 200 or so pages photographed onto one image file, laid out in a grid pattern. I've been using actions in Photoshop to cut out one page, create a new file in Photoshop from that page, then return to the first, master file and do it again with the next page in the series. So when it is complete I have each individual page as an individual image file which I then save with a batch process. I've been doing this for a while and have managed to make it work but I always run into the problem, when creating this action again, of getting Photoshop to select that first master file each time instead of selecting just the previous file. I know I can get it to select the previous file, or the previous file -1, -2, -3, etc. I've somehow been able to get this to work in the past by creating an action that selects a large enough group back, like previous file -19 or something, and through some bug or sheer luck it has worked and will always select that first file. But it doesn't always work and it always takes some frustration to luck into it when it does. Now I can't seem to get it to work at all. Is there a straightforward way I can simply tell it to select the first file everytime? If not, does anyone know how or why the method I used previously sometimes works and sometimes doesn't, and how I can make it work again? I'm using PS CS5 in Windows 7. Thanks!

    Just put this code on a file and put that 'namedfile.jsx' inside the scripts folder on photoshop.
    Open or re-open photoshop to load the script and create an action linked to a shortcut selected by you and save this script going to File>Scripts>namedfile.jsx
    It is just to press the shortcut key and the active image go back to the image opened before.
    When it is the first one it runs the script the same but it remains there.
    Here is the script:
    // Go back to the previous opened image
    #target photoshop
    // Go back to the previous opened image (not the previous viewed) . If it is the first, it remain there.
    if(documents.length>0) {
        var thisIndexImage = getActiveDocumentIndex();
        var theDocs = app.documents;
        if ( thisIndexImage != 0 ) {
            var flatAnterior = theDocs[thisIndexImage - 1];
            } else {
            var flatAnterior = theDocs[0];
        app.activeDocument = flatAnterior;
    } else {
        alert ("You must have opened images to run this script.")
    // Get the active document number - the number of opening order
    function getActiveDocumentIndex(){
         var ref = new ActionReference();
         ref.putEnumerated( charIDToTypeID("Dcmn"), charIDToTypeID("Ordn"), charIDToTypeID("Trgt") );
         return desc = executeActionGet(ref).getInteger(stringIDToTypeID('itemIndex'))-1;
    If you want to go directly to the first of all the images (in opening order) it is simpler:
    Just create this script:
    var first = app.documents[0];
    app.activeDocument = flatAnterior;

  • HT3669 Latest Mac OS Update Driver for Canon 9500 Pro causes text lines all to be printed over the first letter of the line?

    Anyone know how I can 'fix' the Mac OS printer driver for the Canon 9500 Pro - all my text lines end up with the whole line being printed over the first character of the line of text when printing PDFs. It has ruined a lot of work.

    I'd try this:
    Delete the current printer (reset the print system) Mac OS X: How to reset the printing system
    Delete all other Canon software and utilities from your computer.
    Do a factory reset on your printer
    Use Software Update to download the driver from Apple.
    Don't reinstall any other Canon Utilities.
    Make sure you don't have something mechanical stopping the paper from advancing.
    If the problem is really the driver, then you could look in Gutenprint for a different driver. Gutenprint for Mac OS X

  • Summary field printing on the first line when it supposed to prin last page

    i have created manual report. in the end of the report i have summay columns. wheni run in oracle reports it perfectly shows the grand totle. when i generate to file (PDF) thegrand total print on the first line. can some one tell me wht is it printig on the first line when it supposed to print on the last page. i tried print object on Last Page. it is still same.

    You may have hit this side effect of page protect (all copied from the Help):
    Description The Page Protect property indicates whether to try to keep the entire object and its contents on the same logical page. Setting Page Protect to Yes means that if the contents of the object cannot fit on the current logical page, the object and all of its contents will be moved to the next logical page.
    Note: Using Page Protect may cause objects below the page protected object(s) to appear above the page protected object(s).
    Solution:
    If Page Protect causes an object to be moved to the next logical page when formatting, an object alongside the page protected object may or may not be moved as well. If the object alongside the page protected object is not anchored (implicitly or explicitly) to the page protected object, and that object can fit in the space where the page protected object could not fit, the object will print on that logical page. Otherwise, the object will be moved along with the page protected object to the next logical page.
    (To say it simply: anchor the summary field explicitly).

  • Selecting The First Row Of h:dataTable after getting new DataModel f

    Hi Friends
    If any one knows how to select first row of a dataTable on change of a DataModel it is representing please give the reply

    I haven't understood the answer of UlrichCech
    I am not using IRDA for my development purpose.
    and abt your reply ..
    I have already tried tht way but the problem is that
    whenever I selects different row page gets postback and selects
    the first row again and there is no way to trap posback event in JSF
    like ASP.NET
    I think my answer is some where related to DataModelListener..

  • Windows Explorer - How to select the first item once we open the explorer?

    Hi,
    In Windows Explorer - How to select the first item once we open the explorer using keyboard shortcut. I typically use downward arrow, it goes to the 2nd item in the list, then I again have to use upward arrow to go up.
    Is there a shortcut to select the first item in the list using keyboard? This is not specific to Windows 7, it has been the behavior even in previous Windows OS versions.
    Thanks,
    Mallik

    Opening a Microsoft Ticket is probably your best option. Unfortunately the change will not happen immediately and it will require multiple users to send in a ticket. I hope this ends up being resolved though.
    Good luck Mallik
    Also, don't forget to mark the post as answered so that it does not show up as unanswered to help others who search the forums.
    Agreed, MS wont change it easily. :)
    Arnav Sharma | http://arnavsharma.net/ Please remember to click “Mark as Answer” on the post that helps you, and to click “Unmark as Answer” if a marked post does not actually answer your question. This can be beneficial to other community members reading
    the thread.

  • How to select the first record?

    Hi,
    Could anyone tell me how to select the first record of every
    group?
    ex, I want to find out every customer their first purcaseDate.
    CustomerID PurcaseDate Region
    A00000001 2001/01/01 AA
    A00000001 2001/02/02 AA
    A00000002 2001/03/01 AC
    A00000002 2001/05/07 AC
    A00000003 2001/03/05 DD
    result:
    A00000001 2001/01/01 AA
    A00000002 2001/03/01 AC
    A00000003 2001/03/05 DD
    Thanks

    Vincent,
    You could do it as Carl suggested, with a couple of
    corrections.  You would need to include the CustomNo column in
    the order by clause of your cursor.  You would also need to add
    a where clause to your update statement, otherwise everywhere
    Region in the table would be updated with the same value of the
    last CustomNo in the cursor, regardless of the CustomNo in the
    table.  See corrected code below:
    DECLARE
      CURSOR     cust
      IS
      SELECT     DISTINCT CustomNo, Region, Purchase_Date
      FROM       my_table
      ORDER BY   CustomNo, Purchase_Date, Region;
      c_customer VARCHAR2 (9) := '...';
      c_region   VARCHAR2 (2) := '..';
      cntr       NUMBER := 0;
    BEGIN
      FOR x IN cust
      LOOP
        IF x.CustomNo != c_customer
        THEN
          c_customer := x.CustomNo;
          c_region := x.Region;
        ELSE
          UPDATE my_table
          SET    Region = c_region
          WHERE  CustomNo = c_customer;
          cntr := cntr + 1;
          IF cntr = 25
          THEN
            COMMIT;
            cntr := 0;
          END IF;
        END IF;
      END LOOP;
      COMMIT;
    EXCEPTION
      WHEN OTHERS THEN 
        NULL;
    END;
    Another option is that you could just use one update statement,
    like this:
    UPDATE my_table a
    SET    Region =
           (SELECT DISTINCT Region
            FROM   my_table b
            WHERE  (CustomNo, Purchase_Date) IN
                   (SELECT   CustomNo, MIN (Purchase_Date)
                    FROM     my_table
                    GROUP BY CustomNo)
            AND    a.CustomNo = b.CustomNo)
    Barbara

  • TS3274 When viewing pick lists from different web sites my iPad2 selects the first choice on the list and loads it without allowing me to pick my option; is there a way to change this default?

    When viewing pick lists from different web sites my iPad 2 (safari) selects the first choice on the list and loads it without allowing me to pick my option; is there a way to change this default?

    With your playhead over the clip in the timeline and that V track's 'track selector' as the only one active...hit the 'f' key.
    This will load the original clip into the viewer at the matching point of the frame in the timeline.
    K

  • The sheet I am working on has lost the ability for me to scroll to the first few columns. I can't see the columns but I can cut and paste them so I know they are still there. Has this happened to others

    The sheet I am working on has lost the ability for me to scroll to the first few columns. I can't see the columns A & B but if I cut and paste the table to a new sheet, the columns I am missing will travel to the new sheet.  I have charts and other stuff related the the original table so I need to figure out why I can only see from column C  forward.  I tried to "UNHIDE" the columns but the function doesn't seem to recognise that there are columns missing. Has this happened to others and how did you fix it?

    I've seen it happen before, or at least it sounds something like what I've seen before. The table somehow gets into the margins of the page and the app doesn't know how to deal with it. Go into Print View and try moving the table away from the left side ofthe page. You might have to change content size or resize the table to get it to correct (then put you can put them back the way you like).

  • I'm trying to open a 900kb Word doc (240pages) in Pages but get this error message:  Import Warning - A table was too big. Only the first 40 columns and 1,000 rows were imported.

    I'm trying to open a 900kb Word doc (240pages) in Pages but get this error message:  Import Warning - A table was too big. Only the first 40 columns and 1,000 rows were imported.

    Julian,
    Pages simply won't support a table with that many rows. If you need that many, you must use another application.
    Perhaps the originator could use a tabbed list rather than a table. That's the only way you will be able to contain a list that long in Pages. You can do the conversion yourself if you open the Word document in LibreOffice, Copy the Table, Paste the Table into Numbers, Export the Numbers doc to CSV, and import to Pages. In Pages Find and Replace the Commas with Tabs.
    There are probably other ways, but that's what comes to mind here.
    Jerry

  • When I convert my file to excel it cuts off the first two columns, is there a way to fix that??

    When I convert my file to excel it cuts off the first two columns, is there a way to fix that??

    Hey Diann,
    Please let me know whether you are using Adobe Reader or signed up at "https://cloud.acrobat.com/"
    If you are using Adobe Reader, then try converting the file online and vice-versa.
    Let me know.
    Regards,
    Anubha

  • Validating the first two columns of a excel file when importing?

    Hi everyone,
    I have an excel file in the presentation server which has to be uploaded into prog.First the user adds a additonal column in the excel file.
    For example the excel file is intially in this way,
    col1 col2 col3 col4 col5
    Now the user adds one more column 'colx' in the excel sheet and he will upload it into the prog.Before uploading programatically we have to validate that the first two columns of the excel file should be col1 colx(the newly added one).How can I do it?
    Any suggestions please?
    Thank you.

    Hi gopi,
    Thanks for the reply.
    I have one more problem.Now in the excel file I may have only 5 columns in the future it may have more than that.So the internal table which will hold the uploaded values from excel file should be dynamic.I can't declare the internal table with 5 or 6 columns like that.If the user adds some columns in the excel file and upload it,the internal table should hold these columns also.
    i hope u understood my requirement.Can u give me any ideas.If u have any sample code for this kind of requirement.
    Thank you.

  • I am unable to print only the first few lines of an e-mail. Also, it will then print in a very small type and will also include extraneous information on the screen that are not part of the e-mail. Is there anything I can do about this annoying problem?

    I can only print the first few lines of an e-mail, even when it is on "Full View" on my screen. Moreover, it prints with very small print that is hard to read and also contains additional material on the screen that is not part of the e-mail.
    == This happened ==
    Every time Firefox opened
    == Since the first day I started using Firefox

    I talked to Adobe Support tonight and found this issue to be a known problem with some of the Adobe Cloud products when using older hardware, in this case the C782.
    So, we found a workaround. Unfortunately the work around isn’t efficient and adds more steps to their normal printing routine
    Open InDesign and create, modify delete the card
    Select FileàExport
    A window will appear. Pick the location you wish to save the file
    Once the File is saved another window will appear
    “EXPORT Adobe PDF”
    An Export to Adobe PDF window will appear. Accept all defaults. MAKE CERTAIN “VIEW PDF
    After EXPORTING” is CHECKED
    Select Export
    Once EXPORT is complete the file will open automatically in Adobe Acrobat
    Most likely the screen will be very large
    Select the + - sign at the top of the page to adjust the page size to view the image
    Select FileàPrint
    The Print window will appear
    Select the printer from the drop down
    # of COPIES is just below Printer
    Select OK
    I hope this helps anyone who is having similar issues
    Thanks

Maybe you are looking for

  • I am trying to save photos from iphoto to an external hard drive

    Help! I bought a "WD Elements" external hard drive to save photos and make more room on my Macbook Pro. I can't move pics from iphoto to my "WD Elements" hard drive . I've recently gone on a few vacations and have a few thousand pictures to download.

  • HR - XI - External System: one IDOC to multiple XML Files

    Hi, I have a scenario where I need, out of one HRMD_A07 IDOC send multiple XML files: The IDOC and the XML files can the Master data for many employee (IDOC has max of 200 as of SAP, external system, max of 1000). The IDOC will be generated with chan

  • CTRL-C gives different behavior

    This is the first time I have seen this behavior.  I have a formula: =IFERROR(VLOOKUP($A3,'Data Here'!$Y$3:$Z$10000,2,FALSE),"")I am trying to copy it across twelve columns, one at a time, making an adjustment to each one. What I am noticing is somet

  • Does ipod touch 5th gen have a camera

    my daughter says that she has to have the 32 gb for the camera    does the 16 have the same options as the 32

  • Perform SQL search in QueryObject

    Hi, I've parsed a very complicated XML into several QueryObjects - more or less got now 3 "tables". Now i would like to use these three tables and perform a SQL search. something like Select * From tblMenu Where menu_dayId = 2 I have searched and als