بتاريخ: 19 أكتوبر 201114 سنة comment_216732 طريقة اظهار البيانات من ريبوت الى اكسل فايل هي من اهم مواضيع الشركات لانهم يحتاجون ملف اكسل فايل اسهل للطباعة وحاجات اخرى اتبع التالي 1. First we must attach a library which includes (RPT2XLS)package 2. create parameter user parameter M_DEST_TYPE= E We declare new parameter with name M_DEST_TYPE with datatype “character” 3. we will make report convert to excel or view report in default way 4. Now we will return to report builder and write the following code in after report trigger (function AfterReport return boolean is Begin IF :M_DEST_TYPE = 'E' THEN RPT2XLS.RUN; RPT2XLS.release_memory; END IF; return (TRUE); end;) 5. Then we will change some values in system parameter(optional ): Change (DESTYPE) initial value parameter into (file) If we want make report builder save the converted excel in specific path we change (DESNAME) initial value parameter to the path we want to save this excel 6. ---------------------------------------------------------------------------------------------------------------------------------------------------- Now we will start making all or some fields show into specific cells in excel We can show any field in report builder in and cell in excel Now open the layout module to write inside its fields the required code to make them appear in excel There is some important syntax codes we must know it to be able to pull report ine RPT2XLS.put_cell(<cell number>, <field name/source name>, FontSize => <number>, FontColor => <number>, FontStyle => RPT2XLS.<style>); This code can specified the cell we want to show one field in report builder <cell number> :if we put number (1) the specified field will show in cell (A) in Excel sheet If we put (2) the specified field will show in cell (A) in Excel sheet and so on <field name/source name>: here we put the source name that the field read from FontSize => <number>: here we can make the font in cell big or small by write the font size number FontColor => <number>, FontStyle => RPT2XLS.<style>: these parameters can be used to make the cell we want in color in font style we want Example: RPT2XLS.put_cell(1, :B_27, FontStyle => RPT2XLS.BOLD ); RPT2XLS.new_line; : this code used when we want to make a new line in excel 3. SRW.GET_PAGE_NUM(M_PAGE_NUM); IF M_PAGE_NUM=1 THEN … … … … END IF; This code used in fields that we want them to appear once in report like header As we see there is a fields and repeated frames in this report every field\fields here inside frame\repeated frame or more Maybe every collection of fields inside frame\repeated frame or more,when we want to show all fields in specific frame in excel,we write the syntax code which make report shows these fields in first field for example if we have 3 fields in one frame\repeated frame with names (A,B,C),we should write the following code in format trigger of the last field ‘A’ RPT2XLS.put_cell(1, :source of field A, FontSize => 13 ,FontColor => 3, FontStyle => RPT2XLS.BOLD); RPT2XLS.put_cell(3, : source of field A, FontSize => 13 ,FontColor => 3, FontStyle => RPT2XLS.BOLD); RPT2XLS.put_cell(5, : source of field A, FontSize => 13 ,FontColor => 3, FontStyle => RPT2XLS.BOLD); We do this action for ONLY one field inside frame/repeated frame Then we move to next field in another frame/ reappeared frame until we finish all fields that we want them to show in excel sheet --------------------------------------------------------------------------------------------------------------------------------------------------- Thank you For Interesting .... تقديم بلاغ
بتاريخ: 20 أكتوبر 201114 سنة comment_216739 السلام عليكم ورحمة الله الأخ / أحمد بداية : نرحب بك معنا بالمنتدى ... تُفيد وتستفيد ... إن شاء الله اشكرك على هذه المشاركة المفيدة ... وهى يالفعل من الطلبات الأساسية للحصول على البيانات فى ملفات الأكسيل سواء من خلال التقارير وايضا من خلال شاشات ال forms سؤال هل ال RPT2XLS .... library موجودة ضمن مكتبات التقارير للعلم : توجد ايضا مشاركات بالمنتدى عن طرق اخرى لاستخراج البيانات فى ملف اكسيل ... ولكن اعتقد ان استخدام المكتبة RPT2XLS بالتأكيد يعطى امكانيات افضل جزاك الله خيرا تقديم بلاغ
بتاريخ: 20 أكتوبر 201114 سنة comment_216756 الأخ أحمدأشكرك على المشاركة المتميزة...هل بالإمكان وضع مثال عملي على هذه الطريقة لكي يتم الإستفادة منها بشكل عملي..وشكرا لك واهلا بك في المنتدى.. تقديم بلاغ
بتاريخ: 21 أكتوبر 201114 سنة كاتب الموضوع comment_216774 اخي العزيز ابعث عنها في PIN ستجدها RPT2XLSمع العلم بانك ستقوم بعمل لها Attach عن Report Builder قم بتخزين الريبورت والايبراري على نفس البن لتجنب طلبها عند كل عملية تعديل على الريبورت او اعادة فتحو شكرا لك على المتابعة ومن الله لي ولكم التوفيق واي استفسارات اخرا انا جاهز ان شاء الله تقديم بلاغ
بتاريخ: 25 أكتوبر 201114 سنة comment_216927 اخي العزيز ابعث عنها في PIN ستجدها RPT2XLSمع العلم بانك ستقوم بعمل لها Attach عن Report Builderقم بتخزين الريبورت والايبراري على نفس البن لتجنب طلبها عند كل عملية تعديل على الريبورت او اعادة فتحو شكرا لك على المتابعة ومن الله لي ولكم التوفيق واي استفسارات اخرا انا جاهز ان شاء الله اخي العزيز الموضوع مهم جدا وانا ابحث عنة لي مدة علما باني استخدم dev 6i ولم اجد RPT2XLS في BIN ارجو المساعدة ومثال عملي تقديم بلاغ
بتاريخ: 19 مارس 201214 سنة comment_221997 السلام عليكم ورحمة الله وبركاتهالموضع قديم لاكن انا ندلية على هاي البكج جديد بس في شكله اذا بتقدر تساعدني فيها اخي العزيز او اي حد طبعا المشكله انو لما يكون بالجدول لغه عربيه عند تحويل التقرير للاكسل تخرج لغه غير مفهومه مع انه على التقرير العربي ظاهر وما عليه مشاكل وشكرا الكم تقديم بلاغ
انضم إلى المناقشة
يمكنك المشاركة الآن والتسجيل لاحقاً. إذا كان لديك حساب, سجل دخولك الآن لتقوم بالمشاركة من خلال حسابك.