Open PDF once created
Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller
Open PDF once created
I have a process that creates a PDF then puts the output path into a new substack that has a browser widget.
The problem is sometimes the PDF is still in the process of being created after the Browser substack is opened causing browser widget to fail to displaying it.
Is there away to only open the substack once the pdf has been created ? Any ideas TIA
The problem is sometimes the PDF is still in the process of being created after the Browser substack is opened causing browser widget to fail to displaying it.
Is there away to only open the substack once the pdf has been created ? Any ideas TIA
-
- Livecode Opensource Backer
- Posts: 9444
- Joined: Fri Feb 19, 2010 10:17 am
- Location: Bulgaria
Re: Open PDF once created
Presumably your PDF creation script needs a wait statement in it until the whole process has completed.
Re: Open PDF once created
Yeah I kinda thought the same thing, but how are you able to determine the creation process has finished in order to continue I guess is the question.
-
- VIP Livecode Opensource Backer
- Posts: 9709
- Joined: Wed May 06, 2009 2:28 pm
- Location: New York, NY
Re: Open PDF once created
I am not sure, but this does not make sense to me. Someone like Richard will pipe in about whether LC, being single-threaded, can go off creating something like a PDF, at the same time it is opening and running scripts in another stack.The problem is sometimes the PDF is still in the process of being created after the Browser substack is opened
Interested in the comments to come...
Craig
-
- Livecode Opensource Backer
- Posts: 9444
- Joined: Fri Feb 19, 2010 10:17 am
- Location: Bulgaria
Re: Open PDF once created
You'd think that'd make sense: but I wonder as 2 stacks are involved . . .LC, being single-threaded
Re: Open PDF once created
I should also probably mention this is for a windows standalone. It is only on other customers computers I am seeing this I believe it is because they are slower PCs. I have added a refresh button on the card so if the PDF is not loaded into the browser they can manually load it as a work around.
Re: Open PDF once created
Found the issue, I was doing something dumb passing the set widget parameter after launching browser stack. Adjusted that and working as intended. Thanks for looking.
-
- VIP Livecode Opensource Backer
- Posts: 9709
- Joined: Wed May 06, 2009 2:28 pm
- Location: New York, NY
Re: Open PDF once created
Brudders.
Glad it worked out. Most of my issues are forehead-slappers, and only after making myself believe that it could not possibly be me.
But I am still interested in finding out about the original postulate, that is, does this:
Craig
Glad it worked out. Most of my issues are forehead-slappers, and only after making myself believe that it could not possibly be me.
But I am still interested in finding out about the original postulate, that is, does this:
actually make any sense?The problem is sometimes the PDF is still in the process of being created after the Browser substack is opened causing browser widget to fail to displaying it.
Craig