الفريق العربي للبرمجةأرشيف المنتديات · 2000 – 2023
نسخة أرشيفية للقراءة فقط — التسجيل والمشاركة مغلقان، والمحتوى محفوظ كما كان.

كيف امرر براميتير لكريستال ريبورت

مغلق
بدأه no_mercy في 12 نوفمبر 2005 · 5 رد · 1,076 مشاهدة · في Microsoft Visual Basic.NET
مشاركة: واتساب X فيسبوك تيليجرام
#1 صاحب الموضوع

مرحبا ارجو من الاخوة مساعدتي كيفية تمرير براميتير لكريستال ريبورت

مع الفيجوال بيسك وبالسرعة الممكنة

وشكرا

#2

hi

this is the code

 Dim ID As New CrystalDecisions.Shared.ParameterDiscreteValue
        Dim pvCollection As New CrystalDecisions.Shared.ParameterValues

 If txtID.Text <> "" Then
                    ID.Value = txtID.Text
                Else
                    ID.Value = "لم يحدد"
                End If

                pvCollection.Add(ID)

 rpt.DataDefinition.ParameterFields("ID").ApplyCurrentValues(pvCollection)

note the ID in the last line is the name of parameter in the reports

#3

sory am forget to say thats rep inthe code reprsent the reports object and its declar like thats

dim rep as new ReportName

#4

ارجو توضيح الفكرة

وشكرا على الرد

#5

hi

the idea is so easy

first line and secound line decalar an parameter and the secound declar parameter collection

Dim ID As New CrystalDecisions.Shared.ParameterDiscreteValue

Dim pvCollection As New CrystalDecisions.Shared.ParameterValues

secound step give the parameter an value

ID.Value = txtID.Text

thired step add the parameter to the collection of parameter

pvCollection.Add(ID)

fouth step decalar an report object

dim rep as new ReportName

note thats reportname is the reports name thats u create or u need to send the parameter to it

finally add the parameter collection to the report

note thaqts u must declar an parameter feild in the report with name ID as use in code

goodluck

#6

السلام عليكم

الموقع ممتلئ بهذه المواضيع, فقط إستخدم خاصية البحث,لتوفر عليك والوقت و الجهد.

تفضل هذه إحداهم

بالتوفيق إن شاء الله.

في المثال يتضح المقال

هذا الموضوع مغلق.

مواضيع مشابهة

عدد الزوار حالياً

المتواجدون خلال آخر دقيقتين · يتحدّث كل ٣٠ ثانية

—الإجمالي—أعضاء مسجّلون—زوار بدون تسجيل

جارٍ التحقق من المتواجدين…