Inserting The Contents Of A File - Not Working? S’abonner

0
Avatar
Legacy Poster

Hi,

 

I do not get this feature to work: 

 

"The user command dialog has a limit of 255 characters per command.  Sometimes

this is not long enough for the desired user commands.  You may specify user
commands longer than 255 characters by creating a text file containing the
desired printer commands.  You may also use this capability to change the
contents of the file dynamically from an external program or batch file.


To insert the contents of a file, enter the function character, a question
mark [?] and the full path of the file. For example, if the caret [^] is the
function character, then to insert the contents of c:\user\mycommand.txt, you
would enter ^?c:\user\mycommand.txt.  Any function characters present in
the inserted file will still be processed"

 

The Printer driver is cab xc6 (300dpi) v7.3.3

 

 

 

Regards Erik

 

5 commentaires

0
Avatar
Ian Einman
Actions pour les commentaires Permalien

If you are using an external file as the source of the user command, the ^? syntax needs to be the only thing present, you can't put other commands in front of it like your example.  Sorry that the documentation is not clear on this point.

0
Avatar
Legacy Poster
Actions pour les commentaires Permalien

Tried that still not working.

0
Avatar
Ian Einman
Actions pour les commentaires Permalien

I just tried it and it did work.  Try making sure that there is no trailing space or carriage return after the file name, and see if the file name is accessible to all users, rather than just the current user.  (The print spooler runs under a different user account so strict file permissions may foul it up.)

0
Avatar
Legacy Poster
Actions pour les commentaires Permalien

Thank you for a quick reply. Unfortunatly I still don not get it to work. I have checked access right to file and path. I have tried both ^?C:\CAB\EROI1.txt and ^?\\Ksd263\cab\EROI1.txt. If I add the command directly in the dialog it works fine. Is there any other option that should be set? 

 

File content EROI1.txt:

 

T 16,20,0,3,12;Ethanol

 

Output file:

 

mi
zO
d PCX;LOGO-0
<ESC>.
<Binary>
d PCX;LOGO-1
<ESC>.
<Binary>
J
OH0,P
H2.953,0,D
Sl1;0,0,11,11.123,12.807
I9.487,1.04,0;LOGO-0
I3.083,1.04,0;LOGO-1
A1
e PCX;LOGO-0
e PCX;LOGO-1
0
Avatar
Ian Einman
Actions pour les commentaires Permalien

It still could be an access rights issue to C:\CAB.  Vista, Win7 and later can be picky about how that is set up.  Try putting the file under your "My Documents" temporarily just to see if that is the issue.

 

Another thing that might make it fail is if another application has the file locked.  If you have it open in another editor, close it.  Try rebooting if you haven't already.  If what you're trying to do is create the file dynamically from some other program, maybe that other program isn't closing it.

 

Beyond that I'm out of ideas, the code behind this feature is quite simple.  The only apparently undocumented limitation is that the ^? must be the first two characters of the user command, there can't be anything in front of it.

Vous devez vous connecter pour laisser un commentaire.