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


Groups > comp.lang.clipper.visual-objects > #8515 > unrolled thread

OleSavePictureFile and ReportPro

Started byMartin <Martin@spam.spam>
First post2015-10-14 09:19 +0100
Last post2015-10-28 15:27 +0100
Articles 7 — 4 participants

Back to article view | Back to comp.lang.clipper.visual-objects


Contents

  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

#8515 — OleSavePictureFile and ReportPro

FromMartin <Martin@spam.spam>
Date2015-10-14 09:19 +0100
SubjectOleSavePictureFile and ReportPro
Message-ID<mvl332$lss$1@dont-email.me>
Hello

I am creating a bitmap then very soon after putting it on a document.

However sometimes it does not appear as ReportPro cannot find it.

I think SMB2 is disabled.

What can I do to force the file to be found?

Thanks

Martin

[toc] | [next] | [standalone]


#8517

FromD.J.W. van Kooten <vankooten@removethis.ic2.com>
Date2015-10-14 13:01 +0200
Message-ID<mads1b1325r0gn20g913i02urevic6gi1a@4ax.com>
In reply to#8515
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

[toc] | [prev] | [next] | [standalone]


#8535

FromMartin <Martin@spam.spam>
Date2015-10-19 15:07 +0100
Message-ID<n02tae$agp$1@dont-email.me>
In reply to#8517
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
>

[toc] | [prev] | [next] | [standalone]


#8538

From"Heiko J. Pongratz" <heiko.pongratz@ctsedv.de>
Date2015-10-20 15:39 +0200
Message-ID<n05g8e$8dl$1@dont-email.me>
In reply to#8535
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
> 

[toc] | [prev] | [next] | [standalone]


#8568

FromMartin <Martin@spam.spam>
Date2015-10-28 09:48 +0000
Message-ID<n0q5gl$dnu$1@dont-email.me>
In reply to#8538
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
>>
>

[toc] | [prev] | [next] | [standalone]


#8574

From"Gerhard Bunzel" <g.bunzel@domonet.de>
Date2015-10-28 14:43 +0100
Message-ID<n0qjdh$j1e$1@news.m-online.net>
In reply to#8568
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
>>
>

[toc] | [prev] | [next] | [standalone]


#8578

From"Heiko J. Pongratz" <heiko.pongratz@ctsedv.de>
Date2015-10-28 15:27 +0100
Message-ID<n0qm2e$cfs$1@dont-email.me>
In reply to#8574
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
>>
> 

[toc] | [prev] | [standalone]


Back to top | Article view | comp.lang.clipper.visual-objects


csiph-web