2.7 KiB
2.7 KiB
PDFGenerator-dontSaveOnline Documentation
Overview
PDFGenerator-dontSaveOnline is a variant of the main PDFGenerator component, specifically designed for offline document generation and testing purposes. It maintains all the core PDF generation capabilities while providing flexible storage options.
Key Features
Storage Management
- No automatic online database storage
- Configurable via
SavePDFtoDISK
in App.config - Storage options:
- Local filesystem
- Selective saving
- Custom storage paths
Configuration
SavePDFtoDISK_Folder
: Defines local storage path- Separate testing database (
C6StampeCentralizzate_Testing
) - Flexible save behavior configuration
- Custom error handling settings
Core Functionality
- Maintains all PDFGenerator rendering capabilities
- Chart generation and image handling
- Support for all report types
- Custom database error management
Use Cases
-
Development
- Template testing
- Layout verification
- Feature development
- Debug sessions
-
Testing
- Offline document generation
- Format validation
- Content verification
- Performance testing
-
Document Preview
- Pre-production verification
- Layout checks
- Content review
- Format validation
Differences from Standard PDFGenerator
Storage
- Standard: Automatic online storage
- dontSaveOnline: Configurable local storage
Database
- Standard: Production database
- dontSaveOnline: Testing database
Error Handling
- Standard: Production logging
- dontSaveOnline: Development-focused logging
Configuration
- Standard: Fixed production settings
- dontSaveOnline: Flexible configuration
Configuration Settings
App.config Parameters
<add key="SavePDFtoDISK" value="1" />
<add key="SavePDFtoDISK_Folder" value="path/to/storage" />
Database Connection
<add name="SqlServerStampeC6Connection"
connectionString="Data Source=10.14.152.19;
Database=C6StampeCentralizzate_Testing;
User Id=C6Report;
Password=C6Report;
Max Pool Size=10"/>
Best Practices
-
Development
- Use for all development work
- Test new templates offline
- Verify layouts before production
-
Testing
- Run comprehensive tests
- Validate document generation
- Check error handling
-
Maintenance
- Regular configuration review
- Path validation
- Error log monitoring
Integration
Development Workflow
- Create/modify templates
- Generate test documents
- Verify output locally
- Deploy to production
Testing Workflow
- Configure test environment
- Generate sample documents
- Validate output
- Document issues