Rocksolid Light

Welcome to RetroBBS

mail  files  register  newsreader  groups  login

Message-ID:  

<wiggy> bwah, vodka in my mouse


devel / comp.lang.xharbour / Re: ("Outlook.Application")

SubjectAuthor
* ("Outlook.Application")timepro timesheet
+* Re: ("Outlook.Application")Ella Stern
|`* Re: ("Outlook.Application")Reinaldo
| `- Re: ("Outlook.Application")timepro timesheet
`* Re: ("Outlook.Application")timepro timesheet
 `- Re: ("Outlook.Application")CV

1
("Outlook.Application")

<4ae91e9f-87d1-41cc-90ff-62c0c13b4590n@googlegroups.com>

  copy mid

https://www.rocksolidbbs.com/devel/article-flat.php?id=16701&group=comp.lang.xharbour#16701

  copy link   Newsgroups: comp.lang.xharbour
X-Received: by 2002:ac8:4741:: with SMTP id k1mr3114872qtp.374.1626340722834;
Thu, 15 Jul 2021 02:18:42 -0700 (PDT)
X-Received: by 2002:a0c:ca0f:: with SMTP id c15mr3183950qvk.51.1626340722704;
Thu, 15 Jul 2021 02:18:42 -0700 (PDT)
Path: i2pn2.org!i2pn.org!weretis.net!feeder8.news.weretis.net!proxad.net!feeder1-2.proxad.net!209.85.160.216.MISMATCH!news-out.google.com!nntp.google.com!postnews.google.com!google-groups.googlegroups.com!not-for-mail
Newsgroups: comp.lang.xharbour
Date: Thu, 15 Jul 2021 02:18:42 -0700 (PDT)
Injection-Info: google-groups.googlegroups.com; posting-host=2405:204:228d:df8c:9123:6593:1a02:4455;
posting-account=jZAeNwoAAABYWjMRM-FfqKkHfC3Iph0l
NNTP-Posting-Host: 2405:204:228d:df8c:9123:6593:1a02:4455
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <4ae91e9f-87d1-41cc-90ff-62c0c13b4590n@googlegroups.com>
Subject: ("Outlook.Application")
From: timecosting@gmail.com (timepro timesheet)
Injection-Date: Thu, 15 Jul 2021 09:18:42 +0000
Content-Type: text/plain; charset="UTF-8"
 by: timepro timesheet - Thu, 15 Jul 2021 09:18 UTC

hello all:

at some endusers my app crashes at line#28.
but, at most users, that exact same app works fine.

tia

***********
func oemail(o1)
***********
1 o1=if(empty(pcount()),'O',o1)
2 if upper(substr(os(),9,2))='XP'.or.upper(substr(os(),9,2))='VI'
3 message('works under win7/8/10')
4 end
5 toto=if(empty(toto),alltrim(client->clientst),toto)
6 tsubject=if(!empty(tsubject),tsubject,'PFA')
7 attch=pdfname && e.g.: diskname()+':\tax\gst\A001clientbills21-22.pdf'
8 tbody=if(empty(tbody),trim(client->clientname),tbody)
9 tbody1=if(empty(tbody1),trim(client->clientadr1)+', '+trim(client->clientadr2),tbody1)
10 tbody2=if(empty(tbody2),trim(client->clientcity),tbody2)
11 tbody+="<br>"+tbody1+"<br>"+tbody2
12 email=.t.
13 TRY
14 oOutlook:=GetActiveObject("Outlook.Application")
15 oOutlook:=CreateObject("Outlook.Application")
16 CATCH
17 dcr(23,01,24,79,xw)
18 mymess(23,39,'outlook application not installed/activated in this system',xm,xy,fcn,6,6,900)
19 mymess(24,39,'app may crash',xm,xy,fcn,6,6,900);inkey(.5);inkey(15)
20 email=.f.
21 END
22 if email
23 oMsg:=oOutlook:CreateItem(0)
24 oMsg:GetInspector()
25 oMsg:TO := toTO
26 oMsg:Subject := tSubject
27 oMsg:HTMLBody := tbody
28 if !empty(attch);oMsg:Attachments:add(Attch);end && CRASHES HERE (attch is never empty)
29 oMsg:Display(.f.)
30 end
31 ...
32 ...
33 ...
34 ...

Re: ("Outlook.Application")

<21e87e95-7122-4d15-b5ec-c7b84341e21bn@googlegroups.com>

  copy mid

