PC SOFT

GRUPOS DE DISCUSSÃO PROFISSIONAL
WINDEVWEBDEV e WINDEV Mobile

Inicio → WINDEV 2024 → Change destiny by default of preview report - save Pdf
Change destiny by default of preview report - save Pdf
Iniciado por Tiago Mortinho, set., 08 2021 7:24 PM - 1 resposta
Publicado em setembro, 08 2021 - 7:24 PM
Good afternoon.

When I preview a report is run, there is the possibility of creating a pdf file from it.
Is it possible to be able to associate a destination by default?

Or in other words, direct immediately to a specific place where to save?

Best Regard
Membro registado
54 mensagems
Popularité : +2 (2 votes)
Publicado em setembro, 10 2021 - 10:29 AM
Hello Tiago,
you can use this code:

sFileName is string
sFileName="C:\mypath\myfile.pdf"

iDestination(iPDF, sFileName)
iPrintReport(RPT_MyReport)

Hope this helps
Andrea