Edit & print PCL generated PRN file
-
Hi All, I have .Prn file which was generated out of PCL printer.I need to find a string in that file and then I have to replace it with another string. Iam able to do it by using stream writer,streamreader,Binary reader,binary writer and file streams. But if gave a print(LPR)for it, it get failed and giving me syntax error as Illegal tag. If I print original file it is printing very well. I came to know that while writing it has lost some of its originality ,so it was failed Please help me Thanks in advance
-
Hi All, I have .Prn file which was generated out of PCL printer.I need to find a string in that file and then I have to replace it with another string. Iam able to do it by using stream writer,streamreader,Binary reader,binary writer and file streams. But if gave a print(LPR)for it, it get failed and giving me syntax error as Illegal tag. If I print original file it is printing very well. I came to know that while writing it has lost some of its originality ,so it was failed Please help me Thanks in advance
It sounds like you've done more than just changing the string. I don't know about the format, but maybe just before the string is a tag describing the string and its length? Try replacing just one character in the string - or maybe make one already there be in upper instead of lower case. Yours experimentally, Iain.
Codeproject MVP for C++, I can't believe it's for my lounge posts...
-
It sounds like you've done more than just changing the string. I don't know about the format, but maybe just before the string is a tag describing the string and its length? Try replacing just one character in the string - or maybe make one already there be in upper instead of lower case. Yours experimentally, Iain.
Codeproject MVP for C++, I can't believe it's for my lounge posts...
Hi, Thanks for the reply, The original file size is like 16k, after the editing it becoming as 22k.. more over it is not normal file,It is a file generated by PCL printer. So may be during the conversion it is losing printer supported font. so that's the reason printer cannot understand the file(after editing)to print.so it gives syntax error as Kernel and Illegal tag error. I have no clues to overcome this problem kindly help me
-
Hi, Thanks for the reply, The original file size is like 16k, after the editing it becoming as 22k.. more over it is not normal file,It is a file generated by PCL printer. So may be during the conversion it is losing printer supported font. so that's the reason printer cannot understand the file(after editing)to print.so it gives syntax error as Kernel and Illegal tag error. I have no clues to overcome this problem kindly help me
If the size is changing from 16k to 22k, you're doing a lot more than swapping a string! Just try with baby steps. Tweak one little bit, test, tweak a bigger bit, test, and so on. I've no idea about the format either - this is just general advice. It's worth jumping in the deep end sometimes, but other times you just dip one toe in the water. Iain.
Codeproject MVP for C++, I can't believe it's for my lounge posts...