https://www.rocksolidbbs.com/devel/article-flat.php?id=16702&group=comp.lang.xharbour#16702

  copy link   Newsgroups: comp.lang.xharbour
X-Received: by 2002:a05:620a:101a:: with SMTP id z26mr3647640qkj.261.1626349588832; Thu, 15 Jul 2021 04:46:28 -0700 (PDT)
X-Received: by 2002:a05:620a:4e9:: with SMTP id b9mr3485202qkh.358.1626349588647; Thu, 15 Jul 2021 04:46:28 -0700 (PDT)
Path: i2pn2.org!i2pn.org!aioe.org!news.uzoreto.com!tr2.eu1.usenetexpress.com!feeder.usenetexpress.com!tr2.iad1.usenetexpress.com!border1.nntp.dca1.giganews.com!nntp.giganews.com!news-out.google.com!nntp.google.com!postnews.google.com!google-groups.googlegroups.com!not-for-mail
Newsgroups: comp.lang.xharbour
Date: Thu, 15 Jul 2021 04:46:28 -0700 (PDT)
In-Reply-To: <4ae91e9f-87d1-41cc-90ff-62c0c13b4590n@googlegroups.com>
Injection-Info: google-groups.googlegroups.com; posting-host=82.78.22.169; posting-account=H3ofRwoAAADbRxQ3Wi989fFKCMQ4Av_J
NNTP-Posting-Host: 82.78.22.169
References: <4ae91e9f-87d1-41cc-90ff-62c0c13b4590n@googlegroups.com>
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <21e87e95-7122-4d15-b5ec-c7b84341e21bn@googlegroups.com>
Subject: Re: ("Outlook.Application")
From: ellailona@gmail.com (Ella Stern)
Injection-Date: Thu, 15 Jul 2021 11:46:28 +0000
Content-Type: text/plain; charset="UTF-8"
Lines: 8
 by: Ella Stern - Thu, 15 Jul 2021 11:46 UTC

https://docs.microsoft.com/en-US/outlook/troubleshoot/performance/outlook-not-responding-error-or-outlook-freezes

On Thursday, July 15, 2021 at 12:18:43 PM UTC+3, timec...@gmail.com wrote:
> hello all:
>
> at some endusers my app crashes at line#28.
> but, at most users, that exact same app works fine.
>

Re: ("Outlook.Application")

<d7e81195-4a4f-4744-8d9c-544c801f05c0n@googlegroups.com>

  copy mid

https://www.rocksolidbbs.com/devel/article-flat.php?id=16703&group=comp.lang.xharbour#16703

  copy link   Newsgroups: comp.lang.xharbour
X-Received: by 2002:ad4:456d:: with SMTP id o13mr4981253qvu.48.1626362481909;
Thu, 15 Jul 2021 08:21:21 -0700 (PDT)
X-Received: by 2002:ac8:58d3:: with SMTP id u19mr1315224qta.306.1626362481701;
Thu, 15 Jul 2021 08:21:21 -0700 (PDT)
Path: i2pn2.org!i2pn.org!paganini.bofh.team!usenet.pasdenom.info!usenet-fr.net!fdn.fr!proxad.net!feeder1-2.proxad.net!209.85.160.216.MISMATCH!news-out.google.com!nntp.google.com!postnews.google.com!google-groups.googlegroups.com!not-for-mail
Newsgroups: comp.lang.xharbour
Date: Thu, 15 Jul 2021 08:21:21 -0700 (PDT)
In-Reply-To: <21e87e95-7122-4d15-b5ec-c7b84341e21bn@googlegroups.com>
Injection-Info: google-groups.googlegroups.com; posting-host=66.176.109.152; posting-account=gKC1rwoAAACsXQwL7JqnaNwb7B4IwyoZ
NNTP-Posting-Host: 66.176.109.152
References: <4ae91e9f-87d1-41cc-90ff-62c0c13b4590n@googlegroups.com> <21e87e95-7122-4d15-b5ec-c7b84341e21bn@googlegroups.com>
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <d7e81195-4a4f-4744-8d9c-544c801f05c0n@googlegroups.com>
Subject: Re: ("Outlook.Application")
From: reinaldo.crespo@gmail.com (Reinaldo)
Injection-Date: Thu, 15 Jul 2021 15:21:21 +0000
Content-Type: text/plain; charset="UTF-8"
 by: Reinaldo - Thu, 15 Jul 2021 15:21 UTC

How about testing if Attch is Nil?

Reinaldo.

