PROFESSIONAL NEWSGROUPS
WINDEV
,
WEBDEV
and
WINDEV Mobile
Home
|
Recent messages
|
Connect
|
Sign out
|
English
Home
→
WINDEV 25
→
Controle Html para visualizar PDF
Controle Html para visualizar PDF
Started by Boller, Mar., 28 2024 4:04 AM - No answer
Connect yourself…
Boller
#1
Registered member
3,659 messages
Popularité : +175 (223 votes)
Posted on March, 28 2024 - 4:04 AM
Pode ser usado nos 3 WX (Windev, Webdev e Windev Mobile)
Edt_Path = “teste.pdf”
sbase64 is Buffer
=
floadbuffer
(
Edt_Path
)
sbase64
=
Encode
(
sbase64
,
encodeBASE64
)
meuhtml is string
=
[
<
!
DOCTYPE html
>
<
html lang
=
"en"
>
<
head
>
<
meta charset
=
"UTF-8"
>
<
title
>
i9sistemas
<
/
title
>
<
style
>
/* Remove margens e paddings do body */
body, html {
margin: 0;
padding: 0;
height: 100%;
overflow: hidden; /* Remove a barra de rolagem se não for necessário */
}
/* Define o iframe para ocupar toda a tela */
iframe {
width: 100vw;
height: 100vh;
border: none; /* Remove a borda do iframe */
}
<
/
style
>
<
/
head
>
<
body
>
<
iframe src
=
"data:application/pdf;base64,[%sbase64%]"
>
<
/
iframe
>
<
/
body
>
<
/
html
>
]
HTM_i9=meuhtml
Muito obrigado Paulo Viana da i9 sistemas
100% funcional
--
Adriano José Boller
______________________________________________
Consultor e Representante Oficial da
PcSoft no Brasil
+55 (41) 99949 1800
adrianoboller@gmail.com
skype: adrianoboller
http://wxinformatica.com.br/
Report
1
0
→ Go back to WINDEV 25
WINDEV 25
Français
English
Español
Portuguesa
Close this window
Search type
Only topics
All the messages
Search period
Any time
Past hour
Past 24 hours
Past week
Past month
Past year
Cancel
Preview of your message
Adding an image
Import an image from a URL
Send an image from a file of your disk
Drop a file or click "Browse..."
or
Cancel
0%
WLanguage
SQL
XML, HTML
JAVA, Javascript
Text