Access denied with TeeExport
Access denied with TeeExport
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) ?
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
Hello Ael,
Could you please, send us a simple example project because we can reproduce exactly your project here?
Thanks,
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 |
Instructions - How to post in this forum |
Re: Access denied with TeeExport
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.
Thank you for your help.
- Attachments
-
- ExportException.zip
- Sample project
- (84.68 KiB) Downloaded 712 times
Re: Access denied with TeeExport
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,
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 |
Instructions - How to post in this forum |
Re: Access denied with TeeExport
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.
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
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,
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 |
Instructions - How to post in this forum |
-
- Newbie
- Posts: 19
- Joined: Thu Jan 01, 1970 12:00 am
Re: Access denied with TeeExport
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
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
-
- Newbie
- Posts: 19
- Joined: Thu Jan 01, 1970 12:00 am
Re: Access denied with TeeExport
On Windows 7 TeeChart 2012.06.120613 for Delphi 2010 the 2 years old bug TV52014935 is still not fixed.
Bert Kreisel
Bert Kreisel
Re: Access denied with TeeExport
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?
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,
Yeray Alonso Development & Support Steema Software Av. Montilivi 33, 17003 Girona, Catalonia (SP) | |
Please read our Bug Fixing Policy |
-
- Newbie
- Posts: 19
- Joined: Thu Jan 01, 1970 12:00 am
Re: Access denied with TeeExport
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
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
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.
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,
Yeray Alonso Development & Support Steema Software Av. Montilivi 33, 17003 Girona, Catalonia (SP) | |
Please read our Bug Fixing Policy |
-
- Newbie
- Posts: 19
- Joined: Thu Jan 01, 1970 12:00 am
Re: Access denied with TeeExport
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
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
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.
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,
Yeray Alonso Development & Support Steema Software Av. Montilivi 33, 17003 Girona, Catalonia (SP) | |
Please read our Bug Fixing Policy |
-
- Newbie
- Posts: 19
- Joined: Thu Jan 01, 1970 12:00 am
Re: Access denied with TeeExport
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
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
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.
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,
Yeray Alonso Development & Support Steema Software Av. Montilivi 33, 17003 Girona, Catalonia (SP) | |
Please read our Bug Fixing Policy |