Click here to Skip to main content
15,897,968 members
Home / Discussions / Visual Basic
   

Visual Basic

 
QuestionButton handler Pin
fxcapt31-Oct-07 12:15
fxcapt31-Oct-07 12:15 
AnswerRe: Button handler Pin
Luc Pattyn31-Oct-07 12:28
sitebuilderLuc Pattyn31-Oct-07 12:28 
GeneralRe: Button handler Pin
fxcapt31-Oct-07 13:18
fxcapt31-Oct-07 13:18 
GeneralRe: Button handler Pin
Luc Pattyn31-Oct-07 14:11
sitebuilderLuc Pattyn31-Oct-07 14:11 
GeneralRe: Button handler Pin
fxcapt31-Oct-07 16:17
fxcapt31-Oct-07 16:17 
QuestionRead/Write PCL Pin
Fingerstyler31-Oct-07 11:52
Fingerstyler31-Oct-07 11:52 
AnswerRe: Read/Write PCL Pin
Dave Kreskowiak1-Nov-07 14:24
mveDave Kreskowiak1-Nov-07 14:24 
GeneralRe: Read/Write PCL Pin
Fingerstyler1-Nov-07 16:13
Fingerstyler1-Nov-07 16:13 
You are correct HP Printer Control Language.

The file would be a mix of ASCII text and binary bits for fonts, graphics, control codes etc.

a string in (bold) (hex not bold) may look like:

2A743330 30521B2A 72343133 73383854 1B2A7231 411B2A62 324D1B2A 623657D5 *t300R.*r413s88T.*r1A.*b2M.*b6WÕ
00FFFFFB 001B2A62 3857D600 0001FFFF FB001B2A 623857D6 000201FF FEFB001B .ÿÿû..*b8WÖ...ÿÿû..*b8WÖ...ÿþû..


same string out ends up like:

2A743330 30521B2A 72343133 73383854 1B2A7231 411B2A62 324D1B2A 623657EF *t300R.*r413s88T.*r1A.*b2M.*b6Wï
BFBD00EF BFBDEFBF BDEFBFBD 001B2A62 3857EFBF BD000001 EFBFBDEF BFBDEFBF ¿½.���..*b8W�...��ï¿


So upto the byte before hex D5 in this case everyting is OK after that its downhill. Several different approaches with litte difference although using example below changing Default to ASCII and all the other options had some effect but not good.

Dim btFile As Byte()
btFile = System.Text.Encoding.Default.GetBytes(sText)

Where sText was the input string from reading the pcl.
GeneralRe: Read/Write PCL Pin
Dave Kreskowiak1-Nov-07 17:48
mveDave Kreskowiak1-Nov-07 17:48 
GeneralRe: Read/Write PCL Pin
Fingerstyler5-Nov-07 9:00
Fingerstyler5-Nov-07 9:00 
QuestionSQL Assistance with ISNULL Pin
digicd131-Oct-07 9:27
digicd131-Oct-07 9:27 
AnswerRe: SQL Assistance with ISNULL Pin
pmarfleet31-Oct-07 10:07
pmarfleet31-Oct-07 10:07 
GeneralRe: SQL Assistance with ISNULL Pin
digicd131-Oct-07 10:38
digicd131-Oct-07 10:38 
GeneralRe: SQL Assistance with ISNULL Pin
pmarfleet31-Oct-07 10:50
pmarfleet31-Oct-07 10:50 
QuestionList Boxes Pin
dexter970331-Oct-07 8:59
dexter970331-Oct-07 8:59 
AnswerRe: List Boxes Pin
Dave Kreskowiak31-Oct-07 9:48
mveDave Kreskowiak31-Oct-07 9:48 
GeneralRe: List Boxes Pin
dexter970331-Oct-07 10:37
dexter970331-Oct-07 10:37 
GeneralRe: List Boxes Pin
dexter970331-Oct-07 11:08
dexter970331-Oct-07 11:08 
QuestionAnyone know what creates this ugly thing? Pin
cstrader23231-Oct-07 8:39
cstrader23231-Oct-07 8:39 
AnswerRe: Anyone know what creates this ugly thing? Pin
Dave Kreskowiak31-Oct-07 9:45
mveDave Kreskowiak31-Oct-07 9:45 
AnswerRe: Anyone know what creates this ugly thing? Pin
Luc Pattyn31-Oct-07 10:05
sitebuilderLuc Pattyn31-Oct-07 10:05 
AnswerRe: Anyone know what creates this ugly thing? Pin
Paul Conrad31-Oct-07 14:06
professionalPaul Conrad31-Oct-07 14:06 
QuestionVB6 YO VB.NET Pin
s3rro31-Oct-07 7:37
s3rro31-Oct-07 7:37 
AnswerRe: VB6 YO VB.NET Pin
AliAmjad31-Oct-07 8:03
AliAmjad31-Oct-07 8:03 
GeneralRe: VB6 YO VB.NET Pin
s3rro31-Oct-07 10:23
s3rro31-Oct-07 10:23 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.