Reportviewer 2010 - 2012 Page Header PrintOnFirstPage=false Doesn't work

Hi, I converted my project from 2010 to 2012 and added the new reportviewer reference(v10 to v11). something that worked in 2010 no longer works in 2012.
I have a report with a simple page header that i do no want shown on the first page but now a blank area the size of the page header appears on the first page, where in 2010, the body moves up to the top. is there a property im missing? i am using printonfirstpage=false
on the page header but it isnt working as expected.
thanks

Hi dell.ca,
According to your description, you have a report with a simple page header, and  you set PrintOnFirstPage property to false. It works fine in Visual Studio 2010, when you run the report using VS 2012, a blank area of the page header appears on the first
page.
I tried to reproduce this issue on my local machine. However, the report works fine for me when converted from SQL Server Data Tools(SSDT) 2010 In SQL Server 2012 to SSDT 2012. For this case, i recommend that you consider applying the latest patches according
to your version. If the problem remain unresolved, you can submit a feedback to Microsoft Connect at this link
https://connect.microsoft.com/SQLServer/Feedback. This connect site will serve as a connecting point between you and Microsoft, and ultimately the large community for you and Microsoft to interact
with. Your feedback enables Microsoft to offer the best software and deliver superior services, meanwhile you can learn more about and contribute to the exciting projects on Microsoft Connect.
If you have any questions, please feel free to let me know.
Thanks,
Wendy Fu

