Digital Workshop

Welcome to the Digital Workshop Message Boards
It is currently December 23rd, 2024, 8:42 am

All times are UTC [ DST ]




Post new topic Reply to topic  [ 11 posts ] 
Author Message
 Post subject: Scrtiped Print Action works in Preview but not when Publishd
PostPosted: December 17th, 2007, 9:41 pm 
Offline

Joined: December 2nd, 2004, 4:03 pm
Posts: 56
Location: California, (USA)
Opus: Pro 7.6
OS: Vista 64
System: Vista 64, HP, 6GB RAM. Basically "Out of the box" with no special graphics. Very robust.
I'm using Opus Pro 5.5, and 6.0; the problem occurs in both versions.

Problem:

I've created a Print Action using a script. The script is located in a Style page.

When I test it in Preview mode, it works fine. The Printer Dialog box is displayed, and I can use the mouse to continue the action, or cancel the print action.

When I Publish the same publication, and test the same print action, the Printer Dialog box appears, however, the mouse is blocked from passing over the Printer Dialog box. The only way to print, and close the Dialog box is by using the keyboard.

If I use the internal Print Action, it works fine in Preview mode, and in when published, so obviously there is a short-coming in the scripting capabilities.

This is somewhat disturbing because I've assumed that the Published
version should operate the same as the Preview; that is obviously not true in every case.

Am I missing something ? Is there some way to resolve this issue ?

I was hoping the V6 would resolve it, but that didn't happen.

I'm open to any suggestions.....

Steve Hawley


Top
 Profile Visit website  
 
 Post subject:
PostPosted: December 18th, 2007, 9:39 am 
Offline

Joined: November 25th, 2004, 1:24 pm
Posts: 512
Location: Scotland
Opus: 9.75
OS: Win 10
System: Asus i7-7700K 16Gb
Can you attach an imp to demonstrate the problem?? or the script you are using.

Sandy

_________________
Whoever designed this, never actually used it!


Top
 Profile  
 
 Post subject:
PostPosted: December 18th, 2007, 3:06 pm 
Offline

Joined: December 2nd, 2004, 4:03 pm
Posts: 56
Location: California, (USA)
Opus: Pro 7.6
OS: Vista 64
System: Vista 64, HP, 6GB RAM. Basically "Out of the box" with no special graphics. Very robust.
Hi Sandy,

The attached file is an example of the printer problem that I'm having..

Thanks,
Steve


You do not have the required permissions to view the files attached to this post.


Top
 Profile Visit website  
 
 Post subject:
PostPosted: December 18th, 2007, 3:47 pm 
Offline

Joined: November 25th, 2004, 1:24 pm
Posts: 512
Location: Scotland
Opus: 9.75
OS: Win 10
System: Asus i7-7700K 16Gb
Can you post the actual IMP. I can't try anything with the EXE. I noticed that a double hand appears as soon as I mouse over the text...it that a custom cursor or part of the problem?.


If I have the IMP, I can have a play with it. If you prefer...mail it to me.

Rgds

Sandy

_________________
Whoever designed this, never actually used it!


Top
 Profile  
 
 Post subject:
PostPosted: December 18th, 2007, 5:07 pm 
Offline

Joined: December 2nd, 2004, 4:03 pm
Posts: 56
Location: California, (USA)
Opus: Pro 7.6
OS: Vista 64
System: Vista 64, HP, 6GB RAM. Basically "Out of the box" with no special graphics. Very robust.
Woops.....

Sorry, I thought I sent the IMP.... this attachment is the IMP, only.

The double-cursor is a relic of creating the the sample IMP. I removed
it, and the Print Action still fails.

Thanks,
Steve :oops:


You do not have the required permissions to view the files attached to this post.


Top
 Profile Visit website  
 
 Post subject:
PostPosted: December 18th, 2007, 7:23 pm 
Offline

Joined: November 25th, 2004, 1:24 pm
Posts: 512
Location: Scotland
Opus: 9.75
OS: Win 10
System: Asus i7-7700K 16Gb
No good news so far I'm afraid.
At first I thought it was something to do with the way you were passing the parameter to the PrintPage script, but then I created a new and very basic pub with two pages.... button on the first page to print the second page.

PrintPage("Page_2",true,true)
with exactly the same result. Works in preview, not when published.
However PrintObject seems to work fine. Can you use this as an workaround in some way???

_________________
Whoever designed this, never actually used it!


Top
 Profile  
 
 Post subject:
PostPosted: December 18th, 2007, 7:41 pm 
Offline

Joined: November 25th, 2004, 1:24 pm
Posts: 512
Location: Scotland
Opus: 9.75
OS: Win 10
System: Asus i7-7700K 16Gb
I tried
PrintPage(ThePage,false,true) and this seems to work fine---do you really need the cancel dialogue??

Sandy

_________________
Whoever designed this, never actually used it!


Top
 Profile  
 
 Post subject:
PostPosted: December 20th, 2007, 12:23 am 
Offline