On Thursday, July 15, 2021 at 7:46:29 AM UTC-4, Ella Stern wrote:
> https://docs.microsoft.com/en-US/outlook/troubleshoot/performance/outlook-not-responding-error-or-outlook-freezes
> On Thursday, July 15, 2021 at 12:18:43 PM UTC+3, timec...@gmail.com wrote:
> > hello all:
> >
> > at some endusers my app crashes at line#28.
> > but, at most users, that exact same app works fine.
> >

Re: ("Outlook.Application")

<a558ee44-a9ad-4967-8c7f-a1fa78781cfdn@googlegroups.com>

  copy mid

https://www.rocksolidbbs.com/devel/article-flat.php?id=16718&group=comp.lang.xharbour#16718

  copy link   Newsgroups: comp.lang.xharbour
X-Received: by 2002:a37:71c1:: with SMTP id m184mr22890222qkc.367.1626672323726;
Sun, 18 Jul 2021 22:25:23 -0700 (PDT)
X-Received: by 2002:a0c:a223:: with SMTP id f32mr23166234qva.8.1626672323626;
Sun, 18 Jul 2021 22:25:23 -0700 (PDT)
Path: i2pn2.org!i2pn.org!weretis.net!feeder8.news.weretis.net!news.mixmin.net!proxad.net!feeder1-2.proxad.net!209.85.160.216.MISMATCH!news-out.google.com!nntp.google.com!postnews.google.com!google-groups.googlegroups.com!not-for-mail
Newsgroups: comp.lang.xharbour
Date: Sun, 18 Jul 2021 22:25:23 -0700 (PDT)
In-Reply-To: <d7e81195-4a4f-4744-8d9c-544c801f05c0n@googlegroups.com>
Injection-Info: google-groups.googlegroups.com; posting-host=2409:4040:e0f:66a0:4837:9190:fb8e:4a8d;
posting-account=jZAeNwoAAABYWjMRM-FfqKkHfC3Iph0l
NNTP-Posting-Host: 2409:4040:e0f:66a0:4837:9190:fb8e:4a8d
References: <4ae91e9f-87d1-41cc-90ff-62c0c13b4590n@googlegroups.com>
<21e87e95-7122-4d15-b5ec-c7b84341e21bn@googlegroups.com> <d7e81195-4a4f-4744-8d9c-544c801f05c0n@googlegroups.com>
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <a558ee44-a9ad-4967-8c7f-a1fa78781cfdn@googlegroups.com>
Subject: Re: ("Outlook.Application")
From: timecosting@gmail.com (timepro timesheet)
Injection-Date: Mon, 19 Jul 2021 05:25:23 +0000
Content-Type: text/plain; charset="UTF-8"
 by: timepro timesheet - Mon, 19 Jul 2021 05:25 UTC

On Thursday, July 15, 2021 at 8:51:22 PM UTC+5:30, Reinaldo wrote:
> How about testing if Attch is Nil?
>
> Reinaldo.
> On Thursday, July 15, 2021 at 7:46:29 AM UTC-4, Ella Stern wrote:
> > https://docs.microsoft.com/en-US/outlook/troubleshoot/performance/outlook-not-responding-error-or-outlook-freezes
> > On Thursday, July 15, 2021 at 12:18:43 PM UTC+3, timec...@gmail.com wrote:
> > > hello all:
> > >
> > > at some endusers my app crashes at line#28.
> > > but, at most users, that exact same app works fine.
> > >

Attch is not nil.
if !empty(attch);oMsg:Attachments:add(Attch);end && CRASHES HERE (attch is never empty)

Re: ("Outlook.Application")

<16fd96b6-95f3-4b96-b514-5b897667cf3cn@googlegroups.com>

  copy mid

https://www.rocksolidbbs.com/devel/article-flat.php?id=16722&group=comp.lang.xharbour#16722

  copy link   Newsgroups: comp.lang.xharbour
