Here's the plan. I have 1000 item pics in my system. I can create a Picture Item book with Crystal Reports.
Problem is the report after a few pages generated crashes (just closes the program). I've played with the C/odbc setting with no luck. I believe it's due to the size of the BMP's installed in Navision. (between 300-500kb) each.
So I created a new Field on the item card called Picture2 and I imported a JPG (11-15kb each) file into it. I Know it can't be viewed in Navision BUT Crystal Does show the pic output.
So all I have to do is export every pic I have (which I did)
DataItemTableView:
SORTING(No.) ORDER(Ascending) WHERE(Picture=FILTER(<>' '),Blocked=FILTER(No))
OnAfterGetRecord()
SETRANGE("No.");
IF Picture.HASVALUE THEN
Picture.EXPORT('c:\'+Item."No."+'.BMP',FALSE);
Then using PIX resizer
http://bluefive.pair.com/
I created a copy of all the BMP's into Small JPG.
Now I want to Import them all back into Navision into the BLOB called Picture2. Every item that has a Picture I want to import the new jpg.
So why doesn't the simple change of this report work:
OnAfterGetRecord()
SETRANGE("No.");
IF Picture.HASVALUE THEN
Picture2.IMPORT('c:\'+Item."No."+'.JPG',FALSE);
It appears to work but when the report is over nothing is imported.
I can do it one at a time on the pic form - But that's no fun.
OnPush()
PictureExists := Picture.HASVALUE;
ImportedPicture := Picture2.IMPORT('C:\'+Item."No."+'.JPG',TRUE);
IF ImportedPicture = '' THEN
EXIT;
CurrForm.SAVERECORD;
Codemasters Help!
Comments
http://www.BiloBeauty.com
http://www.autismspeaks.org
Otherwise "HASVALUE" will show false even if there is a picture saved in the BLOB.
/Frank
I had once a customer with 15.000 items with jpg-pics of 100-500KB a picture (=1.5-7.5 GB!!!). They refused to convert it into bmp because it would be toooooo much in the DB. So I left them somewhere on the server (divided in several subdirs to not overload a subdir) and when an item-pic was needed, I converted it on-the-fly. For just viewing the pic of an item, it was perfect. When they printed a lot of them, the delay was noticable but acceptable.
And very interesting:the DB remained small for making backups.
No PM,please use the forum. || May the <SOLVED>-attribute be in your title!
Maybe you can explain a bit how you did this?
Did you use this: http://www.navisioner.com/downloads/3rd ... vertor.zip
http://www.BiloBeauty.com
http://www.autismspeaks.org
No PM,please use the forum. || May the <SOLVED>-attribute be in your title!