Sybase NNTP forums - End Of Life (EOL)

The NNTP forums from Sybase - forums.sybase.com - are now closed.

All new questions should be directed to the appropriate forum at the SAP Community Network (SCN).

Individual products have links to the respective forums on SCN, or you can go to SCN and search for your product in the search box (upper right corner) to find your specific developer center.

FileWrite Function!!

6 posts in Pocket PowerBuilder Last posting was on 2003-09-30 16:09:12.0Z
Mohit Chanana Posted on 2003-09-26 22:44:52.0Z
From: "Mohit Chanana" <NOSPAM_sas@sasintl.com>
Newsgroups: sybase.public.pocketpowerbuilder
Subject: FileWrite Function!!
Lines: 37
MIME-Version: 1.0
Content-Type: multipart/alternative; boundary="----=_NextPart_000_000A_01C38455.46976780"
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2800.1158
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1165
NNTP-Posting-Host: 209.8.120.210
X-Original-NNTP-Posting-Host: 209.8.120.210
Message-ID: <3f74c164$2@forums-1-dub>
Date: 26 Sep 2003 15:44:52 -0700
X-Trace: forums-1-dub 1064616292 209.8.120.210 (26 Sep 2003 15:44:52 -0700)
X-Original-Trace: 26 Sep 2003 15:44:52 -0700, 209.8.120.210
Path: forums-1-dub!not-for-mail
Xref: forums-1-dub sybase.public.pocketpowerbuilder:613
Article PK: 267147

How can we create an ANSI file from filewrite function ?? or Can WE.......

Thanks in Advance!!
 
-Mohit


Reed Shilts [Sybase] Posted on 2003-09-29 15:31:32.0Z
From: "Reed Shilts [Sybase]" <reed.dot.shilts.at.sybase.dot.com>
Newsgroups: sybase.public.pocketpowerbuilder
Subject: Re: FileWrite Function!!
Organization: Sybase
Message-ID: <jnjgnv47auc7v82vmkjcrlpu8fbf21d6on@4ax.com>
References: <3f74c164$2@forums-1-dub>
X-Newsreader: Forte Agent 1.93/32.576 English (American)
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
NNTP-Posting-Host: rshilts.sybase.com
X-Original-NNTP-Posting-Host: rshilts.sybase.com
Date: 29 Sep 2003 08:31:32 -0700
X-Trace: forums-1-dub 1064849492 10.18.61.76 (29 Sep 2003 08:31:32 -0700)
X-Original-Trace: 29 Sep 2003 08:31:32 -0700, rshilts.sybase.com
Lines: 18
X-Authenticated-User: techsupp
Path: forums-1-dub!not-for-mail
Xref: forums-1-dub sybase.public.pocketpowerbuilder:618
Article PK: 267158

There is a sample in the manuals - you need to convert the string
(unicode) into an ANSI blob with something like "toAnsi()".
Then write out file in binary mode.
HTH,
Reed Shilts
PPB Development Manager
<Standard-Disclaimers-Apply/>


On 26 Sep 2003 15:44:52 -0700, "Mohit Chanana"

<NOSPAM_sas@sasintl.com> wrote:

>How can we create an ANSI file from filewrite function ?? or Can WE.......
>
>Thanks in Advance!!
>
>-Mohit


Mohit Chanana Posted on 2003-09-29 15:46:04.0Z
From: "Mohit Chanana" <NOSPAM_sas@sasintl.com>
Newsgroups: sybase.public.pocketpowerbuilder
References: <3f74c164$2@forums-1-dub> <jnjgnv47auc7v82vmkjcrlpu8fbf21d6on@4ax.com>
Subject: Re: FileWrite Function!!
Lines: 35
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2800.1158
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1165
NNTP-Posting-Host: 209.8.120.210
X-Original-NNTP-Posting-Host: 209.8.120.210
Message-ID: <3f7853bc@forums-1-dub>
Date: 29 Sep 2003 08:46:04 -0700
X-Trace: forums-1-dub 1064850364 209.8.120.210 (29 Sep 2003 08:46:04 -0700)
X-Original-Trace: 29 Sep 2003 08:46:04 -0700, 209.8.120.210
Path: forums-1-dub!not-for-mail
Xref: forums-1-dub sybase.public.pocketpowerbuilder:619
Article PK: 267152

Reed I've read the example in manuals; my problem is that the file needs to
be written in LineMode and not in StreamMode. Here is the dilemma; we are
working on a Barcode Printer which needs a series of label formatting
commands to be sent to its com port as an ANSI file. When writing in
SteamMode PPB puts the whole chunk of data in one line ignoring CR's and
LF's. Hence we need LineMode to achive the desired resultset. Is it possible
to use ToAnsi() to write to a LineMode file?

