|
-
Dec 31st, 2004, 06:21 PM
#1
Thread Starter
Addicted Member
auto fit to screen
hi,
when i display my cystal report in the screen, it automatically show 100%.
how to set it to "Fit to Page" everytime i view it?
-
Dec 31st, 2004, 06:38 PM
#2
Re: auto fit to screen
Are you using the report viewer control? What version of CR? How are you
currently displaying the report (code)?
VB/Office Guru™ (AKA: Gangsta Yoda™ ®)
I dont answer coding questions via PM. Please post a thread in the appropriate forum. 
Microsoft MVP 2006-2011
Office Development FAQ (C#, VB.NET, VB 6, VBA)
Senior Jedi Software Engineer MCP (VB 6 & .NET), BSEE, CET
If a post has helped you then Please Rate it! 
• Reps & Rating Posts • VS.NET on Vista • Multiple .NET Framework Versions • Office Primary Interop Assemblies • VB/Office Guru™ Word SpellChecker™.NET • VB/Office Guru™ Word SpellChecker™ VB6 • VB.NET Attributes Ex. • Outlook Global Address List • API Viewer utility • .NET API Viewer Utility •
System: Intel i7 6850K, Geforce GTX1060, Samsung M.2 1 TB & SATA 500 GB, 32 GBs DDR4 3300 Quad Channel RAM, 2 Viewsonic 24" LCDs, Windows 10, Office 2016, VS 2019, VB6 SP6 
-
Dec 31st, 2004, 07:46 PM
#3
Thread Starter
Addicted Member
Re: auto fit to screen
yes... im using report viewer control....
cyrtal report 9.2
something like
ReportViewer.ReportSource = bla bla
-
Dec 31st, 2004, 08:49 PM
#4
Re: auto fit to screen
Ok, try this...
VB Code:
Option Explicit
'Add reference to CR Viewer Control
'Add reference to CR x.x ActiveX Designer RunTime Library
Private Sub Command1_Click()
'1 = Page Width
'2 = Whole Page
'3 = 400%
'4 = 300%
'5 = 200%
'6 = 150%
'7 = 100%
'8 = 75%
'9 = 50%
'10 = 25%
CRViewer1.Zoom 2
End Sub
Private Sub Form_Load()
Dim oReport As CRAXDRT.Report
Dim crxApplication As CRAXDRT.Application
Set crxApplication = New CRAXDRT.Application
Set oReport = crxApplication.OpenReport("D:\Report1.rpt", 1)
CRViewer1.ReportSource = oReport
CRViewer1.ViewReport
End Sub
VB/Office Guru™ (AKA: Gangsta Yoda™ ®)
I dont answer coding questions via PM. Please post a thread in the appropriate forum. 
Microsoft MVP 2006-2011
Office Development FAQ (C#, VB.NET, VB 6, VBA)
Senior Jedi Software Engineer MCP (VB 6 & .NET), BSEE, CET
If a post has helped you then Please Rate it! 
• Reps & Rating Posts • VS.NET on Vista • Multiple .NET Framework Versions • Office Primary Interop Assemblies • VB/Office Guru™ Word SpellChecker™.NET • VB/Office Guru™ Word SpellChecker™ VB6 • VB.NET Attributes Ex. • Outlook Global Address List • API Viewer utility • .NET API Viewer Utility •
System: Intel i7 6850K, Geforce GTX1060, Samsung M.2 1 TB & SATA 500 GB, 32 GBs DDR4 3300 Quad Channel RAM, 2 Viewsonic 24" LCDs, Windows 10, Office 2016, VS 2019, VB6 SP6 
-
Dec 31st, 2004, 10:39 PM
#5
Thread Starter
Addicted Member
Re: auto fit to screen
i have another question, do u have any idea to change report paper size?
my customer use custom paper to print out the receipt using pin printer,
the width of the paper same with Letter size, but the Height is half of fanfold size..
do you have any idea ?
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
|