My RDLC Design:
Я хочу показывать изображение на моем retrector my retret ortembase my retret orbive orbive orbieher. ВСЕГО, мне просто нужно изображение для каждого выбора, и у меня уже есть изображения в моей базе данных для каждого пациента, я просто хочу показать это здесь, на моей странице .aspx я также прикрепил код ниже.
< /code>
my .cs file:
Я хочу показать изображение на просмотре отчета из моей базы данных < /p>
Код за страницей ASPX здесь < /p>
public partial class PatientReport : System.Web.UI.Page
{
protected void Page_Load(object sender, EventArgs e)
{
if (!IsPostBack)
{
populateDropDownPat();
}
}
private void populateDropDownPat()
{
try
{
patientCollection pcal = (new patientBAL()).GetAllDetailspatient();
DropDownPat.DataSource = null;
DropDownPat.DataSource = pcal;
DropDownPat.DataTextField = "patientName";
DropDownPat.DataValueField = "PatientID";
DropDownPat.DataBind();
DropDownPat.Items.Insert(0, new ListItem("--Select Patient--"));
}
catch(Exception ex)
{
}
}
protected void DropDownPat_SelectedIndexChanged(object sender, EventArgs e)
{
string name = DropDownPat.SelectedItem.Text;
patientCollection pcal = (new
patientBAL()).GetDetailsByPatientName(name);
ReportViewer1.Visible = true;
this.ReportViewer1.LocalReport.EnableExternalImages = true;
this.ReportViewer1.LocalReport.ReportPath = "Report1.rdlc";
ReportViewer1.LocalReport.DataSources.Clear();
ReportDataSource rds = new ReportDataSource("DataSet1", pcal);
this.ReportViewer1.LocalReport.DataSources.Add(rds);
this.ReportViewer1.LocalReport.Refresh();
}
}
Подробнее здесь: https://stackoverflow.com/questions/459 ... dlc-report
Как отображать изображение из базы данных в отчете RDLC ⇐ C#
-
- Похожие темы
- Ответы
- Просмотры
- Последнее сообщение
-
-
Как создать несколько вложенных таблиц в отчете RDLC, используя несколько наборов данных?
Anonymous » » в форуме C# - 0 Ответы
- 16 Просмотры
-
Последнее сообщение Anonymous
-