|
-
Jun 7th, 2005, 06:30 AM
#1
Thread Starter
Addicted Member
Paper size and orientation in CR9
The requirement: Generate report in CR 9, export in PDF/Excel/Text format and view the output file
The Method used : Wrote a Activex dll which will generate and export the report. The report name, output format, paper size and orientation properties that are settable in the dll.
The Problem: When the dll is called from ASP, the paper size and orientation properties are being ignored where as when called from VB it works on the same PC. I'm working on Win XP and using the IIS on it for testing.
A part of the code is
Dim ReportApp As New CRAXDRT.Application
Dim ReportObject As CRAXDRT.Report
Set ReportObject = ReportApp.OpenReport(mReport, 1)
With ReportObject
With .ExportOptions
.DestinationType = crEDTDiskFile
.FormatType = mFileFormat 'crEFTPortableDocFormat
.DiskFileName = mOutputName
End With
.PaperSize = mPaperSize
.PaperOrientation = mPaperOrientation
.Export False
End With
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|