Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8660123
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 12, 20262026-06-12T16:10:41+00:00 2026-06-12T16:10:41+00:00

I keep getting this error in my devexpress code. Here is the code I

  • 0

I keep getting this error in my devexpress code.
Here is the code I have put in:

using System;
using System.Data;
using System.Drawing;
using System.Windows.Forms;
using System.Collections;
using System.ComponentModel;
using DevExpress.XtraReports.UI;
using System.Drawing.Printing;

namespace DD
{
    public partial class MasterReport : DevExpress.XtraReports.UI.XtraReport
    {
        //detailReport.catName.Value = ((DataRowView)e.Brick.Value).Row["EcoYear"].ToString();
        public MasterReport()
        {
            InitializeComponent();

        }

        private void xrLabel1_BeforePrint(object sender, PrintEventArgs e)
        {
         //   XRLabel l = sender as XRLabel;
         //   l.Tag = GetCurrentRow();

           ((XRLabel)sender).Tag = GetCurrentRow();
        }

        private void xrLabel1_PreviewClick(object sender, PreviewMouseEventArgs e)
        {
            DetailReport detailReport = new DetailReport();
            detailReport.CaID.Value = (int)((DataRowView)e.Brick.Value).Row["CaseID"];
            detailReport.EYear.Value = (int)((DataRowView)e.Brick.Value).Row["EcoYear"];
            detailReport.ShowPreviewDialog();
        }

        private void xrLabel1_PreviewMouseMove(object sender, PreviewMouseEventArgs e)
        {
            Cursor.Current = Cursors.Hand;
        }

        private void xrPictureBox1_BeforePrint(object sender, PrintEventArgs e)
        {
            ((XRLabel)sender).Tag = GetCurrentRow();
        }

        private void xrPictureBox1_PreviewClick(object sender, PreviewMouseEventArgs e)
        {
            PW pw = new PW();
            PW.CaID.Value = (int)((DataRowView)e.Brick.Value).Row["CaseCaseID"];
            PW.ShowPreviewDialog();
        }

        private void xrPictureBox1_PreviewMouseMove(object sender, PreviewMouseEventArgs e)
        {
            Cursor.Current = Cursors.Hand;
        }

    }
}

The PW.CaID.Value and the PW.ShowPreviewDialog(); are the lines that are giving me this error. Perhaps I am doing this the wrong way. What I wanted to do is click an icon (xrPictureBox1) on the main report and have it bring up the subreport (PW). I have done this in the code above for another subreport (detailreport). Thank you in advance for your help.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-12T16:10:42+00:00Added an answer on June 12, 2026 at 4:10 pm

    Your code should read:

    PW pw = new PW();
    pw.CaID.Value = (int)((DataRowView)e.Brick.Value).Row["CaseCaseID"];
    pw.ShowPreviewDialog();
    

    Note the case on PW/pw.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I keep getting this error System.Web.HttpException was unhandled by user code Message=Validation of viewstate
I keep getting this error when making the program as given below: using System;
I keep getting this error from my code and I have no idea what
We keep getting this error randomly in our web application. System.Data.SqlClient.SqlException: A network-related or
I keep getting this error even when I have put reader.php in the same
I keep getting this error and have no idea why. I googled and scanned
I keep getting this error when using django templates in Google App Engine: TemplateSyntaxError:
I keep getting this error: MySQL said: #1064 - You have an error in
I keep getting this error - error C2819: type 'List' does not have an
I have a rails application and i keep getting this error /srv/projects/app/controllers/application_controller.rb:174: invalid multibyte

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.