Joined: December 2nd, 2004, 4:03 pm
Posts: 56
Location: California, (USA)
Opus: Pro 7.6
OS: Vista 64
System: Vista 64, HP, 6GB RAM. Basically "Out of the box" with no special graphics. Very robust.
Hmmmm.... I poste a reply yesterday, but I don't see it..

Anyway, the Printer Dialog box is necessary to allow the user to
select the printer, or cancel. The cancel-while-printing is not necessary.

I was hoping that there was some error in my coding, but since it appears to be okay, I'll have to replace the scripted print function, with the
internal Print Action. I'll have to do this to several other publications.
It's a pain.

Since the scripted print works fine in Preview mode, but not when the publication is published, it's obvious that there is a bug in Pro 5, and 6.

I hope DW can fix this; it doesn't seem like a terribly difficult chore, since it fails consistently, and obviously. I was hoping the problem would be resolved in V6, but that didn't happen.

Anyway, thanks for your help !

Steve


Top
 Profile Visit website  
 
 Post subject: It's the 'Greens'
PostPosted: December 21st, 2007, 2:45 pm 
Offline
Godlike
Godlike

Joined: November 12th, 2005, 1:56 am
Posts: 1474
Location: SFBay Area
Opus: OpusPro v9.0x, & Evol.
OS: Vista32
System: Core 2 duo 2Ghz, RAM 3GB, Nvidia Go 7700 - laptop
Steve,

It's got to be the 'greens'. Save the trees, the water-beetles, etc. Less printing saves lives.

Try this.
Insert a regular (non-Master page) in somewhere before your current page. For test purposes, just put some 'liberal' :) text sample on it.

Then publish and test your print.

( I think it's the 'minus 1' on Button 3146 script. )
Quote:
var EBJ_CurPicPageName=GetPage(EBJ_CurPicPageNo-1)


I did a test... Web type pub which did print to PDF output successfully.

good hunting,
Lar

_________________
_good things come to those who wait(0)_


Top
 Profile  
 
 Post subject:
PostPosted: December 21st, 2007, 6:42 pm 
Offline

Joined: December 2nd, 2004, 4:03 pm
Posts: 56
Location: California, (USA)
Opus: Pro 7.6
OS: Vista 64
System: Vista 64, HP, 6GB RAM. Basically "Out of the box" with no special graphics. Very robust.
Hi Lar,

I tried what you suggested, and it still fails; in the exe version, I'm not able to move the mouse over the Printer Dialog box.

I also tried removing the "-1" logic, and replaced the exisitng script with
the literal name of the page, i.e., PrintPage("Page_021_",true), and it
still fails.

The page prints fine, it's just that I can't choose the printer, and/or cancel the print job using the Printer dialog box.

Again, it does work fine in Preview mode, but not in the published mode.

I did notice that in the exe version, when I click the Red button the
Printer Dialog box is displayed, and then if I print the Green button (which uses the internal Print Action), the exe goes into limbo and is inop. So, obviously there is a conflict between the internal Print Action, and the scripted PrintPage() function.

Thanks for your help !

Steve

P.S.

Astobeing'green',I'vefoundthatIcanconservepaperifIremoveallofthespacesbetweenthelettersonthepage.


Top
 Profile Visit website  
 
 Post subject:
PostPosted: February 7th, 2009, 12:24 am 
Offline
Godlike
Godlike

Joined: November 12th, 2005, 1:56 am
Posts: 1474
Location: SFBay Area
Opus: OpusPro v9.0x, & Evol.
OS: Vista32
System: Core 2 duo 2Ghz, RAM 3GB, Nvidia Go 7700 - laptop
By way of update.

Quote:
Problem (as described within the Pub):

Using a script:

In Preview Mode, if you click the Red button, the Printer Dialog box will
appear, and, using the mouse, you are able to click OK, or Cancel

When you Publish the publication, and do the same thing, the Printer Dialog will appear, but the mouse is blocked from passing-over the Dialog box.

I have the same results with Pro 5, and 6, on three different machines.

If I use the internal Print Action, instead of a script, as with the Green button, then everything works fine.


I just tried the attachment above, published it without change, and it works fine. The 'Red Button' with Opus Script prints as intended.

This is Feb '09. I am using OpusPro v6.4 on Vista Home Premium. (BTW, not sure if it makes any difference, but I had downloaded and manually installed the 'new' Opus Plexus Plugin in January.)

The DW crew are 'world fixers' evidently.

[Lar Edit 0207] Maybe not as simple as I thought. There is another post discussing 'external print' issues. On my system/configuration, I do have MS Office 2003 (w/Access DB) installed. So maybe the 'ability to print' is tethered to MS Office as discussed...
viewtopic.php?t=651&postdays=0&postorder=asc&highlight=print+html2&start=45

_________________
_good things come to those who wait(0)_


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 11 posts ] 

All times are UTC [ DST ]


Who is online

Users browsing this forum: No registered users and 25 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group