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.

save signature and rich ink data

3 posts in Pocket PowerBuilder Last posting was on 2003-08-20 07:56:43.0Z
Heino Hellmers Posted on 2003-08-18 16:07:27.0Z
From: "Heino Hellmers" <heino@hellmers.com>
Newsgroups: sybase.public.pocketpowerbuilder
Subject: save signature and rich ink data
Lines: 22
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: pd9ed14d1.dip.t-dialin.net
X-Original-NNTP-Posting-Host: pd9ed14d1.dip.t-dialin.net
Message-ID: <3f40f9bf@forums-1-dub>
Date: 18 Aug 2003 09:07:27 -0700
X-Trace: forums-1-dub 1061222847 217.237.20.209 (18 Aug 2003 09:07:27 -0700)
X-Original-Trace: 18 Aug 2003 09:07:27 -0700, pd9ed14d1.dip.t-dialin.net
Path: forums-1-dub!not-for-mail
Xref: forums-1-dub sybase.public.pocketpowerbuilder:211
Article PK: 266749

Hello

I'am testing the eval of Pocket Powerbuilder. We develop client server
applications with PB till version 4.
With Pocket Powerbuilder we want to use the Rich Ink Control

It looks ok, but we have to save the ink data on Windows CE, transfer this
with ActiveSync to PC and use it in powerbuilder report like normal reports.
Is ist possible ?

1) I think we have to convert the ink data to gif/bmp or somethink like that
? Is it possible ?
2) Is the ink control the best why to edit signature's for a delivery system
?



TIA
Heino Hellmers


Greg Demieville Posted on 2003-08-19 20:21:02.0Z
From: "Greg Demieville" <greg.demieville@brinksinc.com>
Newsgroups: sybase.public.pocketpowerbuilder
References: <3f40f9bf@forums-1-dub>
Subject: Re: save signature and rich ink data
Lines: 72
Organization: Brink's Inc
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2800.1106
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1106
X-Original-NNTP-Posting-Host: obftp.brinksinc.com
Message-ID: <3f4286c5$1@forums-2-dub>
X-Original-Trace: 19 Aug 2003 13:21:25 -0700, obftp.brinksinc.com
X-Original-NNTP-Posting-Host: forums-2-dub.sybase.com
X-Original-Trace: 19 Aug 2003 13:20:20 -0700, forums-2-dub.sybase.com
NNTP-Posting-Host: forums-master.sybase.com
X-Original-NNTP-Posting-Host: forums-master.sybase.com
Date: 19 Aug 2003 13:21:02 -0700
X-Trace: forums-1-dub 1061324462 10.22.108.75 (19 Aug 2003 13:21:02 -0700)
X-Original-Trace: 19 Aug 2003 13:21:02 -0700, forums-master.sybase.com
X-Authenticated-User: ngsysop
Path: forums-1-dub!not-for-mail
Xref: forums-1-dub sybase.public.pocketpowerbuilder:233
Article PK: 266770

We are saving the blob referenced in uf_SendMessageBlob to a .pwi file. Then
we use ActiveSync to convert the .pwi file to .rtf. I have a service on the
ActiveSync server that saves the RTF files into the database. The code to
save to a pwi file is listed below. We modified Reed's code from the samples
he provided on CodeXChange.

I have found no way to display the signature in a report. I am now trying to
use the GDI Api functions bitblt and stretchblt. The results are messed up
when copying the bits to a nested datawindow.
-----------------------------------------------
// Copy the data out of the source control into the destination control.
// This is transferring through a BLOB and saved to the database.
// As far as the control is concerned, this is an array of bytes.
long lDataLen
long iRet
st_data_len.text = ""
blob blobData
string sTemp

// Data length (in bytes)
lDataLen = uf_SendMessageLong( g_hwndInkSrc, IM_GETDATALEN, 0, 0 )
st_data_len.text = "Data Length= " + STRING( lDataLen )

// pre-size the BLOB and retrieve the data
sTemp = Space( lDataLen ) // make a string long enough
blobData = Blob(sTemp) // and make it a blob
iRet = uf_SendMessageBlob( g_hwndInkSrc, IM_GETDATA, lDataLen, blobData )
//blobData passed back by reference

integer li_FileNum
li_FileNum = FileOpen("\My Documents\hey.pwi", StreamMode!, Write!,
LockWrite!, Replace!)
FileWrite(li_FileNum, blobData) // Using blobData from
uf_SendMessageBlob, above
FileClose(li_fileNum)

// Plop this data into the Destination control
uf_SendMessageLong( g_hwndInkDest, IM_CLEARALL, 0, 0 )
iRet = uf_SendMessageBlob( g_hwndInkDest, IM_SETDATA, lDataLen, blobData )

"Heino Hellmers" <heino@hellmers.com> wrote in message
news:3f40f9bf@forums-1-dub...
> Hello
>
> I'am testing the eval of Pocket Powerbuilder. We develop client server
> applications with PB till version 4.
> With Pocket Powerbuilder we want to use the Rich Ink Control
>
> It looks ok, but we have to save the ink data on Windows CE, transfer this
> with ActiveSync to PC and use it in powerbuilder report like normal
reports.
> Is ist possible ?
>
> 1) I think we have to convert the ink data to gif/bmp or somethink like
that
> ? Is it possible ?
> 2) Is the ink control the best why to edit signature's for a delivery
system
> ?
>
>
>
> TIA
> Heino Hellmers
>
>
>


Heino Hellmers Posted on 2003-08-20 07:56:43.0Z
From: "Heino Hellmers" <heino@hellmers.com>
Newsgroups: sybase.public.pocketpowerbuilder
References: <3f40f9bf@forums-1-dub> <3f4286c5$1@forums-2-dub>
Subject: Re: save signature and rich ink data
Lines: 92
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: pd954fa6b.dip.t-dialin.net
X-Original-NNTP-Posting-Host: pd954fa6b.dip.t-dialin.net
Message-ID: <3f4329bb$1@forums-1-dub>
Date: 20 Aug 2003 00:56:43 -0700
X-Trace: forums-1-dub 1061366203 217.84.250.107 (20 Aug 2003 00:56:43 -0700)
X-Original-Trace: 20 Aug 2003 00:56:43 -0700, pd954fa6b.dip.t-dialin.net
Path: forums-1-dub!not-for-mail
Xref: forums-1-dub sybase.public.pocketpowerbuilder:242
Article PK: 266779

Hello,

How can we use ActiveSync to convert the .pwi to rtf and save as blob in the
database ?
Where can we find informations "how to do" it
How can we write aservice on the Activsync Server ?

TIA
Heino Hellmers
S&F Datentechnik

"Greg Demieville" <greg.demieville@brinksinc.com> schrieb im Newsbeitrag
news:3f4286c5$1@forums-2-dub...

> We are saving the blob referenced in uf_SendMessageBlob to a .pwi file.
Then
> we use ActiveSync to convert the .pwi file to .rtf. I have a service on
the
> ActiveSync server that saves the RTF files into the database. The code to
> save to a pwi file is listed below. We modified Reed's code from the
samples
> he provided on CodeXChange.
>
> I have found no way to display the signature in a report. I am now trying
to
> use the GDI Api functions bitblt and stretchblt. The results are messed up
> when copying the bits to a nested datawindow.
> -----------------------------------------------
> // Copy the data out of the source control into the destination control.
> // This is transferring through a BLOB and saved to the database.
> // As far as the control is concerned, this is an array of bytes.
> long lDataLen
> long iRet
> st_data_len.text = ""
> blob blobData
> string sTemp
>
> // Data length (in bytes)
> lDataLen = uf_SendMessageLong( g_hwndInkSrc, IM_GETDATALEN, 0, 0 )
> st_data_len.text = "Data Length= " + STRING( lDataLen )
>
> // pre-size the BLOB and retrieve the data
> sTemp = Space( lDataLen ) // make a string long enough
> blobData = Blob(sTemp) // and make it a blob
> iRet = uf_SendMessageBlob( g_hwndInkSrc, IM_GETDATA, lDataLen, blobData )
> //blobData passed back by reference
>
> integer li_FileNum
> li_FileNum = FileOpen("\My Documents\hey.pwi", StreamMode!, Write!,
> LockWrite!, Replace!)
> FileWrite(li_FileNum, blobData) // Using blobData from
> uf_SendMessageBlob, above
> FileClose(li_fileNum)
>
> // Plop this data into the Destination control
> uf_SendMessageLong( g_hwndInkDest, IM_CLEARALL, 0, 0 )
> iRet = uf_SendMessageBlob( g_hwndInkDest, IM_SETDATA, lDataLen, blobData )
>
>
>
>
> "Heino Hellmers" <heino@hellmers.com> wrote in message
> news:3f40f9bf@forums-1-dub...
> > Hello
> >
> > I'am testing the eval of Pocket Powerbuilder. We develop client server
> > applications with PB till version 4.
> > With Pocket Powerbuilder we want to use the Rich Ink Control
> >
> > It looks ok, but we have to save the ink data on Windows CE, transfer
this
> > with ActiveSync to PC and use it in powerbuilder report like normal
> reports.
> > Is ist possible ?
> >
> > 1) I think we have to convert the ink data to gif/bmp or somethink like
> that
> > ? Is it possible ?
> > 2) Is the ink control the best why to edit signature's for a delivery
> system
> > ?
> >
> >
> >
> > TIA
> > Heino Hellmers
> >
> >
> >
>
>