PROFESSIONAL NEWSGROUPS
WINDEV
,
WEBDEV
and
WINDEV Mobile
Home
|
Recent messages
|
Connect
|
Sign out
|
English
Home
→
WEBDEV 2024
→
PDF print with custom papersize
PDF print with custom papersize
Started by Lukas, Nov., 29 2017 7:25 PM - 2 replies
Connect yourself…
Lukas
#1
Posted on November, 29 2017 - 7:25 PM
When setting the Paper size to "Custom" and print to pdf it takes always A4 for generating the pdf.
If I set the paper size to A3 or letter it works, the only problem is with "custom".
-> Windows Server 2016
What's wrong here ? Any ideas ?
Report
0
0
Lukas
#2
Posted on November, 30 2017 - 9:26 AM
iParameter returns in production -1
Report
0
0
Lukas
#3
Posted on November, 30 2017 - 12:12 PM
As a workaround setting up a printer which supports the custom page format and set it manually before printing does the trick:
iConfigure
(
"YourWindowsPrintername"
)
AFile
=
fWebDir
(
)
+
"\Test.pdf"
iDestination
(
iPDF
,
AFile
)
iPrintReport
(
RPT_Test
)
FileDisplay
(
AFile
,
"application/pdf"
)
Hopefully this helps someone out, instead of wasting hours.
Report
0
0
→ Go back to WEBDEV 2024
WINDEV 2024
WEBDEV 2024
WINDEV Mobile 2024
WINDEV (earlier versions)
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