Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.clipper.visual-objects > #8578

Re: OleSavePictureFile and ReportPro

From "Heiko J. Pongratz" <heiko.pongratz@ctsedv.de>
Newsgroups comp.lang.clipper.visual-objects
Subject Re: OleSavePictureFile and ReportPro
Date 2015-10-28 15:27 +0100
Organization A noiseless patient Spider
Message-ID <n0qm2e$cfs$1@dont-email.me> (permalink)
References (1 earlier) <mads1b1325r0gn20g913i02urevic6gi1a@4ax.com> <n02tae$agp$1@dont-email.me> <n05g8e$8dl$1@dont-email.me> <n0q5gl$dnu$1@dont-email.me> <n0qjdh$j1e$1@news.m-online.net>

Show all headers | View raw


Gerhard,

this function looks nice.

In our case we did this in a loop with a timeout, to repeat it until the 
timeout is reached, if it fails to open the file.

Greetings

Heiko






"Gerhard Bunzel"  schrieb im Newsbeitrag 
news:n0qjdh$j1e$1@news.m-online.net...

Martin,

....
FUNCTION FileNotOpen (cFileName AS STRING) AS DWORD PASCAL

LOCAL nReturn AS DWORD
LOCAL ptrFile AS PTR

ptrFile := FOpen2(cFileName, FO_EXCLUSIVE)

IF ptrFile != F_ERROR
    FClose(ptrFile)
    nReturn := 0
ELSE
    nReturn := FError()
ENDIF

RETURN nReturn


HTH

Gerhard Bunzel



"Martin"  schrieb im Newsbeitrag news:n0q5gl$dnu$1@dont-email.me...

That is a good idea I will try that, currently I am just adding a half
second delay.

I never had issues like this in the past.

Thanks

Martin

On 20/10/2015 14:39, Heiko J. Pongratz wrote:
> Martin,
>
> what we do when we want to process a file after we created it, is trying
> to open the file exclusive first in a loop with a timeout.
>
> After we were able to open this file  exlusively, we close it and then
> we continue with the code doing the following things.
>
> Greetings
>
> Heiko J. Pongratz
>
>
>
> "Martin"  schrieb im Newsbeitrag news:n02tae$agp$1@dont-email.me...
>
> No this is a runtime create bitmap and print it
>
> I create the bitmap if it doesn't exist and pass the name to the document
>
> Failed once a month ago and also today
>
> Still testing before we deliver the code
>
> On 14/10/2015 12:01, D.J.W. van Kooten wrote:
>> On Wed, 14 Oct 2015 09:19:48 +0100, Martin <Martin@spam.spam> wrote:
>>
>> Hello Martin,
>>
>>> However sometimes it does not appear as ReportPro cannot find it.
>>>
>>> What can I do to force the file to be found?
>>>
>>
>> Do I understand correctly that you have a BMP on a ReportPro report
>> which doesn't show?
>>
>> We find that you have to select the picture, right click Picture Style
>> and check Embed Image (then Save) at least twice. And to be really
>> sure it shows, we always place the image in the directory together
>> with the .rpt.
>>
>> Dick
>>
> 

Back to comp.lang.clipper.visual-objects | Previous | Next — Previous in thread | Find similar | Unroll thread


Thread

OleSavePictureFile and ReportPro Martin <Martin@spam.spam> - 2015-10-14 09:19 +0100
  Re: OleSavePictureFile and ReportPro D.J.W. van Kooten <vankooten@removethis.ic2.com> - 2015-10-14 13:01 +0200
    Re: OleSavePictureFile and ReportPro Martin <Martin@spam.spam> - 2015-10-19 15:07 +0100
      Re: OleSavePictureFile and ReportPro "Heiko J. Pongratz" <heiko.pongratz@ctsedv.de> - 2015-10-20 15:39 +0200
        Re: OleSavePictureFile and ReportPro Martin <Martin@spam.spam> - 2015-10-28 09:48 +0000
          Re: OleSavePictureFile and ReportPro "Gerhard Bunzel" <g.bunzel@domonet.de> - 2015-10-28 14:43 +0100
            Re: OleSavePictureFile and ReportPro "Heiko J. Pongratz" <heiko.pongratz@ctsedv.de> - 2015-10-28 15:27 +0100

csiph-web