Similar Messages

  • In day 4, video # Creating "pages" with Flex states doesn't work

    i can't open video training http://www.adobe.com/devnet/flex/videotraining in day 4. it's name( Creating "pages" with Flex states ) doesn't work, it report error. supporter can look it and solve problem

    Hi,
         I'm also pacing the same issue. if click on the video in the Day 4 exercises. i don't know, what is the issue with that particular videos. and also pacing one more issue that design mode is not showing in my flash builder 4. if u have any ans plz help me out. PFA

  • SSRS 2012: Report Header PrintOnFirstPage-problem after report migration from SSRS 2008

    Hi ,
    I developed my report using VS 2008 IDE and the report header property "PrintOnFirstPage" is set to False.
    The content of the header are some textboxes and lines that should show only on page number > 1.
    This works fine in VS 2008 IDE in preview mode as well as with reports rendered by SSRS 2008 report server.
    Recently I migrate&convert the same report to SSRS 2012 I noticed a different rendering behaviour of my report.
    So in VS 2010 preview mode, the page headers content (textboxe etc.)  is not visible on first page but the headers space did not colapse as it does in VS 2008 IDE preview mode.
    I checked all the report properties but unable to find a solution to my problem.
    I was able to reprduce the same behaviour by creating a new report using VS2010 IDE.
    Any ideas are greatly appreciated
    Thanks
    Bodo

    Hi BodoHH,
    I have tested on my local enviorment and can't reproduce the issue, the issue can be caused by many factors, it can be caused by the properties setting and can also caused by the visual studio, Detais information below for your reference:
    As you mentioned that you have check all the report properties, please also check the tablix,Page Header,report body properties to see if the size are the same with that in the SSRS2008.
    Please open this rdl report in the report builder to see if the print layout is correct, if it works fine, the issue can be caused by the visual studio.
    Please also try to upload the rdl report to report manager to check the layout.
    Please also provide the snaphot of the layout in VS2010 to let us better analysis about the issue.
    If you still have any problem, please feel free to ask.
    Regards,
    Vicky Liu
    If you have any feedback on our support, please click
    here.
    Vicky Liu
    TechNet Community Support

  • Setting Header in response doesn't work !!

    Hi everyone,
    I want to set header in response to a request but it doesn't work :
    response.addHeader("WSC_RESPONSE", "STRUTS_ERROR");
    System.out.println(response.containsHeader("WSC_RESPONSE"));
    response.setHeader("WSC_RESPONSE", "STRUTS_ERROR");
    System.out.println(response.containsHeader("WSC_RESPONSE"));
    this print me :
    false
    false
    thanks in advance for help

    I can't do this because I'm putting those lines in an action who was caled by another action wich fill the response in.
    private ActionForward doDispatchMethod(ActionMapping mapping,
                                               ActionForm form,
                                               HttpServletRequest request,
                                               HttpServletResponse response,
                                               String methodName)
                                        throws IOException
                Method method = getMethod(methodName);
                Object[] args = { mapping, form, request, response };
                fwd = (ActionForward) method.invoke(this, args);
            if (request.getAttribute(ERROR_KEY)!=null)
                 response.reset();
                 response.addHeader("WSC_RESPONSE", "STRUTS_ERROR");
                 System.out.println(response.containsHeader("WSC_RESPONSE"));
                 response.setHeader("WSC_RESPONSE", "STRUTS_ERROR");
                 System.out.println(response.containsHeader("WSC_RESPONSE"));
            else
                 response.reset();
                 response.addHeader("WSC_RESPONSE", "OK");
                 System.out.println(response.containsHeader("WSC_RESPONSE"));
                 response.setHeader("WSC_RESPONSE", "OK");
                 System.out.println(response.containsHeader("WSC_RESPONSE"));
            return fwd;
        }

  • Cannot print with a Samsung ML2160 printer (mono laser) and Pages. Print function doesn't work, only drag and drop in printer's queue

    Hello,
    I just purchased a Samsung ML2160 printer and it doesn't work with nor my Pages program, nor the Preview (to print PDF). No matter the way I tried, the Print function doesn't work and I cannot neither print or even enter the printer preferrences menu! My MacBook Pro has worked before with other printers, but now with the Samsung it doesn't work at all... Though, if I drag and drop a document, jpg, pdf in the printer queue, it prints just fine, but that method gives me absolutely no freedom to the printing... Could it be something from the Computer -> Machintosh HD -> Library -> Printers? Because a friend of mine was recently trying to save me some disk space, and therefore erasing part of the HP printer (to remove the previous printer I owned)...
    If anyone has any idea, that would be much appreciated
    Thank you in advance

    Do the sensible thing, as you say neither Preview nor Pages print, try other programs eg TextEdit. If none of them print then it is a System problem and very likely the printer drivers are AWOL or were never installed.
    Go to Samsung's website and download their software for the Mac:
    http://www.samsung.com/uk/consumer/print-solutions/print-solutions/mono-printers /ML-2160/XEU-support
    http://www.samsung.com/uk/support/model/ML-2160/XEU-downloads
    Peter

  • Is it a bug - SSIS 2012 ReadOnlyVariables in Script Task doesn't work

    It's very weird when I use the ReadOnlyVariables in SSIS 2012 Script Task, it doesn't work at all!!! And I never notice this change before, but everything in 2008 R2 is fine! Is it a bug in SSIS 2012 ?
    All the variables I set them to "ReadOnlyVariables"
    In scripts - I assigned some values from system variables.
    String PackageName = Dts.Variables["System::PackageName"].Value.ToString();
    DateTime CurrentDate = (DateTime)Dts.Variables["System::StartTime"].Value;
    // User Defined Variables
    Dts.Variables["User::PV_CURRENT_DATE"].Value = CurrentDate;
    Dts.Variables["User::PV_YEAR"].Value = CurrentDate.Year;
    Dts.Variables["User::PV_MONTH"].Value = CurrentDate.Month;
    Dts.Variables["User::PV_DAY"].Value = CurrentDate.Day;
    Dts.Variables["User::PV_PACKAGE_NAME"].Value = PackageName;
    Execute the package, it works !
    The only thing I can make it as SSIS 2008 R2 does is to change the ReadOnly for each variables.
    Then you will get the error.
    Why do we need this feature here but not to use the ReadOnlyVariables in script task ?
    Please vote if it's helpful and mark it as an answer!

    I can reproduce it as well. Feels like a bug...
    Locking the variable for read in code has the same effect:
    public void Main()
    // Lock variable for read
    Dts.VariableDispenser.LockForRead("User::myStringVariable");
    // Create a variables 'container' to store variables
    Variables vars = null;
    // Add variable from the VariableDispenser to the variables 'container'
    Dts.VariableDispenser.GetVariables(ref vars);
    // Now try giving it a new name
    vars["User::myStringVariable"].Value = "new value";
    // Release the locks
    vars.Unlock();
    Dts.TaskResult = (int)ScriptResults.Success;
    For reference:
    https://connect.microsoft.com/SQLServer/Feedback/Details/991697
    Please mark the post as answered if it answers your question | My SSIS Blog:
    http://microsoft-ssis.blogspot.com |
    Twitter

  • Export excel setting Page header once per report not working

    Hi All,
          I am having a java web application which creates the predefined template reports in pdf or xls or rpt format. I have a requirement where in case of XLS format, the page header should be displayed ONCE PER REPORT. I have Crystal Reports XI release 2 and Java 1.5.
        I am setting from java code
         formatType = IReportFormatOptions.CeReportFormat.EXCEL;
         reportFormat.setFormat(formatType);
         IExcelFormat formatExcel = (IExcelFormat)reportFormat.getFormatInterface();
         formatExcel.setExportPageHeaderFooter(IExcelFormat.CeReportExportHeaderFooterOption.ONCE);
    I have installed a patch named Excel Export patch which basically sets some registry entries
    Set HKEY_CURRENT_USER\Software\Crystal Decisions\10.0\Crystal
    Reports\Export\Excel\PageAreaExportType to 0 for default behavior, 1 to display no page area, 2 to display page area once per report, and 3 to show the page area once per page.
    Set HKEY_CURRENT_USER\Software\Crystal Decisions\10.0\Crystal
    Reports\Export\Excel\ColumnWidthBaseArea to 0 for default behavior, 4 for column width based on detail
    section.
    I have set PageAreaExportType to 2 and ColumnWidthBaseArea to 0 and 4.
    Still i see the page headers repeating on every page. Could you please help me in resolving the issue?
    Thanks in advance.

    Currently in our new version of java application, we are not using DHTML viewer. Predefined report templates are published on crystal server and from Java application, we send the report parameters to the crystal and also specify the format type.
    Exporting excel from the crystal template is working fine with the page headers repeating only once (have set the page header show once per report option before exporting it to excel). But the same is not happening from the Java application. i have attached the required files to the message that i posted. If you have the access you can take a loot at them.

  • Firefox always opens with the last page from previous session. Setting this right (e.g. changing this to start up with blank or startup page) in Options/General, doesn't work.

    Screenshot of the options panel (that doesn't work):
    http://img170.imagevenue.com/img.php?image=214144211_FF_122_209lo.jpg

    All these "solutions" that have been offered to go to your settings and set your option to go to home page are 1.) not working and 2.) kind of a"duh". How many of us do you think have been set up like that for a few years now? And yet all of a sudden (i.e. new version of Firefox that apparently needs a little more testing...), this problem is occurring. It's getting really annoying too. We have defined home pages for a reason. Please correct this so we can return to them when we log in.

  • SetVisible(false) doesn't work with JDialog

    Hi evry one in this forum, i am using JDialog to get some inputs from user, when the user click on the ok button, i start processing and the JDialog must be invisible, for that i use myJdialog.setVisible(false) methode, but the JDialog is still visible, i may be use the wrong component or there is a problem.
    I write some thing like this:
    actionPerformed(){
    //getinputs and make some controls
    if(test){
    this.setVisible(false);
    //some traitments
    //some traitments
    }I think there is no thing wrong, not? what happen?

    I am sorry, this is some thing complicated:
    public class OpenKeyStore
        extends JDialog
        implements ActionListener, KeyListener, WindowListener {
      JPanel jPanel1 = new JPanel();
      Border border1;
      JLabel lprivateKey = new JLabel();
      JLabel lkeyPass = new JLabel();
      JTextField tkeyStorePath = new JTextField();
      JPasswordField tkeyPass = new JPasswordField();
      JButton bvalidate = new JButton();
      JButton bopenKeyStore = new JButton();
      JButton breset = new JButton();
      GridBagLayout gridBagLayout1 = new GridBagLayout();
      JFileChooser jfc = new JFileChooser();
      JOptionPane jop = new JOptionPane();
      private UploadParameters uploadParameters;
      private OpenRequest openRequest;
      private OpenResponse openResponse;
      private CheckCertRequest checkCertRequest;
      private CheckCertResponse checkCertResponse;
      private WaitBox waitBox;
      UploadApplet uploadApplet;
      public OpenKeyStore(Frame frame, String title, boolean modal) {
        super(frame, title, modal);
        try {
          jbInit();
        catch (Exception ex) {
          ex.printStackTrace();
      public OpenKeyStore(UploadApplet uploadApplet) {
        this(null, "", false);
        this.uploadApplet = uploadApplet;
      private void jbInit() throws Exception {
        uploadParameters = new UploadParameters();
        border1 = new EtchedBorder(EtchedBorder.RAISED, Color.white,
                                   new Color(148, 145, 140));
        this.setModal(true);
        this.setTitle("Ouvrir");
        jPanel1.setBorder(border1);
        jPanel1.setLayout(gridBagLayout1);
        jPanel1.setSize(400, 140);
        lprivateKey.setText("Cl� priv�e :");
        lkeyPass.setText("Mot de passe : ");
        bopenKeyStore.setActionCommand("openKeyStore");
        bopenKeyStore.setText("Ouvrir");
        bopenKeyStore.setMnemonic(KeyEvent.VK_O);
        bopenKeyStore.addKeyListener(this);
        bopenKeyStore.addActionListener(this);
        bvalidate.setActionCommand("bvalidate");
        bvalidate.setText("Valider");
        bvalidate.setMnemonic(KeyEvent.VK_V);
        bvalidate.addKeyListener(this);
        bvalidate.addActionListener(this);
        breset.setActionCommand("breset");
        breset.setText("R�etablir");
        breset.setMnemonic(KeyEvent.VK_R);
        breset.addKeyListener(this);
        breset.addActionListener(this);
        tkeyStorePath.setText("C:\\y.p12");
        tkeyStorePath.addKeyListener(this);
        tkeyPass.setText("y");
        tkeyPass.addKeyListener(this);
        this.getContentPane().add(jPanel1, BorderLayout.CENTER);
        this.getContentPane().setSize(410, 150);
        jPanel1.add(lprivateKey, new GridBagConstraints(0, 0, 1, 1, 0.0, 0.0
            , GridBagConstraints.WEST, GridBagConstraints.NONE,
            new Insets(5, 5, 5, 5), 0, 0));
        jPanel1.add(lkeyPass, new GridBagConstraints(0, 1, 1, 1, 0.0, 0.0
                                                     , GridBagConstraints.WEST,
                                                     GridBagConstraints.NONE,
                                                     new Insets(5, 5, 5, 5), 0, 0));
        jPanel1.add(tkeyStorePath, new GridBagConstraints(1, 0, 1, 1, 10.0, 0.0
            , GridBagConstraints.WEST, GridBagConstraints.HORIZONTAL,
            new Insets(5, 5, 5, 5), 150, 0));
        jPanel1.add(tkeyPass, new GridBagConstraints(1, 1, 1, 1, 10.0, 0.0
                                                     , GridBagConstraints.WEST,
                                                     GridBagConstraints.HORIZONTAL,
                                                     new Insets(5, 5, 5, 5), 200, 0));
        jPanel1.add(bvalidate, new GridBagConstraints(1, 2, 1, 1, 0.0, 0.0
                                                      , GridBagConstraints.EAST,
                                                      GridBagConstraints.NONE,
                                                      new Insets(5, 5, 5, 5), 0, 0));
        jPanel1.add(bopenKeyStore, new GridBagConstraints(2, 0, 1, 1, 0.0, 0.0
            , GridBagConstraints.CENTER, GridBagConstraints.NONE,
            new Insets(5, 5, 5, 5), 0, 0));
        jPanel1.add(breset, new GridBagConstraints(2, 2, 1, 1, 0.0, 0.0
                                                   , GridBagConstraints.CENTER,
                                                   GridBagConstraints.NONE,
                                                   new Insets(5, 5, 5, 5), 0, 0));
        this.initFileChooser();
        this.tkeyStorePath.requestFocus();
        this.pack();
        Rectangle screenRect = this.getGraphicsConfiguration().getBounds();
        this.setLocation(
            screenRect.x + screenRect.width / 2 - this.getSize().width / 2,
            screenRect.y + screenRect.height / 2 - this.getSize().height / 2);
        this.show();
      public void actionPerformed(ActionEvent e) {
        if (e.getActionCommand().equals("openKeyStore")) {
          this.showOpenFileChooser();
          return;
        if (e.getActionCommand().equals("bvalidate")) {
          this.acte();
          return;
        if (e.getActionCommand().equals("breset")) {
          this.reset();
          return;
      public void keyPressed(KeyEvent e) {
        if (e.getKeyCode() == KeyEvent.VK_ENTER) {
          if (e.getSource() == this.bopenKeyStore ||
              e.getSource() == this.tkeyStorePath) {
            this.showOpenFileChooser();
            return;
          if (e.getSource() == this.bvalidate ||
              e.getSource() == this.tkeyPass) {
            this.acte();
            return;
          if (e.getSource() == this.breset) {
            this.reset();
            return;
      public void keyReleased(KeyEvent e) {}
      public void keyTyped(KeyEvent e) {
      private void initFileChooser() {
        jfc.setFileFilter(new javax.swing.filechooser.FileFilter() {
          public boolean accept(File f) {
            return (f.getName().endsWith(".p12") || f.isDirectory());
          public String getDescription() {
            return "(.p12) fichier key store";
        jfc.setDialogTitle("Selectionnez un fichier .p12");
        jfc.setMultiSelectionEnabled(false);
        jfc.setDialogType(JFileChooser.OPEN_DIALOG);
        jfc.setFileSelectionMode(JFileChooser.FILES_ONLY);
      private void showOpenFileChooser() {
        int returnVal = jfc.showOpenDialog(this);
        if (returnVal == JFileChooser.APPROVE_OPTION && jfc.getSelectedFile() != null &&
            jfc.getSelectedFile().exists()) {
          this.tkeyStorePath.setText(jfc.getSelectedFile().getAbsolutePath());
          this.tkeyPass.requestFocus();
        else {
          this.tkeyStorePath.requestFocus();
      private void reset() {
        this.tkeyStorePath.setText("");
        this.tkeyStorePath.requestFocus();
        this.tkeyPass.setText("");
      private void acte() {
    //waitBox = new WaitBox();
        openRequest = new OpenRequest();
        openRequest.setStorePath(this.tkeyStorePath.getText());
        if (!openRequest.isValide()) {
          jop.showMessageDialog(null,
                                "S.V.P v�rifiez le chemin de votre cl�!",
                                "Echec...", jop.ERROR_MESSAGE);
          this.tkeyStorePath.requestFocus();
          this.tkeyStorePath.selectAll();
          return;
        openRequest.setStorePass(new String(this.tkeyPass.getPassword()));
        openRequest.setReciverCert(this.uploadParameters.getReciverCert());
        OpenAction openAction = new OpenAction(this.openRequest);
        try {
          while (openResponse == null) {
            Thread.sleep(100);
            openResponse = (OpenResponse) openAction.getResponse();
        catch (Exception e) {
          e.printStackTrace();
        if (openResponse.getSenderPK() == null) {
          jop.showMessageDialog(null,
              "S.V.P entrez une cl� valide, \n ou verifiez votre mot de passe !",
              "Echec...", jop.ERROR_MESSAGE);
          this.tkeyStorePath.requestFocus();
          this.tkeyStorePath.selectAll();
          return;
        if (openResponse.getCaCert() == null) {
          this.setVisible(false);
          jop.showMessageDialog(null,
              "Votre cl� n'est pas valide.\n contactez votre administrateur!",
              "Echec...", jop.ERROR_MESSAGE);
          this.gotoPreviousPage();
          return;
        if (this.uploadParameters.getCipher() && openResponse.getReciverCert() == null) {
    this.setVisible(false);//*********************Does not work
    jop.showMessageDialog(null,
              "Vous ne disposez pas de certificat pour votre correspondant!",
              "Echec...", jop.ERROR_MESSAGE);
          this.gotoPreviousPage();
          return;
        this.setVisible(false);//*********************Does not work
        if (this.uploadParameters.getCipher()) {
          String compte;
          while (true) {
            compte = (String) JOptionPane.showInputDialog(
                this, "S.V.P. entrez le compte de votre correspondant : ",
                "Customized Dialog", JOptionPane.PLAIN_MESSAGE, null, null, "");
            if (compte == null) {
              //gotoprevious page
              return;
            this.checkCertRequest.setCommunName(compte);
            if (this.checkCertRequest.isValide()) {
              this.checkCertRequest.setReciverCert(this.openResponse.getReciverCert());
              this.checkCertRequest.setCaCert(this.openResponse.getCaCert());
              CheckCertAction checkCertAction = new CheckCertAction(this.
                  checkCertRequest);
              try {
                while (this.checkCertResponse == null) {
                  Thread.sleep(100);
                  this.checkCertResponse = (CheckCertResponse) checkCertAction.
                      getResponse();
              catch (Exception e) {
                e.printStackTrace();
              if (this.checkCertResponse.getReciverCertState()) {
                return;
              else {
                jop.showMessageDialog(null,
                    "L'identit� de votre correspondant n'a pas pu etre v�rifier!",
                    "Echec...", jop.ERROR_MESSAGE);
      public void windowActivated(WindowEvent e) {}
      public void windowClosed(WindowEvent e) {}
      public void windowDeactivated(WindowEvent e) {}
      public void windowDeiconified(WindowEvent e) {}
      public void windowIconified(WindowEvent e) {}
      public void windowOpened(WindowEvent e) {}
      public void windowClosing(WindowEvent e) {
        this.gotoPreviousPage();
      public void gotoPreviousPage() {
    }

  • Somehow hyperlinked whole page, now navigation bar doesn't work

    I was trying to add a hyperlink to the bottom of my page, and somehow made the whole page the hyper link. Now my navigation bar doesn't work. When I scroll with my mouse to show me if there is something hiding the navigation bar, the whole page including the navigation bar seems to be one image. How do I fix this? I tried starting a new page, but have trouble formatting the columns properly again. HElp??? if you want to see what I'm talking about, its the Resume page that has the inactive nav bar, and the Resumee page that I can't format right... http://web.me.com/lauren.kelly

    Just checked the Resume page and the entire page, except for the navbar is a link to download your resume as a Word document. The file didn't have an extension but I added the .doc extension and it opened in Pages as a Word document.
    If you don't want the document to be downloaded check the page in iWeb to see if you see the hyperlink icon somewhere on the page. Select the object it's attached to and use the Inspector/Link/Hyperlink pane to remove it as a link.
    The links in the navbar are working as they should. It's just the body of the page that has an "unwanted" (?) link.
    OT

  • Term-Driven Page with Friendly URL doesn't work with a page in another Site Collection

    Hi all,
    It appears that the Term-Driven Page with Friendly URL does not work when it is referencing a page in another Site Collection. When I set my Managed Navigation to use a term that points to another Site Collection page, the link shows in my navigation, but
    gives the error:
    "Sorry, something went wrong"
    This does not happen if I link to a page in the same site.
    Kelly
    Personal Blog: http://thebitsthatbyte.com

    i got similiar (i am not sure whether the same) issue recently:
    I have a site collection (address http://spserver/) which use managed navigation, and term-driven page with friendly url. The address of the term-driven page is set as /pages/teamsitehome.aspx . A friendly url takes the form such as http://spserver/menulevel1/submenu1
    I create a new site collection http://spserver/sites/newsitecollection and i want it to have the same navigation menu as the other site collection. Since i cannot use the same termset for the two site collection, i have to create a new term set
    for the new site collection, "pin term with chidrem" or "reuse term" to the old term set. The friendly url in newly created site collection and term set takes the form such as http://spserver/sites/newsitecollection/menulevel1/submenu1, and still
    points to /pages/teamsitehome.aspx. Notice that the term-driven page here in the new site collection still points to the old site collection.
    Actually, it works! I mean, when i click the navigation menu, friendly url http://spserver/sites/newsitecollection/menulevel1/submenu1 appears in the browser address. And SharePoint knows to load /pages/teamsitehome.aspx for this url. If this is a simple
    blank page, it just open fine here.
    However, my custom page teamsitehome.aspx calls TaxonomyNavigationContext.Current.NavigationTerm in its page load event, it should returns a valid NavigationTerm for the friendly url. But it returns null here. I traced the code to find that it calles
    internal static NavigationTerm GetNavigationTermFromTargetUrlGuids(SPWeb contextWeb, Guid termStoreId, Guid termSetId, Guid termId, bool includeInheritedSettings, bool enableExclusions)
    The passed in contextWeb points to http://spserver/ , since the term-driven page is in this web. But the termSetId points to the new termset. TermId won't be problem, since its the same in both new and old term set for pinned term. The combination of contextWeb
    and termSetId just make the output NavigationTerm null. I think its simply because the termset is not associated with this spweb.
    My workaround is create a copy of /pages/teamsitehome.aspx in new site collection. The term-driven page address is set to ~sitecollection/pages/teamsitehome.aspx in term management. This time, all works. Just because the contextWeb parameter i mentioned
    above now points to the root web at new site collection, where the term driven page resides.

  • JRadioButton.setSelected(false) doesn't work?

    Hey there. I usually answer questions in this forum but this time I have a question myself. I'm trying to de-select JRadioButtons in a ButtonGroup but it's not working. I've searched the forum but didn't find anything. Here's the very simple code:
    import javax.swing.*;
    import java.awt.*;
    import java.awt.event.*;
    public class ButtonTest extends JFrame {
      JRadioButton rb1 = new JRadioButton("button1", true);
      JRadioButton rb2 = new JRadioButton("button2");
      ButtonGroup bgroup = new ButtonGroup();
      JButton b = new JButton("clear");
      ButtonTest() {
        b.addActionListener(new ActionListener() {
          public void actionPerformed(ActionEvent e) {
            clearbuttons();
        bgroup.add(rb1);
        bgroup.add(rb2);
        Container c = getContentPane();
        c.setLayout(new GridLayout(2,2));
        c.add(rb1);
        c.add(rb2);
        c.add(b);
        addWindowListener(new WindowAdapter() {
          public void windowClosing(WindowEvent e) {
            System.exit(0);
      void clearbuttons() {
        Component [] components = getContentPane().getComponents();
        for (int i = 0; i < components.length; i++) {
          Component c = components[ i ];
    System.out.println(c);
          if (c instanceof JRadioButton) {
            JRadioButton rb = (JRadioButton) c;
            rb.setSelected(false);  // once.
            bgroup.setSelected(rb.getModel(), false);  // twice.
    System.out.println("\ncalled setSelected\n");
      public static void main (String[]a) {
        ButtonTest b = new ButtonTest();
        b.setSize(200,100);
        b.setVisible(true);
    }Anybody know why the selected button remains selected?

    The ButtonGroup ensures that one JRadioButton is always selected, at least after the first one is initially selected. The workaround to fix this is to add an additional "dummy" JRadioButton to the ButtonGroup, and have your code select it when you want to deselect the rest of the buttons. The dummy JRadioButton doesn't need to be added to the GUI or displayed, or anything.

  • How to make a small doc zoom to print on a larger page, print to fit doesn't work

    I have a pdf I created that ended up filling only 1/2 of a letter size page, I've tried print to fit area and it doesn't increase the size. I would like to zoom the page to fit a 11 x 17 sheet or at least fill the entire 81/2 x 11. How do I do this?

    What was the size of the paper you selected. I just opened a PDF and then in the print menu selected zoom to fit and selected the printer property to be a large sheet and it worked fine. Did you actually select the paper size in the printer properties, or is the paper the size that you are talking about.
    There may be an issue of how you are creating the PDF also. There are many ways and it is hard to help when we have no idea of what you were doing. Give the basic steps of what application you are in and what steps you take that has a problem.

  • UIComponent.setRendered(false) doesn't work

    Tomcat 4.0.1, JBuilder X, WinXP.
    jsp: <h:inputText id="abc" value="ABC" size="16"/>
    When I try this:
    <h:commandButton id="indexCommandButtonActionListener" type="SUBMIT"
              actionListener="#{User.buttonActionListener}" value="GO!"/>
    FacesContext.getCurrentInstance().getViewRoot().findComponent("abc").setRendered(false);
    I get:
    Apache Tomcat/4.0.1 - HTTP Status 500 - Internal Server Errortype Exception reportmessage Internal Server Errordescription The server encountered an internal error (Internal Server Error) that prevented it from fulfilling this request.exception javax.servlet.ServletException: java.lang.NullPointerException
    at javax.faces.webapp.FacesServlet.service(FacesServlet.java:209)
    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:247)
    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:193)
    at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:243)
    at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
    at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
    at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
    at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:201)
    at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
    at org.apache.catalina.valves.CertificatesValve.invoke(CertificatesValve.java:246)
    at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)
    at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
    at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
    at org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2344)
    at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:164)
    at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
    at org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.java:170)
    at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)
    at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:170)
    at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)
    at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
    at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
    at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:163)
    at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
    at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
    at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
    at org.apache.catalina.connector.http.HttpProcessor.process(HttpProcessor.java:1011)
    at org.apache.catalina.connector.http.HttpProcessor.run(HttpProcessor.java:1106)
    at java.lang.Thread.run(Thread.java:534)
    root cause javax.faces.el.EvaluationException: java.lang.NullPointerException
    at com.sun.faces.el.MethodBindingImpl.invoke(MethodBindingImpl.java:130)
    at javax.faces.component.UICommand.broadcast(UICommand.java:305)
    at javax.faces.component.UIViewRoot.broadcastEvents(UIViewRoot.java:266)
    at javax.faces.component.UIViewRoot.processApplication(UIViewRoot.java:380)
    at com.sun.faces.lifecycle.InvokeApplicationPhase.execute(InvokeApplicationPhase.java:75)
    at com.sun.faces.lifecycle.LifecycleImpl.phase(LifecycleImpl.java:200)
    at com.sun.faces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:90)
    at javax.faces.webapp.FacesServlet.service(FacesServlet.java:197)
    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:247)
    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:193)
    at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:243)
    at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
    at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
    at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
    at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:201)
    at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
    at org.apache.catalina.valves.CertificatesValve.invoke(CertificatesValve.java:246)
    at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)
    at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
    at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
    at org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2344)
    at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:164)
    at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
    at org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.java:170)
    at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)
    at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:170)
    at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)
    at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
    at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
    at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:163)
    at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
    at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
    at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
    at org.apache.catalina.connector.http.HttpProcessor.process(HttpProcessor.java:1011)
    at org.apache.catalina.connector.http.HttpProcessor.run(HttpProcessor.java:1106)
    at java.lang.Thread.run(Thread.java:534)
    Caused by: java.lang.NullPointerException
    at jsf_sun_1_0.User.buttonActionListener(User.java:35)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:324)
    at com.sun.faces.el.MethodBindingImpl.invoke(MethodBindingImpl.java:126)
    ... 35 more

    The "id" passed to findComponent() must incorporate any intervening NamingContainers in the component hierarchy, including the ID of that form that's almost certainly on your page.
    In short, findComponent("formID:abc").
    I highly recommend use of the "binding" attribute over findComponent().
    -- Adam Winer (EG member)

  • Why page on the internet doesn't work????????

    Hi guys
    I have this domain http://www.regardit.eu forwarded to my .mac account. It is about photography from Luembourg.
    Anyway. I have problems to visit the site. It is forwarded corectly. ISP helped me, but still people can not visit this site. any idea why?
    Today I just updated the site and from my computer it works, but from other machines it doesn't
    Can you confirm if you can see the page?

    Hey! I know that really ***** with the website. People also complain that it is way slow.
    I guess the problem could be that your ISP doesn't allow Cname to look up DNS A type.
    You can try this.
    It works on my site for now, but I need some time and feedback from people.
    Solution:
    Go to your domain setup and click Change DNS.
    you should have there one or two entries.
    change it like this
    Let say my domain is regardit.eu
    1 name TTL -1800 type A Value 17.250.248.34 -> this is IP web.mac.com
    2 name TTL -1800 type CNAME Value regardit.eu
    I'm not a PRO, but for now it works. Apple even ISP did not know where the problem is.
    Let me know if it worked for you./
    MIKE

Maybe you are looking for

  • ADOBE FLASH ******* ME OFF NEED HELP

    i have a new macbook pro 17 and this has happend twice .all the sudden when i try to watch a flash video file on line or on the computer in full screen it lags and works perfect in normal screen.But when i go to setting when u right click and uncheck

  • Can i order my pictures and creat albums via nokia...

    hi ,can i creat albums and put my pictures in albums in my phone 6720  with nokia pc suite?

  • Setting Tooltip on accordion section Does not work. Possible bug??

    HI All, I am using accordion control with following code. var oAccordion = new sap.ui.commons.Accordion("accordionA"); //Building Section 1 var oSection1 = new sap.ui.commons.AccordionSection( "section1" );   oSection1.setTitle("Section 1kdfjkdasfjsd

  • How to stop the RAW photo conversion prompt from automatically appearing?

    I just worked with some .cr2 files, and now when I open any file type, i.e. jpg, my Photoshop CS5.1 automatically gives me the RAW screen, similar to the image below. How do I turn this off?

  • "Jar " contents?

    Hi! In reference to "jarring up" my app, does the jar only contain the referenced import statements? In other words, is there extra API or librarys that are not being used by my app also just sitting in there taking up space? Thanks!