Thanks!!

-Mohit

"Reed Shilts [Sybase]" <reed.dot.shilts.at.sybase.dot.com> wrote in message
news:jnjgnv47auc7v82vmkjcrlpu8fbf21d6on@4ax.com...
> There is a sample in the manuals - you need to convert the string
> (unicode) into an ANSI blob with something like "toAnsi()".
> Then write out file in binary mode.
> HTH,
> Reed Shilts
> PPB Development Manager
> <Standard-Disclaimers-Apply/>
>
>
> On 26 Sep 2003 15:44:52 -0700, "Mohit Chanana"
> <NOSPAM_sas@sasintl.com> wrote:
>
> >How can we create an ANSI file from filewrite function ?? or Can
WE.......
> >
> >Thanks in Advance!!
> >
> >-Mohit
>


Mohit Chanana Posted on 2003-09-29 16:16:09.0Z
From: "Mohit Chanana" <NOSPAM_sas@sasintl.com>
Newsgroups: sybase.public.pocketpowerbuilder
References: <3f74c164$2@forums-1-dub> <jnjgnv47auc7v82vmkjcrlpu8fbf21d6on@4ax.com>
Subject: Re: FileWrite Function!!
Lines: 27
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2800.1158
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1165
NNTP-Posting-Host: 209.8.120.210
X-Original-NNTP-Posting-Host: 209.8.120.210
Message-ID: <3f785ac9$1@forums-1-dub>
Date: 29 Sep 2003 09:16:09 -0700
X-Trace: forums-1-dub 1064852169 209.8.120.210 (29 Sep 2003 09:16:09 -0700)
X-Original-Trace: 29 Sep 2003 09:16:09 -0700, 209.8.120.210
Path: forums-1-dub!not-for-mail
Xref: forums-1-dub sybase.public.pocketpowerbuilder:621
Article PK: 267154

Aahh, Sorry my fault.... I was using FromUnicode() instead of ToAnsi().

Thanks for your help.

"Reed Shilts [Sybase]" <reed.dot.shilts.at.sybase.dot.com> wrote in message
news:jnjgnv47auc7v82vmkjcrlpu8fbf21d6on@4ax.com...
> There is a sample in the manuals - you need to convert the string
> (unicode) into an ANSI blob with something like "toAnsi()".
> Then write out file in binary mode.
> HTH,
> Reed Shilts
> PPB Development Manager
> <Standard-Disclaimers-Apply/>
>
>
> On 26 Sep 2003 15:44:52 -0700, "Mohit Chanana"
> <NOSPAM_sas@sasintl.com> wrote:
>
> >How can we create an ANSI file from filewrite function ?? or Can
WE.......
> >
> >Thanks in Advance!!
> >
> >-Mohit
>


Reed Shilts [Sybase] Posted on 2003-09-30 14:40:22.0Z
From: "Reed Shilts [Sybase]" <reed.dot.shilts.at.sybase.dot.com>
Newsgroups: sybase.public.pocketpowerbuilder
Subject: Re: FileWrite Function!!
Organization: Sybase
Message-ID: <e35jnv05le1rqah3bhh696uvn1ia9slf1u@4ax.com>
References: <3f74c164$2@forums-1-dub> <jnjgnv47auc7v82vmkjcrlpu8fbf21d6on@4ax.com> <3f785ac9$1@forums-1-dub>
X-Newsreader: Forte Agent 1.93/32.576 English (American)
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
NNTP-Posting-Host: rshilts.sybase.com
X-Original-NNTP-Posting-Host: rshilts.sybase.com
Date: 30 Sep 2003 07:40:22 -0700
X-Trace: forums-1-dub 1064932822 10.18.61.76 (30 Sep 2003 07:40:22 -0700)
X-Original-Trace: 30 Sep 2003 07:40:22 -0700, rshilts.sybase.com
Lines: 40
X-Authenticated-User: techsupp
Path: forums-1-dub!not-for-mail
Xref: forums-1-dub sybase.public.pocketpowerbuilder:641
Article PK: 267175

So you are printing to your barcode printer from
your PPB application?

That is something people would like to hear about.
Regards,
Reed Shilts
PPB Develoment Manager
<Standard-Disclaimers-Apply/>


On 29 Sep 2003 09:16:09 -0700, "Mohit Chanana"

<NOSPAM_sas@sasintl.com> wrote:

