Your Products have been synced, click here to refresh
Sub[SIZE=2][COLOR=#000000] Main(strFileName [/COLOR][/SIZE][SIZE=2][COLOR=#0000ff][SIZE=2][COLOR=#0000ff]As[/COLOR][/SIZE][/COLOR][/SIZE][SIZE=2][COLOR=#000000] [/COLOR][/SIZE][SIZE=2][COLOR=#0000ff][SIZE=2][COLOR=#0000ff]String[/COLOR][/SIZE][/COLOR][/SIZE][SIZE=2][COLOR=#000000])[/COLOR] [/SIZE][SIZE=2][COLOR=#007f00][SIZE=2][COLOR=#007f00]'assign ARG1= Report Location In script Line after SHOW=YES [/COLOR][/SIZE][/COLOR][/SIZE][SIZE=2]Shell "C:\Program Files\Adobe\Reader 10.0\Reader\AcroRd32.exe " & strFileName [/SIZE][SIZE=2][COLOR=#0000ff][SIZE=2][COLOR=#0000ff]End[/COLOR][/SIZE][/COLOR][/SIZE][SIZE=2][COLOR=#000000] [/COLOR][/SIZE][SIZE=2][COLOR=#0000ff][SIZE=2][COLOR=#0000ff]Sub [COLOR=#000000][/COLOR]
Yeah, if I can get the report to show up. The input box needs to be satisfied before you are able to even try to look at the report.
That box won't allow a whole of anything to happen before it's dealt with.
Sub[SIZE=2][COLOR=#000000] Main(strFileName [/COLOR][/SIZE][SIZE=2][COLOR=#0000ff][SIZE=2][COLOR=#0000ff]As[/COLOR][/SIZE][/COLOR][/SIZE][SIZE=2][COLOR=#000000] [/COLOR][/SIZE][SIZE=2][COLOR=#0000ff][SIZE=2][COLOR=#0000ff]String[/COLOR][/SIZE][/COLOR][/SIZE][SIZE=2][COLOR=#000000])[/COLOR] [/SIZE][SIZE=2][COLOR=#007f00][SIZE=2][COLOR=#007f00]'assign ARG1= Report Location In script Line after SHOW=YES [/COLOR][/SIZE][/COLOR][/SIZE][SIZE=2]Shell "C:\Program Files\Adobe\Reader 10.0\Reader\AcroRd32.exe " & strFileName [/SIZE][SIZE=2][COLOR=#0000ff][SIZE=2][COLOR=#0000ff]End[/COLOR][/SIZE][/COLOR][/SIZE][SIZE=2][COLOR=#000000] [/COLOR][/SIZE][SIZE=2][COLOR=#0000ff][SIZE=2][COLOR=#0000ff]Sub [COLOR=#000000][/COLOR]
^ that script will open the pdf file after execute.
There is a way to open an OLE object onto your report. I don't know how to make it a variable controlled one. I will play around with this and see if I can come up with something.
[/COLOR][/SIZE][/COLOR][/SIZE]
This (along with Wes's suggestion) just might work. If I can get the specific PDF to open right after it runs, that would save is a TON of headache.
Now, I am not a script wizard, so I may need to be spoon-fed on how to use your script. I get everything but the green portion...
Thanks.
$$ NO,==================================================== ,PDF File View after Save & Print Function ,==================================================== PDF_VIEW =SCRIPT/FILENAME= C:\PC-DMIS\4_3\BASIC SCRIPTS\PDF VIEW AFTER EXECUTE.BAS FUNCTION/Main,SHOW=NO,[COLOR=#ff0000][B]ARG1=STR(RPTPATH+NAME),, [/B][/COLOR]
the green portion is the part of the program where you call the script.
$$ NO,==================================================== ,PDF File View after Save & Print Function ,==================================================== PDF_VIEW =SCRIPT/FILENAME= C:\PC-DMIS\4_3\BASIC SCRIPTS\PDF VIEW AFTER EXECUTE.BAS FUNCTION/Main,SHOW=NO,[COLOR=#ff0000][B]ARG1=STR(RPTPATH+NAME),, [/B][/COLOR]
Red text is where you have to assign the report save location.
© 2024 Hexagon AB and/or its subsidiaries. | Privacy Policy | Cloud Services Agreement |