Skip to main content

Search

Search

Print Code - Replace With Script

Comments

3 comments

  • Avatar
    Ian Cummings
    Moderator

    The PCM script you have there is only going to work on ASCII characters.  Trying to read in binary data and then writing back in ASCII is probably what's going wrong.  Why would you need to read/write graphic data any how?  Depending on whether the printer supports it, choose a readable encoding for graphic data in the printer driver.  If you tell me the make/model of the printer, I can tell you if it's supported and how to do it.

    0
  • Avatar
    Legacy Poster

    Hi Ian,

     

    what I want to do is to replace all "#999#" in the print code with "[SER:001]".

    Now I tried the replace function - everything is fine now.

     

    Just for information - I use a CAB printer, use the commander, make text files to print the label.

     

    Thanks for the update...maybe you have a solution using the vb code.

    If not it's also no problem, because it's working now

    0
  • Avatar
    Ian Cummings
    Moderator

    I suppose you would need to use the ReadBytes() and WriteBytes() functions to maintain compatibility with the binary data.  However, this will increase the complexity of your script, so I'd keep with the replace function if it's working well for you.  Unfortunately there is only the PCX binary graphics encoding for cab printers available to us, so that option will not work in this case.  Sorry, I don't have a read/write by bytes PCM script example to give you.

    0

Please sign in to leave a comment.