PC SOFT

FOROS PROFESIONALES
WINDEVWEBDEV y WINDEV Mobile

Inicio → WINDEV 2024 → [WD19] Export buttons in print preview
[WD19] Export buttons in print preview
Iniciado por guest, 06,feb. 2015 11:21 - 7 respuestas
Publicado el 06,febrero 2015 - 11:21
Hi all,

in my software, I make reports with a preview. In some cases the export buttons work as they should and in some other cases they doesn't work. You can click on the buttons (i.e. Export to PDF), I can see that the button is pressed, but nothing happens.

The problem is now, I cannot find any differences in the use of the print preview, so why it works some time and why sometimes not. The use (or not) of iParameterPreview() seems not to help.

Anyone who can point me in the right direction ?
Publicado el 09,febrero 2015 - 09:03
Hi,

Did you already use the debugger for this particular problem?
When you click the the PDF button, your report code will run again.

Kind regards,
Joris.
Publicado el 09,febrero 2015 - 14:56
Hi Joris,

thanks for your response. I will jump into it, as soon as I have the time for it.
Publicado el 11,febrero 2015 - 02:40
Any update on this?

I just run into this problem. Was working in earlier versions.

iPreview(i100)
iPrintReport(RPT_Report1)

Exports (PDF/Word) are ignored.

I'm sure I can find a work-around, but Murphy's Law of course, I need his asap
Publicado el 11,febrero 2015 - 03:45
Yes, well, this export function is a bit strange.

When *debugging* - it started working - but then would not work again.

For today - I have a work-around. Create a "duplicate" from the iPreview window. Then open the duplicate - and export that to PDF (well, does what I need for today only).

This might have more to do with Windows (8.1 with WinDev 19) - dunno - guessing at the moment - but if I have time to investigate this properly I'll update this thread.
Publicado el 11,febrero 2015 - 08:47
Derek,

does this happen after you compiled a new version or in currently used exectables too?
And on 1 particular workstation/pc or on several/all?
Publicado el 12,febrero 2015 - 12:16
Hi Derek,

in fact, I do work with Windows8.1 (and WD19) too.
But I haven't yet tested it via debugging because of busy with other things.
Publicado el 12,febrero 2015 - 15:47
Hello Stefan

I don't know why you have the problem, but in terms of the preview window, which is just a locked black box, the solution generally proposed is to keep the original button, make it invisible and park it off to the side and then replace it with one of your own.

Regards
Al