X-Received: by 2002:a05:6214:1303:: with SMTP id a3mr29723439qvv.49.1626778278778; Tue, 20 Jul 2021 03:51:18 -0700 (PDT)
X-Received: by 2002:ae9:f107:: with SMTP id k7mr28312550qkg.152.1626778278648; Tue, 20 Jul 2021 03:51:18 -0700 (PDT)
Path: i2pn2.org!i2pn.org!weretis.net!feeder6.news.weretis.net!4.us.feeder.erje.net!2.eu.feeder.erje.net!feeder.erje.net!news.uzoreto.com!tr3.eu1.usenetexpress.com!feeder.usenetexpress.com!tr1.iad1.usenetexpress.com!border1.nntp.dca1.giganews.com!nntp.giganews.com!news-out.google.com!nntp.google.com!postnews.google.com!google-groups.googlegroups.com!not-for-mail
Newsgroups: comp.lang.xharbour
Date: Tue, 20 Jul 2021 03:51:18 -0700 (PDT)
In-Reply-To: <4ae91e9f-87d1-41cc-90ff-62c0c13b4590n@googlegroups.com>
Injection-Info: google-groups.googlegroups.com; posting-host=2409:4040:e0f:66a0:147b:5990:d2b0:b5e9; posting-account=jZAeNwoAAABYWjMRM-FfqKkHfC3Iph0l
NNTP-Posting-Host: 2409:4040:e0f:66a0:147b:5990:d2b0:b5e9
References: <4ae91e9f-87d1-41cc-90ff-62c0c13b4590n@googlegroups.com>
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <16fd96b6-95f3-4b96-b514-5b897667cf3cn@googlegroups.com>
Subject: Re: ("Outlook.Application")
From: timecosting@gmail.com (timepro timesheet)
Injection-Date: Tue, 20 Jul 2021 10:51:18 +0000
Content-Type: text/plain; charset="UTF-8"
Lines: 13
 by: timepro timesheet - Tue, 20 Jul 2021 10:51 UTC

if !empty(attch);oMsg:Attachments:add(Attch);end && CRASHES HERE

earlier code
pdfname='\tax\pdffiles\'+pdfname
but after i added diskname() [pdfname=diskname()+':\tax\pdffiles\'+pdfname ]
it works fine...

is diskname() mandatory, even if the app (exe) is residing in C:\TAX and outlook is also installed in C:

thanks

Re: ("Outlook.Application")

<eca7a2e2-ad02-4dcc-a4dc-51511390e939n@googlegroups.com>

  copy mid

https://www.rocksolidbbs.com/devel/article-flat.php?id=16723&group=comp.lang.xharbour#16723

  copy link   Newsgroups: comp.lang.xharbour
X-Received: by 2002:a37:8407:: with SMTP id g7mr31406792qkd.123.1626810246476;
Tue, 20 Jul 2021 12:44:06 -0700 (PDT)
X-Received: by 2002:a37:641:: with SMTP id 62mr30797221qkg.149.1626810246208;
Tue, 20 Jul 2021 12:44:06 -0700 (PDT)
Path: i2pn2.org!i2pn.org!weretis.net!feeder8.news.weretis.net!proxad.net!feeder1-2.proxad.net!209.85.160.216.MISMATCH!news-out.google.com!nntp.google.com!postnews.google.com!google-groups.googlegroups.com!not-for-mail
Newsgroups: comp.lang.xharbour
Date: Tue, 20 Jul 2021 12:44:05 -0700 (PDT)
In-Reply-To: <16fd96b6-95f3-4b96-b514-5b897667cf3cn@googlegroups.com>
Injection-Info: google-groups.googlegroups.com; posting-host=186.136.200.215; posting-account=PzJOtwoAAAB-nLPGTsEPjzvj-I7nsyBK
NNTP-Posting-Host: 186.136.200.215
References: <4ae91e9f-87d1-41cc-90ff-62c0c13b4590n@googlegroups.com> <16fd96b6-95f3-4b96-b514-5b897667cf3cn@googlegroups.com>
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <eca7a2e2-ad02-4dcc-a4dc-51511390e939n@googlegroups.com>
Subject: Re: ("Outlook.Application")
From: cvoskian@gmail.com (CV)
Injection-Date: Tue, 20 Jul 2021 19:44:06 +0000
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
 by: CV - Tue, 20 Jul 2021 19:44 UTC

El martes, 20 de julio de 2021 a la(s) 07:51:19 UTC-3, timec...@gmail.com escribió:
> if !empty(attch);oMsg:Attachments:add(Attch);end && CRASHES HERE
> earlier code
> pdfname='\tax\pdffiles\'+pdfname
> but after i added diskname() [pdfname=diskname()+':\tax\pdffiles\'+pdfname ]
> it works fine...
>
> is diskname() mandatory, even if the app (exe) is residing in C:\TAX and outlook is also installed in C:
>
> thanks

hi

It needs to use a fully qualified pathname like drive:\directory\subdir\file.ext as in C:\Temp\MyDir\MyPdf.pdf

Regards
Claudio Voskian

1
server_pubkey.txt

rocksolid light 0.9.81
clearnet tor