Where minds and technology meet.
SharpGraph for .NET
ActiveBar
DynamiCube
ActiveReports
Data Dynamics Reports
ActiveAnalysis
ActiveReports for COM
Other
Download Trial Versions
Download Updates
ActiveBar
DynamiCube
SharpGrid
SharpUI
ActiveSizer
ActiveReports
Data Dynamics Reports
ActiveAnalysis
ActiveReports for COM
Other
ActiveBar
DynamiCube
SharpGrid
SharpUI
ActiveSizer
ActiveReports
Data Dynamics Reports
ActiveReports for COM
Other
ActiveReports
Data Dynamics Reports
ActiveAnalysis
Exporting Online Help
Standard Edition Online Help
Professional Edition Online Help
ActiveBar
DynamiCube
SharpGrid
SharpUI
ActiveSizer
ActiveReports
Data Dynamics Reports
ActiveAnalysis
ActiveReports for COM
Other
Support Forums
Support Options
Submit Support Request
Frequently Asked Questions
Knowledge Base
Videos
Documentation
About Us
Customers
Case Studies
Testimonials
Awards
Press
Resellers
Contact us
PRODUCTS
PRODUCTS
DOWNLOADS
DOWNLOADS
SUPPORT
SUPPORT
ORDER
ORDER
COMPANY
COMPANY
Welcome to GrapeCity
Sign in
|
Join
|
Faq
Forums
Videos
Blog
Twitter
Portal Home
ActiveReports
Data Dynamics Reports
ActiveAnalysis
Forums
Home
support.activereports2.stdedition
Started by webadmin@datadynamics.com at 08-27-2003 12:00 AM. Topic has 0 replies.
GrapeCity
»
Forum Archives
»
support.activer...
»
Re: Security permissions and .FileName troubles
Search
Sort Posts:
Oldest to newest
Newest to oldest
08-27-2003, 12:00 AM
webadmin@datadynamics.com
Joined on 12-12-2005
Posts 0
Re: Security permissions and .FileName troubles
Originally Posted By: Trent Snow - DD<ActiveReports.Support@DataDynamics.com>
Hello Rick--
What build are you running?
Did the project that I posted work okay for you?
"Rick Blyth"
wrote in message
news:wKjcZAIbDHA.1892@dynaweb.datadynamics.com...
> Hi,
>
> I've compared the code structure in your project to mine and I can't see
why
> mine would behave any differently. Here is my function - I use a property
> Let to set the m_strFilename variable.
>
>
>
>
> Public Function ExportToByteArray(ByVal objReport As IReport, _
> ByVal intExportFormat As ExportFormats)
As
> Variant
>
> On Error GoTo Error_Handler
>
> Dim objPDF As ActiveReportsPDFExport.ARExportPDF
> Dim objExcel As ActiveReportsExcelExport.ARExportExcel
> Dim objRTF As ActiveReportsRTFExport.ARExportRTF
> Dim varByteArray As Variant
>
>
> objReport.Export
> With objReport.Report
> .Printer.DeviceName = ""
> 'cancel the display of any message boxes with error messages if an
> error would occur
> .ShowMessages = False
> .Run False
>
> If .Pages.Count > 0 Then
> Select Case intExportFormat
> Case ExportPDF
> Set objPDF = New ActiveReportsPDFExport.ARExportPDF
> objPDF.FileName = m_strFilename
> objPDF.ExportStream .Pages, varByteArray
> Case ExportRTF
> Set objRTF = New ActiveReportsRTFExport.ARExportRTF
> objRTF.ExportStream .Pages, varByteArray
> Case ExportExcel
> Set objExcel = New
> ActiveReportsExcelExport.ARExportExcel
> objExcel.ExportStream .Pages, varByteArray
> End Select
> End If
> End With
> ExportToByteArray = varByteArray
> Exit Function
>
> Error_Handler:
> Err.Raise Err.Number, App.Title & "." & m_strClassName &
> ".ExportToByteArray", Err.Source & ": " & Err.Description
> End Function
>
>
>
>
> "Trent Snow - DD"
wrote in
message
> news:tUdKVi$aDHA.2284@dynaweb.datadynamics.com...
> > Hello Rick--
> >
> > I tried to reproduce this behavior in the attached project and it seems
to
> > work fine for me. I at first forgot to give my IUSR permission to the
> Temp
> > folder but after I did that it worked fine. Can you take a look at the
> > attached project and let me know if this one works for you?
> >
> > "Rick Blyth"
wrote in message
> > news:I67ldI9aDHA.1908@dynaweb.datadynamics.com...
> > > Hi,
> > >
> > > After reading various KB articles I thought i'd found out the problem
to
> > > this but I can't see what i'm doing wrong.
> > >
> > > If I pass a filename like "report.pdf" to the DownloadFromByteArray
> method
> > > then my report streams down and opens fine. If however, I try and
create
> > the
> > > temp files anywhere else (eg, pass in
> "C:\inetpub\wwwroot\test\test.pdf" )
> > > then it prompts the user to 'Open or Save' the document. I've got
> exactly
> > > the same permissions on my web application folder as I do for the
> system32
> > > folder (both IUSR...... and IWAM...... accounts have read/write access
> > etc).
> > >
> > > Please help me out guys.
> > >
> > > TIA
> > >
> > >
> >
> >
> >
>
>
Report
GrapeCity
»
Forum Archives
»
support.activer...
»
Re: Security permissions and .FileName troubles
(please select)
Forums Home
|- Search Forums
|- Active Topics
|- Unanswered Posts
User Options
|- Sign In
|- Join this community
|- Forgot Password
Announcements
|- ActiveBar Announcements
|- ActiveReports Announcements
|- ActiveReports for .NET Announcements
|- ActiveSizer Announcements
|- Data Dynamics WebSite Announcements
|- DynamiCube Announcements
|- SharpGraph for .NET Announcements
|- SharpGrid Announcements
|- SharpUI for .NET Announcements
|- Data Dynamics Reports Announcements
|- GrapeCity ActiveAnalysis Announcements
Frequently Asked Questions
|- ActiveReports 2.0 FAQ
|- ActiveSizer FAQ
|- DynamiCube FAQ
|- SharpGrid FAQ
|- ActiveReports for .NET FAQ
|- ActiveBar FAQ
|- SharpUI for .NET FAQ
Product Support
|- ActiveBar Support
|- Data Dynamics Analysis Support
|- ActiveReports 6 Support
|- GrapeCity ActiveAnalysis Support
|- ActiveReports for .NET 3.0 Support
|- ActiveReports for .NET 2.0 Support
|- ActiveReports for .NET Support
|- ActiveReports 2.0 (Visual Basic 6.0) Support
|- ActiveSizer Support
|- DynamiCube Support
|- SharpGraph for .NET Support
|- SharpGrid Support
|- SharpUI for .NET Support
|- Data Dynamics Reports Support
Knowledge Base
|- KnowledgeBase for SharpUI for .NET
|- KnowledgeBase for ActiveCube
|- KnowledgeBase for ActiveReports
|- KnowledgeBase for ActiveBar
|- KnowledgeBase for ActiveReports for .NET
|- KnowledgeBase for SharpGrid
|- KnowledgeBase for ActiveSizer
|- KnowledgeBase for DynamiCube
|- KnowledgeBase for SharpGraph for .NET
|- KnowledgeBase for Data Dynamics Reports
Forum Archives
|- ActiveReports for .NET 2.0 Visual Studio .NET 2005 Support
|- ActiveBar 3.0 Beta Support
|- support.activebar2.general
|- support.activereports.general
|- support.activereports.net
|- support.activereports2.stdedition
|- support.activereports2.proedition
|- support.activesizer.general
|- support.announcements
|- support.dcube.c++
|- support.dcube.delphi
|- support.dcube.ie
|- support.dcube.misc
|- support.dcube.vb
|- support.dcube.vfp
|- support.sharpgrid.general
Product Downloads
|- ActiveSizer Downloads
|- SharpUI for .NET Downloads
|- ActiveReports for .NET Downloads
|- ActiveCube Downloads
|- ActiveReports Downloads
|- ActiveBar Downloads
|- SharpGrid Downloads
|- ActiveReports for .NET 2.0 Downloads
|- SharpGraph for .NET Downloads
|- DynamiCube Downloads
|- ActiveReports for .NET 3.0 Downloads
|- ActiveReports 6 Downloads
|- Data Dynamics Reports Downloads
Web Site Feedback
|- Web Site Feedback
Employment Opportunities
|- Employment Opportunities
Contact Us
Privacy Policy
| Copyright © 1997-2012 — GrapeCity, inc.