Welcome to Pintexx Forum Sign in | Join | Faq

pinEdit WP

Started by mwsteidl at 01-24-2008 7:23 . Topic has 12 replies.

Print Search
Sort Posts:    
   01-24-2008, 7:23
mwsteidl is not online. Last active: 23.01.2008 18:33:04 mwsteidl

Top 100 Posts
Joined on 01-22-2007
Posts 5
XMLT Toolbar issues
Reply Quote
I want to use the XML toolbar - the recommended way for 6.x, the documentation says. But I feel a bit lost:
- First I edited the XML toolbar file which came with the download in the directory of my NET-exe file (the parent to the \editor sub-tree) - I deleted all PDF functions.
- I've set "ModeToolbar" to XML, launched the application: no change, PDF is present. (Btw: XML is missing from the Description of ModeToolbar in the Help file.)
- Then I wanted to set the ToolbarXMLPath in the Properties: typed it in, pressed Enter - the entry disappeared.
- Ok, set it by code: added pedit1.ToolbarXMLPath = "f:\toolbar.xml"; to the Load event handler for PinEdit - no success. (I've moved a copy to the root directory of drive F: !)
- I moved a copy of my edited file to ....\editor\mode\WP\config directory (UserMode = WordProcessor) - no success.

Now I've run out of ideas how to tame the toolbar. Any clues? Shall I turn back the the

Michael


   Report 
   01-25-2008, 8:43
Pintexx Support is not online. Last active: 30.12.2008 07:11:54 Pintexx Support

Top 10 Posts
Joined on 08-30-2005
Posts 1.576
Re: XMLT Toolbar issues
Reply Quote
Michael,

could you please tell me which technology you are using ?

The default XML files are in editor/mode/xxx/config/toolbar.xml.

You have to set ModeToolbar" to XML and
ToolbarXMLPath.

For this there should be a sample in evaluation.

Please try the original files first. Then modify.


Regards,
Hans-Peter
   Report 
   01-25-2008, 10:41
mwsteidl is not online. Last active: 23.01.2008 18:33:04 mwsteidl

Top 100 Posts
Joined on 01-22-2007
Posts 5
Re: XMLT Toolbar issues
Reply Quote
Hans-Peter:
- I removed the PinEdit control from my test application (I'm using VS2005, SP1, with Vista extensions - running on Vista)
- I removed all files from the bin\Debug folder of this application, including the "editor" subdirectories
- I copied all files from the bin directory of the downloaded Pinedit 6.1.0.1026 distribution - thus making it a clean new enviroment.
- I added the PinEdit control
- changed ModeToolbar to "XML"
- applied the full path of the ...\editor\mode\wp\config subdirectory to the ToolbarXMLPath property: By some magic its content is changed to a sequence of XML tags.
- started the application: IE throws a script error.
- The same happens if I apply the path to my modified toolbar.xml

The ToolbarXMLPath holds the full serialized XML from the toolbar.xml, exactly the same as in the ToolbarXMLString property - is this right?
Finally: if I switch back to ModeToolbar = "Internal" no script error is thrown but also no toolbar is visible, only a white spot.

Michael

   Report 
   01-25-2008, 11:47
Pintexx Support is not online. Last active: 30.12.2008 07:11:54 Pintexx Support

Top 10 Posts
Joined on 08-30-2005
Posts 1.576
Re: XMLT Toolbar issues
Reply Quote
Michael,

you have to set the full file path that points to the file like

editor.ToolbarXMLPath = "c:\temp\toolbar.xml"

Regards,
Hans-Peter

   Report 
   01-25-2008, 1:16
mwsteidl is not online. Last active: 23.01.2008 18:33:04 mwsteidl

Top 100 Posts
Joined on 01-22-2007
Posts 5
Re: XMLT Toolbar issues
Reply Quote
Hans-Peter

I did apply the full path - but I don't want to bore people with my local directories leading to the editor directory. I copied and pasted the path from the Explorer - should not be wrong. And apparently the toolbox.xml file was found at its content was read into the ToobarXMLPath property.

Questions:

- should the serialized XML of toolbar.xml appear in the ToolbarXMLPath property? Or is this wrong.

- what is the purpose of the ToolbarXMLString property? Can it be set while loading the PinNet component? If this is the case I could do this by my code (reading in the XML, seralizing it, storing it to this property).
 

Michael




   Report 
   01-28-2008, 9:34
Pintexx Support is not online. Last active: 30.12.2008 07:11:54 Pintexx Support

Top 10 Posts
Joined on 08-30-2005
Posts 1.576
Re: XMLT Toolbar issues
Reply Quote
Michael,

the serialized XML is read from ToolbarXMLPath, right.

Use ToolbarXMLString when you have the XML already in memory.
If you read the XML file into a string and pass it to ToolbarXMLString you will have the same effect.

Regards,
Hans-Peter
   Report 
   01-28-2008, 10:59
mwsteidl is not online. Last active: 23.01.2008 18:33:04 mwsteidl

Top 100 Posts
Joined on 01-22-2007
Posts 5
Re: XMLT Toolbar issues
Reply Quote
Hans-Peter

I tried to get the Toolbar working another time:
- I applied the full path to the toolbar.xml delivered with PinEdit to the ToolbarXMLpath property: result at start up = script error
- I read the full XML of this file into a string, stored it into ToolbarXMLstring at the Load event of PinEdit: result at start up = script error

The toolbar.xml file in the ....\editor\mode\wp\config directory is of 12.6.2007 - is this the latest version? I've got the feeling this file does not work properly.

Michael




   Report 
   01-28-2008, 11:26
mwsteidl is not online. Last active: 23.01.2008 18:33:04 mwsteidl

Top 100 Posts
Joined on 01-22-2007
Posts 5
Re: XMLT Toolbar issues
Reply Quote
Hans-Peter

Strange things: in a final round of testing for today I decided to try it the other way round: I copied my modified toolbar.xml into the bin directory of your VBasic evaluation example - and instantly it worked without a glitch, it showed exactly the set of buttons it should show - and not script error was thrown.

As I use C# as VS2005 programming language may this be the reason for the problems? I see that the PinEdit NET component is apparently programmed in VBasic may there be compatibility issues?

Michael


   Report 
   01-29-2008, 10:53
mwsteidl is not online. Last active: 23.01.2008 18:33:04 mwsteidl

Top 100 Posts
Joined on 01-22-2007
Posts 5
Re: XMLT Toolbar issues
Reply Quote
Hans-Peter
addition to the posting above: the URL displayed with the script error is:
file:///F:/...manyDirectories../editor/pinEdit.html?
lng=EN&style=Office2003&af=0&hm=1&me=1&hb=1&aa=1&dv=1&ru=1&sib=1&stb=1&um=1&rm=wp&dow=794&tbx=1

Maybe this can help identifying the source.

Michael

   Report 
   01-29-2008, 7:27
Pintexx Support is not online. Last active: 30.12.2008 07:11:54 Pintexx Support

Top 10 Posts
Joined on 08-30-2005
Posts 1.576
Re: XMLT Toolbar issues
Reply Quote
Michael,

there is no dependancy of language.

Regards,
Hans-Peter
   Report 
   01-29-2008, 9:17
mwsteidl is not online. Last active: 23.01.2008 18:33:04 mwsteidl

Top 100 Posts
Joined on 01-22-2007
Posts 5
Re: XMLT Toolbar issues
Reply Quote
Hans-Peter
Now I've ported the example code from your VB sample application to switch the component to the XML toolbar to C#:
pedit1.ModeToolbar = Pintexx.Components.Desktop.pinEdit.pinEditWinFormControl.enToolbarConfiguration.XML;
pedit1.ToolbarXMLPath = "..\\..\\toolbar-nit1.xml";
And this works !!! hurray  - almost ...
Two issues:
1) apparently the Load event of the PinEdit component is never fired (put my code above there first only to find it was never excuted)
2) more troublesome: As soon as I apply an explicit path to EditorDirectory and I execute this code above PinEdit/IE throws an error saying the file <path>\editor\pinEdit.html does not exist.
The same error is thrown if I do the same in your VB example: apply the path to the application's bin directory to EditorDirectory - and the error message pops up. This appears to be a general error.

Further I just detected this: if you apply in your VB example the path to a toolbar XML file to ToolbarXMLPath exactly the same  error as described in previous postings is shown: Script Error in the pinEdit.html page. Try it yourself.

So your are right, this is not a NET language issue, this is an error in the PinEdit component, sorry.

Michael



   Report 
   01-30-2008, 10:43
Pintexx Support is not online. Last active: 30.12.2008 07:11:54 Pintexx Support

Top 10 Posts
Joined on 08-30-2005
Posts 1.576
Re: XMLT Toolbar issues
Reply Quote
Michael,

we do not have any of the mentioned problems.

Could you please prepare a simple test project with your code and sent to support@pintexx.com ?

Regards,
Hans-Peter
   Report 
   01-31-2008, 12:34
mwsteidl is not online. Last active: 23.01.2008 18:33:04 mwsteidl

Top 100 Posts
Joined on 01-22-2007
Posts 5
Re: XMLT Toolbar issues
Reply Quote
Hans-Peter
as said, I applied these settings to the Visual-Basic project which was delivered with the PinEdit download package.

I will pack this into a ZIP and send it to you

Michael


   Report 
Pintexx Forum » Developer Produ... » pinEdit WP » XMLT Toolbar issues