IMPORTANT ANNOUNCEMENT

These forums were permanently set to read-only mode on July 20, 2022. From that day onwards, no new posting or comment is allowed on the site, but the historical content remains intact and searchable.

A new location for posting questions about PlanetPress Suite is now available:

OL Learn - PlanetPress Classic (opens in new tab)

Topic Options
#23829 - 01/20/06 11:43 AM Printer Trigger using XML
Jobin.G Offline
Member

Registered: 03/15/04
Posts: 68
Loc: Qu
Hi,

We are actually using Line Printer Emulation with our PP documents. The trigger we actually use look like this :

%!PS-Adobe
(DOC) run DOC


But here is the problem, we want to switch to an XML Emulation, but when we Add our trigger to the file, PlanetPress crashes with the folowing error:

Exception ExmlParseException dans le module PPress.exe

Top
#23830 - 01/20/06 12:02 PM Re: Printer Trigger using XML
Anonymous
Unregistered


Hello,

The trigger line is Postscript code that is basically read and discarded afterwards by the printer. When designing a document in PlanetPress you should never have the trigger present. The trigger should only be added when sending jobs to a printer resident document.

In the case of line printer, having the trigger there does not make the data file invlaid, however, in XML, having those 2 lines will make your data file invlaid XML.

When sending the XML data to a printer with a resisent form, these 2 lines will not cause a problem since the printer discards them after reading.

Top
#23831 - 01/20/06 12:26 PM Re: Printer Trigger using XML
Jobin.G Offline
Member

Registered: 03/15/04
Posts: 68
Loc: Qu
Thank you for answering so fast.

I'm happy to learn that the printer discard those lines and make the file valid.

Here's a suggestion :

It would be a nice feature to the XML emulation to be able to discard the N first lines of the file during devlopment only.

Is'nt it ?

Thanks

Guillaume Jobin

Top
#23832 - 01/20/06 12:31 PM Re: Printer Trigger using XML
Anonymous
Unregistered


Hello,

I will pass on your suggestion.

Also, I want to clarify the "discard" statement. The printer does not just discard those lines as if they were useless.

The first line tells the printer to shift in Postscript mode and the second line calls the form off the printer's hard drive. When you have a document that is printer resident, this trigger must proceed the data for the document to be called.

What I meant by discard was that once the lines are read and executed by the printer's processor, they are then removed from the data file. So when you design a document in PlanetPress, you do not have to design your document around the fact there is 2 lines there.

Top
#23833 - 01/20/06 02:59 PM Re: Printer Trigger using XML
Jobin.G Offline
Member

Registered: 03/15/04
Posts: 68
Loc: Qu
That's what I understood.

Thank you.

Top


Moderator:  OL Newsgroup Support