السلام عليكم ورحمة الله وبركاته
قمت بتصميم المشروع بلغة c# ووضعت به التقارير داخل مجلد Reports وحاولت ان استدعى التقارير من المجلد الذى انشأته ولكن لا جدوى وقد كتبت الكود التالى
Monthly_Emplo mon_data = new Monthly_Emplo();
mon_data.Load(Application.StartupPath + @"\Reports\Monthly_Emplo.rpt");
mon_data.SetParameterValue("mo_nm", comboBox1.SelectedItem);
mon_data.SetParameterValue("br_nm", comboBox2.SelectedItem);
crystalReportViewer1.ReportSource = mon_data;
crystalReportViewer1.Refresh();
crystalReportViewer1.Zoom(90);وعندما عملت كليك يمين على التقرير وعرضت خصائصه وجدت ان الخاصية Build Action هى Embedded Resource وعندما اغيرها الى None تظهر لى تلك الرسالة
unable to find the report in the manifest resources. please build the project and try again
وعند ارجاعها كما كانت يظهر التقرير حتى ان الغيت السطرالتالى
mon_data.Load(Application.StartupPath + @"\Reports\Monthly_Emplo.rpt");
فهل من توضيح كيف اجعل تحميل التقارير من المجلد مباشرة ؟