>Aahh, Sorry my fault.... I was using FromUnicode() instead of ToAnsi().
>
>Thanks for your help.
>
>"Reed Shilts [Sybase]" <reed.dot.shilts.at.sybase.dot.com> wrote in message
>news:jnjgnv47auc7v82vmkjcrlpu8fbf21d6on@4ax.com...
>> There is a sample in the manuals - you need to convert the string
>> (unicode) into an ANSI blob with something like "toAnsi()".
>> Then write out file in binary mode.
>> HTH,
>> Reed Shilts
>> PPB Development Manager
>> <Standard-Disclaimers-Apply/>
>>
>>
>> On 26 Sep 2003 15:44:52 -0700, "Mohit Chanana"
>> <NOSPAM_sas@sasintl.com> wrote:
>>
>> >How can we create an ANSI file from filewrite function ?? or Can
>WE.......
>> >
>> >Thanks in Advance!!
>> >
>> >-Mohit
>>
>


Mohit Chanana Posted on 2003-09-30 16:09:12.0Z
From: "Mohit Chanana" <NOSPAM_sas@sasintl.com>
Newsgroups: sybase.public.pocketpowerbuilder
References: <3f74c164$2@forums-1-dub> <jnjgnv47auc7v82vmkjcrlpu8fbf21d6on@4ax.com> <3f785ac9$1@forums-1-dub> <e35jnv05le1rqah3bhh696uvn1ia9slf1u@4ax.com>
Subject: Re: FileWrite Function!!
Lines: 75
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2800.1158
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1165
NNTP-Posting-Host: 209.8.120.210
X-Original-NNTP-Posting-Host: 209.8.120.210
Message-ID: <3f79aaa8@forums-1-dub>
Date: 30 Sep 2003 09:09:12 -0700
X-Trace: forums-1-dub 1064938152 209.8.120.210 (30 Sep 2003 09:09:12 -0700)
X-Original-Trace: 30 Sep 2003 09:09:12 -0700, 209.8.120.210
Path: forums-1-dub!not-for-mail
Xref: forums-1-dub sybase.public.pocketpowerbuilder:645
Article PK: 267179

Surely,

We are using Zebra Cameo 3 (Bluetooth) barcode printer with our application.
The Printer expects label formatting commands to be sent thru Com Port (In
case of BlueTooth use COM8:) in an ANSI formatted file. The label printing
commands are very easy to understand and are supplied on a programmers
manual with the printer.

Typical Example of a Label Ansi File

! 0 200 200 839 1 // Sets the Resolution and
Size of Label
CONTRAST 0 // Sets Print Contrast
TONE 0 // Sets Ink Tone
SPEED 3 // Sets Print Speed
COUNTRY USA // Sets Language Selection
T 4 0 14 30 Part 401RD4F57 // Prints text "Part 401RD4F57" (4 0
14 30 = Font Size X Y )
B 128 2 0 75 14 110 401RD4F57 // Prints Barcode "401RD4F57" (128 2 0 75
14 110 = BarcodeType Width Ration Height X Y)
BOX 0 10 520 230 1 // Draws a Box Around Text and
Barcode
PRINT // Instructs Printer to
Print


HTH

-Mohit

"Reed Shilts [Sybase]" <reed.dot.shilts.at.sybase.dot.com> wrote in message
news:e35jnv05le1rqah3bhh696uvn1ia9slf1u@4ax.com...
> So you are printing to your barcode printer from
> your PPB application?
>
> That is something people would like to hear about.
> Regards,
> Reed Shilts
> PPB Develoment Manager
> <Standard-Disclaimers-Apply/>
>
>
> On 29 Sep 2003 09:16:09 -0700, "Mohit Chanana"
> <NOSPAM_sas@sasintl.com> wrote:
>
> >Aahh, Sorry my fault.... I was using FromUnicode() instead of ToAnsi().
> >
> >Thanks for your help.
> >
> >"Reed Shilts [Sybase]" <reed.dot.shilts.at.sybase.dot.com> wrote in
message
> >news:jnjgnv47auc7v82vmkjcrlpu8fbf21d6on@4ax.com...
> >> There is a sample in the manuals - you need to convert the string
> >> (unicode) into an ANSI blob with something like "toAnsi()".
> >> Then write out file in binary mode.
> >> HTH,
> >> Reed Shilts
> >> PPB Development Manager
> >> <Standard-Disclaimers-Apply/>
> >>
> >>
> >> On 26 Sep 2003 15:44:52 -0700, "Mohit Chanana"
> >> <NOSPAM_sas@sasintl.com> wrote:
> >>
> >> >How can we create an ANSI file from filewrite function ?? or Can
> >WE.......
> >> >
> >> >Thanks in Advance!!
> >> >
> >> >-Mohit
> >>
> >
>