Hier diskutieren die Betatester von PhotoLine untereinander und mit den Entwicklern
Martin Huber
Entwickler
Beiträge: 4176 Registriert: Di 19 Nov 2002 15:49
Beitrag
von Martin Huber » Mo 10 Dez 2018 16:26
PhilM hat geschrieben: ↑ So 09 Dez 2018 12:38
Error message box is sometime too small to read the entire message
I will check that.
Martin
PhilM
Mitglied
Beiträge: 171 Registriert: Do 28 Mai 2015 18:00
Wohnort: Belgium
Beitrag
von PhilM » Do 13 Dez 2018 10:17
Martin Huber wrote :
doc.Paste doesn't take any parameters. It will always insert after the active layer.
doc.Paste should have at least an option to paste a virtual copy.
Or there should be an other method like "doc.PasteVirtual" without option ?
Philippe
Martin Huber
Entwickler
Beiträge: 4176 Registriert: Di 19 Nov 2002 15:49
Beitrag
von Martin Huber » Do 13 Dez 2018 16:29
PhilM hat geschrieben: ↑ Do 13 Dez 2018 10:17
Martin Huber wrote :
doc.Paste doesn't take any parameters. It will always insert after the active layer.
doc.Paste should have at least an option to paste a virtual copy.
Or there should be an other method like "doc.PasteVirtual" without option ?
You can do that with PhotoLine.Page's DuplicateVirtual().
Martin
PhilM
Mitglied
Beiträge: 171 Registriert: Do 28 Mai 2015 18:00
Wohnort: Belgium
Beitrag
von PhilM » Do 13 Dez 2018 22:18
Martin Huber hat geschrieben: ↑ Do 13 Dez 2018 16:29
PhilM hat geschrieben: ↑ Do 13 Dez 2018 10:17
Martin Huber wrote :
doc.Paste doesn't take any parameters. It will always insert after the active layer.
doc.Paste should have at least an option to paste a virtual copy.
Or there should be an other method like "doc.PasteVirtual" without option ?
You can do that with PhotoLine.Page's DuplicateVirtual().
Martin
In the VBScript manual (odt) delivered with 21.40b6, Page does not have a DuplicateVirtual() method.
Layer has a DuplicateVirtual
Did you mean Layer ?
Could you put an up-to-date pdf of the script manual somewhere on the forum ?
Regards
Philippe
Martin Huber
Entwickler
Beiträge: 4176 Registriert: Di 19 Nov 2002 15:49
Beitrag
von Martin Huber » Do 13 Dez 2018 22:26
PhilM hat geschrieben: ↑ Do 13 Dez 2018 22:18 In the VBScript manual (odt) delivered with 21.40b6, Page does not have a DuplicateVirtual() method.
Layer has a DuplicateVirtual
Did you mean Layer ?
Yes, of course, I did mean that.
PhilM hat geschrieben: ↑ Do 13 Dez 2018 22:18 Could you put an up-to-date pdf of the script manual somewhere on the forum ?
If it contains the Paste documentation, then it is up to date.
The latest beta should always contain the latest documentation.
Martin
PhilM
Mitglied
Beiträge: 171 Registriert: Do 28 Mai 2015 18:00
Wohnort: Belgium
Beitrag
von PhilM » Fr 14 Dez 2018 09:36
Martin Huber hat geschrieben: ↑ Do 13 Dez 2018 22:26
PhilM hat geschrieben: ↑ Do 13 Dez 2018 22:18 Could you put an up-to-date pdf of the script manual somewhere on the forum ?
If it contains the Paste documentation, then it is up to date.
The latest beta should always contain the latest documentation.
Martin
Yes, it does contain a fresh version of the Open Office manual.
But the hyperlinks inside the document do not work when opened with MS Office.
It would be nice to include the relative pdf version also.
Thanks
Philippe
PhilM
Mitglied
Beiträge: 171 Registriert: Do 28 Mai 2015 18:00
Wohnort: Belgium
Beitrag
von PhilM » Fr 14 Dez 2018 17:46
Group
I tried to create a new empty group with :
Set grp = CreateObject("PhotoLine.Group")
It generates an error
Is there a way to do it ?
And later on, to populate the group with new layers.
Philippe
russellcottrell
Mitglied
Beiträge: 251 Registriert: Sa 26 Jul 2014 10:13
Wohnort: California
Beitrag
von russellcottrell » Fr 14 Dez 2018 18:14
I found this out by trial and error; the default layer seems to be a group:
Code: Alles auswählen
var pl = new ActiveXObject("PhotoLine.Application");
var doc = pl.ActiveDocument;
var gLayer = new ActiveXObject("PhotoLine.Layer");
doc.RootLayer.Insert(gLayer, -1);
PhilM
Mitglied
Beiträge: 171 Registriert: Do 28 Mai 2015 18:00
Wohnort: Belgium
Beitrag
von PhilM » Fr 14 Dez 2018 18:47
russellcottrell hat geschrieben: ↑ Fr 14 Dez 2018 18:14
I found this out by trial and error; the default layer seems to be a group:
Code: Alles auswählen
var pl = new ActiveXObject("PhotoLine.Application");
var doc = pl.ActiveDocument;
var gLayer = new ActiveXObject("PhotoLine.Layer");
doc.RootLayer.Insert(gLayer, -1);
Yes, it does work
In VBScript :
Code: Alles auswählen
...
Set grp = CreateObject("PhotoLine.Layer")
doc.RootLayer.Insert grp, -1
PhilM
Mitglied
Beiträge: 171 Registriert: Do 28 Mai 2015 18:00
Wohnort: Belgium
Beitrag
von PhilM » So 16 Dez 2018 10:58
Help needed !
I am working on a multi-page document.
I can't find how to move from page to page : Next/Previous, First/Last or to move to a specific page number.
The only piece of script I found is :
Dim page
Set page = doc.ActivePage
But that does not bring me very far ...
Thanks
Philippe
russellcottrell
Mitglied
Beiträge: 251 Registriert: Sa 26 Jul 2014 10:13
Wohnort: California
Beitrag
von russellcottrell » So 16 Dez 2018 18:14
On a related note, in browsers you can list all the properties of an object like this:
Code: Alles auswählen
var objShell = new ActiveXObject("WScript.Shell");
for (var propertyName in doc)
objShell.Popup(propertyName);
But it doesn’t do anything in PhotoLine.
PhilM
Mitglied
Beiträge: 171 Registriert: Do 28 Mai 2015 18:00
Wohnort: Belgium
Beitrag
von PhilM » So 16 Dez 2018 21:26
russellcottrell hat geschrieben: ↑ So 16 Dez 2018 18:14
On a related note, in browsers you can list all the properties of an object like this:
Code: Alles auswählen
var objShell = new ActiveXObject("WScript.Shell");
for (var propertyName in doc)
objShell.Popup(propertyName);
But it doesn’t do anything in PhotoLine.
Not familiar with js
I converted it in VBScript
And got a Type error with the objShell.Popup
Can you solve it ?
Code: Alles auswählen
Dim pl, doc
Set pl = CreateObject("PhotoLine.Application")
Set doc = pl.ActiveDocument
pl.Visible = True
Dim objShell
Set objShell = CreateObject("WScript.Shell")
Dim propertyName
for Each propertyName in doc
objShell.Popup propertyName
Next
russellcottrell
Mitglied
Beiträge: 251 Registriert: Sa 26 Jul 2014 10:13
Wohnort: California
Beitrag
von russellcottrell » So 16 Dez 2018 22:07
WScript.Shell is for javascript. In vbscript, just do
PhilM
Mitglied
Beiträge: 171 Registriert: Do 28 Mai 2015 18:00
Wohnort: Belgium
Beitrag
von PhilM » So 16 Dez 2018 23:22
russellcottrell hat geschrieben: ↑ So 16 Dez 2018 22:07
WScript.Shell is for javascript. In vbscript, just do
Same
It looks like propertyName is not text
Martin Huber
Entwickler
Beiträge: 4176 Registriert: Di 19 Nov 2002 15:49
Beitrag
von Martin Huber » Mo 17 Dez 2018 10:34
PhilM hat geschrieben: ↑ So 16 Dez 2018 10:58 I am working on a multi-page document.
I can't find how to move from page to page : Next/Previous, First/Last or to move to a specific page number.
You can do
Martin