Re: Print to pdf fails on Windows with multiple pages

2022-03-24 Thread panagiotis m via use-livecode
Hello all,

Thank you for the update and the sample stack/files. I will reopen this bug
report then, and we will investigate further.

Kind regards,
Panos
--

On Thu, 24 Mar 2022 at 15:45, matthias rebbe via use-livecode <
use-livecode@lists.runrev.com> wrote:

> I can replicate this here also with 10DP2.
> And have attached a sample stack so others could also test.
>
> But i could not attach the pdf. I am always getting this error here:
>
> "It looks like you didn't come from the right page (you have no valid
> token for the create_attachment action while processing the
> 'attachment.cgi' script). The reason could be one of:
> You clicked the "Back" button of your web browser after having
> successfully submitted changes, which is generally not a good idea (but
> harmless).
> You entered the URL in the address bar of your web browser directly, which
> should be safe.
> You clicked on a URL which redirected you here without your consent, in
> which case this action is much more critical.
> Are you sure you want to commit these changes anyway? This may result in
> unexpected and undesired results"
>
>
> So i uploaded it on my server and added a url to it.
>
>
> Regards,
> Matthias
>
>
> > Am 24.03.2022 um 12:18 schrieb panagiotis m via use-livecode <
> use-livecode@lists.runrev.com>:
> >
> > Hello Andreas,
> >
> > This sounds like this bug
> https://quality.livecode.com/show_bug.cgi?id=23088,
> > which should be fixed in LC 9.6.6 RC-1 and newer.
> >
> > If this is not the case for you, could you attach a sample stack and the
> > pdf to this report and reopen it? Or send it to me directly if they are
> > confidential. Also, it might be worth checking with the 32bit version of
> LC
> > for Windows
> >
> > Kind regards,
> > Panos
> > --
> >
> >> .com/mailman/listinfo/use-livecode
> >>
> > ___
> > use-livecode mailing list
> > use-livecode@lists.runrev.com
> > Please visit this url to subscribe, unsubscribe and manage your
> subscription preferences:
> > http://lists.runrev.com/mailman/listinfo/use-livecode
>
>
> ___
> use-livecode mailing list
> use-livecode@lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your
> subscription preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode
>
___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


Re: Print to pdf fails on Windows with multiple pages

2022-03-24 Thread matthias rebbe via use-livecode
I can replicate this here also with 10DP2. 
And have attached a sample stack so others could also test.

But i could not attach the pdf. I am always getting this error here:

"It looks like you didn't come from the right page (you have no valid token for 
the create_attachment action while processing the 'attachment.cgi' script). The 
reason could be one of:
You clicked the "Back" button of your web browser after having successfully 
submitted changes, which is generally not a good idea (but harmless).
You entered the URL in the address bar of your web browser directly, which 
should be safe.
You clicked on a URL which redirected you here without your consent, in which 
case this action is much more critical.
Are you sure you want to commit these changes anyway? This may result in 
unexpected and undesired results"


So i uploaded it on my server and added a url to it.


Regards,
Matthias


> Am 24.03.2022 um 12:18 schrieb panagiotis m via use-livecode 
> :
> 
> Hello Andreas,
> 
> This sounds like this bug https://quality.livecode.com/show_bug.cgi?id=23088,
> which should be fixed in LC 9.6.6 RC-1 and newer.
> 
> If this is not the case for you, could you attach a sample stack and the
> pdf to this report and reopen it? Or send it to me directly if they are
> confidential. Also, it might be worth checking with the 32bit version of LC
> for Windows
> 
> Kind regards,
> Panos
> --
> 
>> .com/mailman/listinfo/use-livecode
>> 
> ___
> use-livecode mailing list
> use-livecode@lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your subscription 
> preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode


___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


Re: Print to pdf fails on Windows with multiple pages

2022-03-24 Thread Andreas Bergendal via use-livecode
Hi Panos,

Interesting, I had not seen that bug report. Yes, it’s the same issue, and 
unfortunately it seems not fully solved in 9.6.x.

I tried using 9.6.7 rc 2 Win 32bit and built both a 32bit and 64bit standalone, 
but neither did any better really. They can sometimes succeed on first run to 
create the full pdf, but after that it seems Windows calls it a day and refuses 
to repeat the effort.

Since the stack/data is indeed confidential, I’ll make it available to you 
through other channels.

Best,
Andreas


Panos wrote:
> This sounds like this bug https://quality.livecode.com/show_bug.cgi?id=23088, 
> which should be fixed in LC 9.6.6 RC-1 and newer.

> If this is not the case for you, could you attach a sample stack and the
> pdf to this report and reopen it? Or send it to me directly if they are
> confidential. Also, it might be worth checking with the 32bit version of LC
> for Windows
___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


Re: Print to pdf fails on Windows with multiple pages

2022-03-24 Thread panagiotis m via use-livecode
Hello Andreas,

This sounds like this bug https://quality.livecode.com/show_bug.cgi?id=23088,
which should be fixed in LC 9.6.6 RC-1 and newer.

If this is not the case for you, could you attach a sample stack and the
pdf to this report and reopen it? Or send it to me directly if they are
confidential. Also, it might be worth checking with the 32bit version of LC
for Windows

Kind regards,
Panos
--

On Thu, 24 Mar 2022 at 12:08, Andreas Bergendal via use-livecode <
use-livecode@lists.runrev.com> wrote:

> Hi all,
>
> TL;DR:
> App/IDE crashes/fails when printing 30+ pages to single pdf, using Windows
> 10. Works fine on Mac. Windows memory issues?
>
>
> Long version:
> I have a stack/app where a crucial feature is printing to pdf.
>
> Om Mac (LC 9.6.6 or 9.6.7 rc1) this works flawlessly with 156 posts,
> resulting in a 312 page pdf file (around 4Mb):
>
> ---
> set the printScale to 0.714286 ## This matches the A4 proportion of the
> printed area
> set the printMargins to 0,0,0,0
>
> open printing to pdf tFilename ## tFilename has been defined earlier in
> the process
>
> repeat for each line tLine in pKeyList ## pKeyList is a list of numerical
> keys
>fillFieldsWithData tLine ## This updates several fields on the card
> with new data from an array
>print card 1 from the topLeft of grc "page1" to the bottomRight of grc
> ”page1” ## An A4-shaped rect
>print break
>print card 1 from the topLeft of grc "page2" to the bottomRight of grc
> ”page2” ## An A4-shaped rect
>print break
> end repeat
>
> close printing ## (I also un/lock screen at appropriate places around this
> script, for speed)
> ---
>
> On Windows 10, which is what my client is using, this happens:
> - If run in the IDE, it sometimes manages to created the pdf, but usually
> fails (”printing failed” error), sometimes crashes LC silently
> - If run as standalone, it can create a pdf with max 15-20 posts (2x
> pages), but if I try more then it stalls and fails, or crashes.
>
> Another feature in the app is creating the 156 pdfs individually, and this
> works flawlessly also on Windows.
> So it’s creating the combined pdf that seems too taxing for poor old
> Windows, most of the time. The client needs both features to work.
>
> Is this ”memory exhaustion” (saw that term mentioned by LCMark in the
> Forum on a different pdf problem)?
>
> What can be done about it? Can I force Windows to dedicate more memory to
> my app?
>
> I’ve tried having the pdf created on C:, on a USB stick and in SharePoint
> (the client’s preferred destination), but all fail equally.
>
> Please advise! :)
>
> Best,
> Andreas
> ___
> use-livecode mailing list
> use-livecode@lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your
> subscription preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode
>
___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode