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.

RTE and picture format

2 posts in Last posting was on 2010-06-16 11:28:10.0Z
Marek Posted on 2010-06-16 09:05:58.0Z
Sender: 66ac.4c188d90.1804289383@sybase.com
From: Marek
Newsgroups: sybase.public.powerbuilder.rte
Subject: RTE and picture format
X-Mailer: WebNews to Mail Gateway v1.1t
Message-ID: <4c1893f6.67f9.1681692777@sybase.com>
NNTP-Posting-Host: 10.22.241.41
X-Original-NNTP-Posting-Host: 10.22.241.41
Date: 16 Jun 2010 02:05:58 -0700
X-Trace: forums-1-dub 1276679158 10.22.241.41 (16 Jun 2010 02:05:58 -0700)
X-Original-Trace: 16 Jun 2010 02:05:58 -0700, 10.22.241.41
Lines: 21
Path: forums-1-dub!not-for-mail
Xref: forums-1-dub sybase.public.powerbuilder.rte:348
Article PK: 791896

Hi all,
I've problem with RTE control and picture format.

I insert picture into RTE as PNG (I try it with JPG also):
rte_1.InsertPicture(pathToFile,3)

Next, save rtf:
rte_1.CopyRTF(false) and update on MSSQL 2005.

When I load document from DB by SELECTBLOB and insert it to
RTE by PasteRTF() everythink works OK.
When I look at rtf document I see picture saved as PNG
({\pict\pngblip...).

But when I now change something on RTE control (ex. font
size) and save them, picture format change to WMF
({\pict\wmetafile8...).

How can I save all picture in rtf as PNG (or JPG) format?

Marek


Marek Posted on 2010-06-16 11:28:10.0Z
Sender: 66ac.4c188d90.1804289383@sybase.com
From: Marek
Newsgroups: sybase.public.powerbuilder.rte
Subject: Re: RTE and picture format
X-Mailer: WebNews to Mail Gateway v1.1t
Message-ID: <4c18b54a.6ca3.1681692777@sybase.com>
References: <4c1893f6.67f9.1681692777@sybase.com>
NNTP-Posting-Host: 10.22.241.41
X-Original-NNTP-Posting-Host: 10.22.241.41
Date: 16 Jun 2010 04:28:10 -0700
X-Trace: forums-1-dub 1276687690 10.22.241.41 (16 Jun 2010 04:28:10 -0700)
X-Original-Trace: 16 Jun 2010 04:28:10 -0700, 10.22.241.41
Lines: 3
Path: forums-1-dub!not-for-mail
Xref: forums-1-dub sybase.public.powerbuilder.rte:349
Article PK: 791906

PB 12.0 (Build 5530)

Marek