Page 1 of 2

Access denied with TeeExport

Posted: Wed May 04, 2011 9:43 am
by 16559098
Hello,

While including TeeExport into my application I ran into a problem when trying to preview. CreateTempFile return an invalid file name (causing an "Access is denied" exception) because the EmailName var is empty. The problem is, I have no clue how to populate this value when calling TeeExport(Self, Chart1);

Any advice as to how to best proceed (I'm using TeeChart Pro 2011.03.30407) ?

Re: Access denied with TeeExport

Posted: Wed May 04, 2011 2:31 pm
by 10050769
Hello Ael,

Could you please, send us a simple example project because we can reproduce exactly your project here?

Thanks,

Re: Access denied with TeeExport

Posted: Wed May 04, 2011 2:43 pm
by 16559098
Here is a sample project to reproduce the problem : a chart, 1 line serie. Click "Export" then "Preview" (or "Send") to generate the "access is denied" exception.

Thank you for your help.

Re: Access denied with TeeExport

Posted: Thu May 05, 2011 8:38 am
by 10050769
Hello Ael,

I couldn't reproduce your problem here using last version of source code, last version of binary installer and your project. So you can tell us if you can reproduce the same error in different machines? In which operative system appears your problem and IDE of Delphi are you use?

Thanks,

Re: Access denied with TeeExport

Posted: Thu May 05, 2011 12:29 pm
by 16559098
Hello,

You're absolutely right, it only occurs for specific users on Windows 7 x64, I'm sorry I didn't notice this earlier. So far I've been unable to reproduce the problem on other version of Windows. I'm still trying to pinpoint what settings or application might cause this problem. Thank you for your time.

Re: Access denied with TeeExport

Posted: Thu May 05, 2011 1:59 pm
by 10050769
Hello Ael,

Thanks for the feedback. Please let us know if you find a specific environment that reproduces the issue in a consistent manner.

Thanks,

Re: Access denied with TeeExport

Posted: Wed Feb 22, 2012 8:11 am
by 16561194
Hello Sandra,

On Windows 7 TeeChart 2011.04.41118 for Delphi 2010 saves the file for preview (CreateTempFile) in the root-directory of the active path. Without administrator rights access is denied on C:\.

At Jun 04, 2010 NarcĂ­s added the defect to the bug-list (TV52014935) to be fixed.

I hope this will be soon.

Bert Kreisel

Re: Access denied with TeeExport

Posted: Wed Jun 20, 2012 6:40 am
by 16561194
On Windows 7 TeeChart 2012.06.120613 for Delphi 2010 the 2 years old bug TV52014935 is still not fixed.

Bert Kreisel

Re: Access denied with TeeExport

Posted: Mon Jun 25, 2012 4:07 pm
by yeray
Hi Bert,

I've reproduced it with TeeChart v2010.00 in Delphi 2009, but it seems to work fine for me here with TeeChart v2012.06 in Delphi 2009, 2010 and XE2.
Could you please check it again?

Re: Access denied with TeeExport

Posted: Tue Jun 26, 2012 6:28 am
by 16561194
Hi Yeray,

I'm running TeeChartOffice on Windows 7 at c:\TeeChart\Examples. After Edit -> Export -> Preview I get a MessageBox compaining c:\TeeChart.bmp Access denied. If the program was started with elevated administrator privileges or executed on my network drive it work fine.

Best Regards
Bert Kreisel

Re: Access denied with TeeExport

Posted: Tue Jun 26, 2012 11:54 am
by yeray
Hi Bert,

I'm afraid there's a confusion here.
TV52014935 was identified here (4th June 2010) and it reports an IDE freezing problem. This problem is the one I can't reproduce any more.

The Access denied error reported in this thread hasn't been reproduced so far in a consistent manner. I'll give it a try to see if I can do it following your latest instructions.

Re: Access denied with TeeExport

Posted: Tue Jun 26, 2012 12:43 pm
by 16561194
Hi Yeray,

the TeeChart export preview in the IDE has the same problem trying to save to the root directory. This 2 years old bug is still not fixed.

Best Regards
Bert Kreisel

Re: Access denied with TeeExport

Posted: Wed Jun 27, 2012 7:47 am
by yeray
Hi Bert,

I've moved TeeChartOffice to "C:\TeeChart\Examples", logged in with an standard account, and I can run and see the "Export\Preview" window (both as Bitmap and JPEG) without getting any "Access denied" message in a Win7 x64 here.
There will probably be some more specific setting or privileges limitation causing this. If you know it, please don't hesitate to let us know.

Re: Access denied with TeeExport

Posted: Thu Jun 28, 2012 7:53 am
by 16561194
Hi Yeray,

maybe you are using different package versions than Delphi 2010 or your standard account has write permission on c:\.
TTeeExportFormBase.GetTempFolder is not working so TTeeExportFormBase.CreateTempFile uses the root directory.

Best Regards
Bert Kreisel

Re: Access denied with TeeExport

Posted: Fri Jun 29, 2012 10:12 am
by yeray
Hi Bert,

I haven't reproduced the "Access denied" message but I've seen how the GetTempFolder function returns an empty string in D2010. I've modified it so now it returns the user Temp path, as with the other IDEs.
I've sent you a mail with the fixed unit. Please tell us if it fixes the problem for you.