Access denied with TeeExport

TeeChart VCL for Borland/CodeGear/Embarcadero RAD Studio, Delphi and C++ Builder.
Ael
Newbie
Newbie
Posts: 4
Joined: Thu Apr 14, 2011 12:00 am

Access denied with TeeExport

Post by Ael » Wed May 04, 2011 9:43 am

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) ?

Sandra
Site Admin
Site Admin
Posts: 3132
Joined: Fri Nov 07, 2008 12:00 am

Re: Access denied with TeeExport

Post by Sandra » Wed May 04, 2011 2:31 pm

Hello Ael,

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

Thanks,
Best Regards,
Sandra Pazos / Development & Support
Steema Software
Avinguda Montilivi 33, 17003 Girona, Catalonia
Tel: 34 972 218 797
http://www.steema.com
Image Image Image Image Image Image
Instructions - How to post in this forum

Ael
Newbie
Newbie
Posts: 4
Joined: Thu Apr 14, 2011 12:00 am

Re: Access denied with TeeExport

Post by Ael » Wed May 04, 2011 2:43 pm

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.
Attachments
ExportException.zip
Sample project
(84.68 KiB) Downloaded 717 times

Sandra
Site Admin
Site Admin
Posts: 3132
Joined: Fri Nov 07, 2008 12:00 am

Re: Access denied with TeeExport

Post by Sandra » Thu May 05, 2011 8:38 am

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,
Best Regards,
Sandra Pazos / Development & Support
Steema Software
Avinguda Montilivi 33, 17003 Girona, Catalonia
Tel: 34 972 218 797
http://www.steema.com
Image Image Image Image Image Image
Instructions - How to post in this forum

Ael
Newbie
Newbie
Posts: 4
Joined: Thu Apr 14, 2011 12:00 am

Re: Access denied with TeeExport

Post by Ael » Thu May 05, 2011 12:29 pm

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.

Sandra
Site Admin
Site Admin
Posts: 3132
Joined: Fri Nov 07, 2008 12:00 am

Re: Access denied with TeeExport

Post by Sandra » Thu May 05, 2011 1:59 pm

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,
Best Regards,
Sandra Pazos / Development & Support
Steema Software
Avinguda Montilivi 33, 17003 Girona, Catalonia
Tel: 34 972 218 797
http://www.steema.com
Image Image Image Image Image Image
Instructions - How to post in this forum

Bert Kreisel
Newbie
Newbie
Posts: 19
Joined: Thu Jan 01, 1970 12:00 am

Re: Access denied with TeeExport

Post by Bert Kreisel » Wed Feb 22, 2012 8:11 am

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

Bert Kreisel
Newbie
Newbie
Posts: 19
Joined: Thu Jan 01, 1970 12:00 am

Re: Access denied with TeeExport

Post by Bert Kreisel » Wed Jun 20, 2012 6:40 am

On Windows 7 TeeChart 2012.06.120613 for Delphi 2010 the 2 years old bug TV52014935 is still not fixed.

Bert Kreisel

Yeray
Site Admin
Site Admin
Posts: 9613
Joined: Tue Dec 05, 2006 12:00 am
Location: Girona, Catalonia
Contact:

Re: Access denied with TeeExport

Post by Yeray » Mon Jun 25, 2012 4:07 pm

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?
Best Regards,
ImageYeray Alonso
Development & Support
Steema Software
Av. Montilivi 33, 17003 Girona, Catalonia (SP)
Image Image Image Image Image Image Please read our Bug Fixing Policy

Bert Kreisel
Newbie
Newbie
Posts: 19
Joined: Thu Jan 01, 1970 12:00 am

Re: Access denied with TeeExport

Post by Bert Kreisel » Tue Jun 26, 2012 6:28 am

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

Yeray
Site Admin
Site Admin
Posts: 9613
Joined: Tue Dec 05, 2006 12:00 am
Location: Girona, Catalonia
Contact:

Re: Access denied with TeeExport

Post by Yeray » Tue Jun 26, 2012 11:54 am

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.
Best Regards,
ImageYeray Alonso
Development & Support
Steema Software
Av. Montilivi 33, 17003 Girona, Catalonia (SP)
Image Image Image Image Image Image Please read our Bug Fixing Policy

Bert Kreisel
Newbie
Newbie
Posts: 19
Joined: Thu Jan 01, 1970 12:00 am

Re: Access denied with TeeExport

Post by Bert Kreisel » Tue Jun 26, 2012 12:43 pm

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

Yeray
Site Admin
Site Admin
Posts: 9613
Joined: Tue Dec 05, 2006 12:00 am
Location: Girona, Catalonia
Contact:

Re: Access denied with TeeExport

Post by Yeray » Wed Jun 27, 2012 7:47 am

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.
Best Regards,
ImageYeray Alonso
Development & Support
Steema Software
Av. Montilivi 33, 17003 Girona, Catalonia (SP)
Image Image Image Image Image Image Please read our Bug Fixing Policy

Bert Kreisel
Newbie
Newbie
Posts: 19
Joined: Thu Jan 01, 1970 12:00 am

Re: Access denied with TeeExport

Post by Bert Kreisel » Thu Jun 28, 2012 7:53 am

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

Yeray
Site Admin
Site Admin
Posts: 9613
Joined: Tue Dec 05, 2006 12:00 am
Location: Girona, Catalonia
Contact:

Re: Access denied with TeeExport

Post by Yeray » Fri Jun 29, 2012 10:12 am

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.
Best Regards,
ImageYeray Alonso
Development & Support
Steema Software
Av. Montilivi 33, 17003 Girona, Catalonia (SP)
Image Image Image Image Image Image Please read our Bug Fixing Policy

Post Reply