Hi Mark,
Happy to answer this question here, and I will make my request in response
to your email to the list.
My main piece of work is a stock ordering and epos maintenance suite of
programs (now incorrectly called The Order Browser).
It is used by the orderers in our 20 stores to keep track of their sales,
merchandising etc. and request replenishment.
For a long time, the users at the stores asked for photos of the goods that
they were ordering.
A few years ago we had a project to put up a website for our wholesale
customers, and we have a team here that maintains that and keeps the images
up to date. As soon as it was up, I wrote a small routine for the Order
Browser (reproduced below) which searched the website for images of the
product and displayed them in an Internet Explorer window.
However, the way our business works, there are many products that are not
available to our wholesale web channel, and it turns out that there is a
library of images of them maintained here at our headquarters as jpg files.
I have been asked, where there is no image available on the website whether
on request the Order Browser could search for a suitable image in this
library, download and display it.
I had considered using imageMagick to transform the picture to a bmp (which
the order browser already does for other things), but remembered you
mentioning JPGs before and just wondered where it was at - not wanting to
appear old-fashioned.
I must stress that there is no hurry about this at all, I am involved in
this big project replacing our ERP system and for my retail users to get my
development time they would have to make an enormous business case which
they have not, and I don't believe that they can. At the moment I am just
exploring possibilities, so I know what to tell them when I say 'not now'.
thanks again,
Jon
/*
------------------------------------------------------------------------- */
::method showWeb
/*
------------------------------------------------------------------------- */
expose curlist myIe orgTxt imgTxt
curlist~assignFocus
/*{3.00c}*/
this_item = curlist~selected
if this_item = -1 then RETURN errordialog('No product is selected')
product = curlist~itemtext(curlist~selected,0)
.my.log~log(' - Fetching image for' product)
/*{3.00c}*/
signal on syntax name oleError -- dont let ie kill the order browser
if \myIE~isA(.OLEObject)
then myIE = .OLEObject~New("InternetExplorer.Application")
myIE~visible = .false
myIE~navigate("http://www.windhorse.biz")
Do 600 While myIE~readyState < 4 | myIE~busy = 1
Call Syssleep 0.1
End
form = myIE~document~forms["search"]
/* if we failed to connect this line will signal oleError */
form~list_value~value = product
form~submit
Do 600 While myIE~readyState < 4 | myIE~busy = 1
Call Syssleep 0.1
End
if this_item = curlist~selected
then do /* obtain text representation of the
page */
text = MyIe~document~body~CreateTextRange~Text
if text~pos('Sorry there are no results to display') = 0,
then myIE~visible = .true
else do
imgTxt~show
.my.log~log(' - No image found for' product)
/*{3.00c}*/
end
end
else .my.log~log(' - user navigated away before image fetched
for' product) /*{3.00c}*/
signal off syntax
return
/* - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- */
oleError:
/* - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- */
drop myIE
imgTxt~show
signal off syntax
return
On 14 March 2012 14:43, Mark Miesfeld <[email protected]> wrote:
> Hi Jon,
>
> I wanted to keep this reply separate from my first reply where I basically
> answered your questions
>
> I have my own question, which is: how would you use jpg files? Or, what
> are you trying to do that requires jpg files?
>
> The reason I ask, or part of the reason, is that dialog controls and
> dialogs can basically only use bitmaps. There are no controls that will
> accept a jpg image, only bitmaps.
>
> So for instance if you want to use an image for a button face, you have to
> use a bitmap.
>
> Now, my thinking with using GDI+ is that it has the capability to convert
> a jpg image to a bitmap. This might make things easier for ooDialog
> programmers. But, I doubt that ooDialog will ever be *better* at
> converting images than ImageMagick.
>
> Anyhow, curious as to what you are thinking about with jpg images.
>
> --
> Mark Miesfeld
>
> On Wed, Mar 14, 2012 at 3:43 AM, Sahananda (Jon) Wolfers <
> [email protected]> wrote:
>
>> Hi Mark,
>>
>> I just wondered if (without any intention of hassling) I could ask about
>> whether the image object is/will be able to handle jpg files and if this is
>> in the future, any sense of how far away.
>>
>> Thanks,
>>
>> Jon
>>
>>
>> ------------------------------------------------------------------------------
>> Virtualization & Cloud Management Using Capacity Planning
>> Cloud computing makes use of virtualization - but cloud computing
>> also focuses on allowing computing to be delivered as a service.
>> http://www.accelacomm.com/jaw/sfnl/114/51521223/
>> _______________________________________________
>> Oorexx-devel mailing list
>> [email protected]
>> https://lists.sourceforge.net/lists/listinfo/oorexx-devel
>>
>>
>
>
> ------------------------------------------------------------------------------
> Virtualization & Cloud Management Using Capacity Planning
> Cloud computing makes use of virtualization - but cloud computing
> also focuses on allowing computing to be delivered as a service.
> http://www.accelacomm.com/jaw/sfnl/114/51521223/
> _______________________________________________
> Oorexx-devel mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/oorexx-devel
>
>
------------------------------------------------------------------------------
Virtualization & Cloud Management Using Capacity Planning
Cloud computing makes use of virtualization - but cloud computing
also focuses on allowing computing to be delivered as a service.
http://www.accelacomm.com/jaw/sfnl/114/51521223/
_______________________________________________
Oorexx-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/oorexx-devel