Reply
 
LinkBack Thread Tools Display Modes
Old 06-04-2008, 11:09 PM   #1 (permalink)
Program Manager
 
RandyB's Avatar
 
Join Date: Mar 2006
Location: Concord, CA
Posts: 353
RandyB has a reputation beyond reputeRandyB has a reputation beyond reputeRandyB has a reputation beyond reputeRandyB has a reputation beyond reputeRandyB has a reputation beyond reputeRandyB has a reputation beyond reputeRandyB has a reputation beyond reputeRandyB has a reputation beyond reputeRandyB has a reputation beyond reputeRandyB has a reputation beyond reputeRandyB has a reputation beyond repute
Default Custom Page Sizes

I think I figured out how to set a custom page size on a custom report. Try adding this VB code to the ActiveReports_ReportStart event:

Sub ActiveReport_ReportStart
rpt.Document.Printer.PrinterName = ""
rpt.Document.Printer.PaperKind = System.Drawing.Printing.PaperKind.Custom
Dim pWidth As Integer = 8.5 * 100 ' = 8.5" page width
Dim pLength As Integer = 1000 * 100 ' = 1000" page width
rpt.Document.Printer.PaperSize = New System.Drawing.Printing.PaperSize("Custom Paper Size",pWidth,pLength)
- Randy

Last edited by RandyB; 06-04-2008 at 11:15 PM.
RandyB is offline   Reply With Quote
Old 06-12-2008, 08:11 AM   #2 (permalink)
Senior Member
 
Join Date: Jul 2006
Posts: 182
Memphix is on a distinguished road
Default

Could you expand on this Randy. The preview appears to be the same still... I've tried to modify it (guessing the 1000" page width is the page length?
Memphix is offline   Reply With Quote
Old 06-18-2008, 10:19 PM   #3 (permalink)
Program Manager
 
RandyB's Avatar
 
Join Date: Mar 2006
Location: Concord, CA
Posts: 353
RandyB has a reputation beyond reputeRandyB has a reputation beyond reputeRandyB has a reputation beyond reputeRandyB has a reputation beyond reputeRandyB has a reputation beyond reputeRandyB has a reputation beyond reputeRandyB has a reputation beyond reputeRandyB has a reputation beyond reputeRandyB has a reputation beyond reputeRandyB has a reputation beyond reputeRandyB has a reputation beyond repute
Default

If you scroll down, you should notice that the first page virtually never ends (actually it does, just 1000" later). It just keeps going and going. The page width (pWidth) is 8.5" so that's actually the same as the default.

pWidth = Page Width in units of .01". So pWidth = 850 is 8.5" paper
pLength = Page Length in units of .01". So pLength = 1100 is 11" paper
RandyB is offline   Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
AutoCAD Custom Objects & Visio fryeguy Import and Export 2 01-30-2009 03:37 PM
Custom Visio Template for SI5 fryeguy Visio Title Block Template 0 08-11-2008 06:04 PM
Custom Interconnects... Again... bfourney 'How Do I' Questions 4 08-24-2007 07:24 AM
Visio page name & number kevink Bugs Section 4 07-19-2007 07:16 PM
Custom Proposal - Page Wise. jdhone Reports and Reporting Center 2 07-18-2007 08:33 PM


All times are GMT. The time now is 08:20 PM.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.3.0
D-Tools, Inc.