Print custom PDF Report Using PL/SQL Dynamic Region in Oracle Apex 19.1

Print custom PDF Report Using PL/SQL Dynamic Region in Oracle Apex 19.1

ali saleh ali

4 года назад

18,417 Просмотров

Ссылки и html тэги не поддерживаются


Комментарии:

@serialgamers2899
@serialgamers2899 - 05.01.2023 07:42

Asalam o Alaikum!
Sir I use windo.print();
Wholl screen print but my need is only print data.

Ответить
@abo-khaled1440
@abo-khaled1440 - 20.10.2022 16:10

How can I get the Blob of PDF in pl/sql please.

Ответить
@princesiddharha2947
@princesiddharha2947 - 14.10.2022 08:34

Hi Ali thank u for sharing PL/SQL code.
I tried very first PL/SQL code but when I click on the button nothing is happening

Ответить
@princesiddhartha3551
@princesiddhartha3551 - 11.10.2022 14:29

Can u please share me the PL/SQL code

Ответить
@jwadalsabee9565
@jwadalsabee9565 - 16.01.2022 17:16

كبف تمت عملية تعريب الارقام؟ هل هناك اداة جاهزة في ابكس لتعريب الارقام

Ответить
@MrHaha9590
@MrHaha9590 - 25.11.2021 12:35

If i have two table how can i to print two page in pdf file ?

Ответить
@kaushik6975
@kaushik6975 - 17.09.2021 08:07

Can u help me how to remove header from pdf.....when I click on print button in print also has header and footer of application

Ответить
@varshahr3174
@varshahr3174 - 01.06.2021 10:29

Hi Sir
I followed this tutorial but print is not initiating the next page when there is more number of rows
what i'm i missing?
Thanks in advance

Ответить
@varshahr3174
@varshahr3174 - 09.05.2021 17:16

Hi sir,
Thanks for the video
i followed the same process but when i click the "pl/sql2" button blank sheet is getting generated with Page name in the header and page link in the footer(these page name and page link should not appear)
i have given window.print() when page loads
where i'm i doing wrong
Thanks in advance...

Ответить
@bahaaismael4917
@bahaaismael4917 - 08.03.2021 11:47

ممكن translate function

Ответить
@patelbansari1472
@patelbansari1472 - 06.01.2021 22:56

Can you please guide me on how to save the generated PDF report(From a Dynamic region or a classic report) in Database as a BLOB type. Thanks!

Ответить
@ratanapouy8086
@ratanapouy8086 - 16.12.2020 09:22

i followed your instruction. window.print() display current page for printing only. Example: i have 3 pages, when i click on print button, then only 1 page is printed. How to fix it?

Ответить
@awaisexilant5815
@awaisexilant5815 - 28.06.2020 11:00

Please share the code you write in "pl/sql and pl/sql 2 buttons"

Ответить
@funwithusman7558
@funwithusman7558 - 02.05.2020 22:32

Please send query code

Ответить
@alihabboul7889
@alihabboul7889 - 13.10.2019 18:12

من فضلك اخ على صالح على كود كورس و شكرا

Ответить
@suvashishdas7739
@suvashishdas7739 - 03.09.2019 18:56

How to export excel and pdf same report?

Ответить
@mkandil7901
@mkandil7901 - 11.08.2019 02:20

ما شاء الله عليك

Ответить
@wizzeico4589
@wizzeico4589 - 29.07.2019 17:37

جزيت خيرا ي هندسة ، وين احصل الملفات العليها الشرح لو تكرمت

Ответить
@SAD-ew9hl
@SAD-ew9hl - 29.07.2019 13:30

thanks your tutorials is very helpful ,but better is that if you provide tutorials in english language...

Ответить
@zainabalhilaly1997
@zainabalhilaly1997 - 27.07.2019 00:38

عند كتابة الفارزة لا يظهر الصفر مثلا عند وجو رقم 0.1 يظهر فقط .1 لا اعرف الحل

Ответить
@alisalehali
@alisalehali - 25.07.2019 22:30

auto print JavaScript code
window.print();

Ответить
@alisalehali
@alisalehali - 25.07.2019 22:29

-- code 2
declare
V_SAL_TOTAL number;
V_COMM_TOTAL number;
V_COUNT number;
cursor c_emp is
select
EMPNO,
ENAME,
JOB,
--MGR,
APEX_ITEM.TEXT(4,MGR) MGR,
HIREDATE,
translate(SAL,
'0123456789',
unistr('\0660') || unistr('\0661') || unistr('\0662') ||
unistr('\0663') || unistr('\0664') || unistr('\0665') ||
unistr('\0666') || unistr('\0667') || unistr('\0668') ||
unistr('\0669')) as SAL,
COMM,

translate(DEPTNO,
'0123456789',
unistr('\0660') || unistr('\0661') || unistr('\0662') ||
unistr('\0663') || unistr('\0664') || unistr('\0665') ||
unistr('\0666') || unistr('\0667') || unistr('\0668') ||
unistr('\0669')) as DEPTNO,
APEX_ITEM.TEXT_FROM_LOV_QUERY(DEPTNO,'SELECT DNAME, DEPTNO FROM DEPT') as DEPARTMENT
from
EMP;

begin
select SUM(SAL) ,sum(comm) ,count (DEPTNO)into V_SAL_TOTAL ,V_COMM_TOTAL ,V_COUNT from EMP;
htp.p(
'
<table>
<caption style ="text-align=center;" >Employee Report</caption>
<thead>
<tr>
<th>emplyee number</th>
<th>Employee Name</th>
<th>Job</th>
<th>Manager</th>
<th>Hire Date</th>
<th>Salary </th>
<th>Commetion</th>
<th>Department No </th>
<th>Department Name </th>
</tr>
</thead>
<tbody>

'
);for r_emp in c_emp
loop
htp.p(
'
<tr>
<td>' || r_emp.EMPNO || '</td>
<td>' || r_emp.ENAME || '</td>
<td>' || r_emp.JOB || '</td>
<td>' || r_emp.MGR || '</td>
<td>' || r_emp.HIREDATE || '</td>
<td>' || r_emp.SAL || '</td>
<td>' || r_emp.COMM || '</td>
<td>' || r_emp.DEPTNO || '</td>
<td>' || r_emp.DEPARTMENT || '</td>
</tr>
'
);
end
loop;htp.p(
'


</tbody>
<tfoot>
<tr>
<th colspan="5"> Total</th>
<th>'||V_SAL_TOTAL||'</th>
<th>'||V_COMM_TOTAL||'</th>
<th>'||V_COUNT||'</th>
<th> </th>
</tr>
</tfoot>
</table>
'
);
htp.p (
' <style>
table {
font-family: "Helvetica Neue", Helvetica, sans-serif
}

caption {
text-align: left;
color: silver;
font-weight: bold;
text-transform: uppercase;
padding: 5px;
}

thead {
background: SteelBlue;
color: white;
}

th,
td {
padding: 5px 10px;
}

tbody tr:nth-child(even) {
background: WhiteSmoke;
}

tbody tr td:nth-child(2) {
text-align:center;
}

tbody tr td:nth-child(3),
tbody tr td:nth-child(4) {
text-align: right;
font-family: monospace;
}

tfoot {
background: SeaGreen;
color: white;
text-align: right;
}

tfoot tr th:last-child {
font-family: monospace;
}

</style>'
);
end;

Ответить