Just a a guess John, but is it possible the pictures that don't convert were 
inserted in PICT format? Maybe you could select one of the letters with 
troublesome images and convert one of those images in place to PNG (using 
CONVERT PICTURE). Then try opening that letter again in 4D Write Pro.


On 24 Jun 2018, at 12:09 pm, John Baughman via 4D_Tech <4d_tech@lists.4d.com> 
wrote:
> 
> Still trying to get my head around converting 4D Write documents that contain 
> images in page to 4D Write Pro. I have moved on from the templates which I 
> think I have working and am now dealing with correspondence that has been 
> printed and most have references frozen.
> 
> These document have up to 16 phots inserted with WR INSERT PICTURE using 
> variables (ptoto1, photo2, etc) populated from records, one record per 
> variable.  There are over 56,000 documents that need to be converted to Pro 
> so doing this manually is not an option. I am using the table’s input form to 
> test the code I plan to use for the batch conversion. I have a 4D Write Pro 
> area, WP_WriteProArea,  on page 1 and have moved the original 4D Write area, 
> Letter, that was on page 1 to page 2.
> 
> Using the following code, I have gotten mixed results...
> 
>               WR EXECUTE COMMAND (Letter;wr cmd freeze references)
>               SAVE RECORD([Letter]) // save the record because in batch mode 
> there will not be an input form. Making sure that the pictures are saved in 
> the picture field.
>               
>               $wrOffscreenArea:=WR New offscreen area   //this is how it will 
> be done in batch mode
>               WR PICTURE TO AREA ($wrOffscreenArea;[Letter]Letter_)
>               C_BLOB($letterBlob)
>               $letterBlob:=WR Area to blob ($wrOffscreenArea;1)
>               WP_WriteProArea:=WP New($letterBlob)  //In batch mode this will 
> be changed to the c_object field in the table
>               FORM GOTO PAGE(1). //not to be used in batch mode
> 
> Some documents convert nicely but for others every thing but the photos do 
> not make to the pro area. No sign of the photos at all, otherwise the 
> document looks perfect. In still some other documents some of the photos make 
> it and some are there but not visible. If I click where it should be it may 
> show the photo or select a rectangle that is completely blank, just the 4 
> handles.
> 
> I tired converting the write area directly, but got the same result…
> 
>               WR EXECUTE COMMAND (Letter;wr cmd freeze references)
>               C_BLOB($letterBlob)
>               $letterBlob:=WR Area to blob (Letter;1)
>               WP_WriteProArea:=WP New($letterBlob)
>               FORM GOTO PAGE(1)
> 
> This is very discouraging. I cannot see anything different between the 
> documents that work and those that do not. I could programmatically reinsert 
> all the pictures found in the write document, but these documents are 
> supposed to be frozen. The photos should not be changed if the photo was 
> changed at a later date…. HIPPA.
> 
> Perhaps it’s time to call tech support?
> 
> John
> 
> 
> 
> 
> 
> John Baughman
> 1331 Auwaiku Street
> Kailua, Hawaii  96734
> (808) 262-0328
> john...@hawaii.rr.com
> 
> **********************************************************************
> 4D Internet Users Group (4D iNUG)
> FAQ:  http://lists.4d.com/faqnug.html
> Archive:  http://lists.4d.com/archives.html
> Options: https://lists.4d.com/mailman/options/4d_tech
> Unsub:  mailto:4d_tech-unsubscr...@lists.4d.com
> **********************************************************************

**********************************************************************
4D Internet Users Group (4D iNUG)
FAQ:  http://lists.4d.com/faqnug.html
Archive:  http://lists.4d.com/archives.html
Options: https://lists.4d.com/mailman/options/4d_tech
Unsub:  mailto:4d_tech-unsubscr...@lists.4d.com
**********************************************************************

Reply via email to