|
-
Feb 16th, 2005, 02:18 PM
#1
Thread Starter
Junior Member
view pdf fullscreen in .net
Does anyone know how to view a pdf file in fullscreen, without any menu (pages, etc information) on the left side of the pdf.ocx. Maybe how to read a pdf into a picturebox. I know how to remove the toolbar etc.
Last edited by jbhansen; Feb 16th, 2005 at 04:46 PM.
-
Feb 16th, 2005, 02:21 PM
#2
Re: view pdf fullscreen in .net
Welcome to the Forums.
You can use a javascript file to enable/disable/add/remove menus and toolbars. Then when you start
a process on Acrobat with your document as an argument you will get the results you want or close to it.
Only drawback is that if the user installs Acrobat Reader to a different location you will need to find it.
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 
-
Feb 16th, 2005, 02:35 PM
#3
Thread Starter
Junior Member
Re: view pdf fullscreen in .net
Thanks, I am a newbie. Could you give me an excample of the process to remove the left toolbar.
As mentioned I know how to remove the toolbar.
AxAcroPDF1.setShowToolbar(False)
Thanks in advance.
-
Feb 16th, 2005, 03:05 PM
#4
Thread Starter
Junior Member
Re: view pdf fullscreen in .net
Thanks, I am a newbie. Could you give me an excample of the process to remove the left toolbar.
As mentioned I know how to remove the toolbar.
AxAcroPDF1.setShowToolbar(False)
Thanks in advance
 Originally Posted by RobDog888
Welcome to the Forums.
You can use a javascript file to enable/disable/add/remove menus and toolbars. Then when you start
a process on Acrobat with your document as an argument you will get the results you want or close to it.
Only drawback is that if the user installs Acrobat Reader to a different location you will need to find it.
-
Feb 16th, 2005, 03:54 PM
#5
Re: view pdf fullscreen in .net
Dont forget the drawback that to re-enable/show them you need to restart Acrobat with either
the code commented or remove the js file.
Code:
disclosed = true;
var sPlatform = app.viewerVariation;
var sLogin = identity.loginName;
var sPos = "5";
if (sPlatform == "Reader") {
sPos = "5";
}
if (sPlatform == "Fill-In") {
sPos = "5";
}
if (sPlatform == "Full") {
sPos = "7";
}
//HIDE MENU ITEMS
app.hideMenuItem("Save");
//HIDE TOOLBARBUTTONS
app.hideToolbarButton("Save");
//DETERMINE THE USER LEVEL OF CONTROL
var sTemp = sLogin.toUpperCase();
switch (sTemp) {
case 'ROBDOG888' :
app.alert('Full Control Allowed To User: ' + sTemp,3,0);
default :
app.alert('Controlled Access Only!',3,0);
}
The js file must go in the directory -
?:\Program Files\Adobe\Acrobat x.0\Reader\Javascripts\
HTH
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 
-
Feb 16th, 2005, 04:47 PM
#6
Thread Starter
Junior Member
Re: view pdf fullscreen in .net
Thanks a lot, it worked great.
-
Feb 16th, 2005, 06:06 PM
#7
Re: view pdf fullscreen in .net
No prob. Glad to help.
Actually that took me some time to figure out back when I did some development with Acrobat.
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 
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
|