Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 9
Default Print Preview Office 2007?

Hi There,

I'm trying to get print preview to work from a form in office 2007.
The form needs to have showmodal=true. In previous versions of offce
I
could hide the form, then open print preview and everything would
work.


In 2007 I hide the form, open print preview and all the buttons are
grayed out. If I set the showmodal property on the form which calls
the print preview = false everything works. I don't want to set the
showmodal to false. I just want to hide the form and open the print
preview. Any suggestions? I was thinking of programatically switching
the modal property but apparently that can only be set at runtime.


Thanks,
Gil
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 533
Default Print Preview Office 2007?

I just threw together a quick example like this:

Private Sub CommandButton1_Click()
Me.Hide
Sheet1.PrintPreview
Me.Show
End Sub

and it worked the same in Excel 2007 as 2003. All buttons in Print Preview
were enabled. Your situation must have another wrinkle or two.

--
Jim
"Gil" wrote in message
...
Hi There,

I'm trying to get print preview to work from a form in office 2007.
The form needs to have showmodal=true. In previous versions of offce
I
could hide the form, then open print preview and everything would
work.


In 2007 I hide the form, open print preview and all the buttons are
grayed out. If I set the showmodal property on the form which calls
the print preview = false everything works. I don't want to set the
showmodal to false. I just want to hide the form and open the print
preview. Any suggestions? I was thinking of programatically switching
the modal property but apparently that can only be set at runtime.


Thanks,
Gil



  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 9
Default Print Preview Office 2007?

On Sep 6, 11:56*am, "Jim Rech" wrote:
I just threw together a quick example like this:

Private Sub CommandButton1_Click()
* * Me.Hide
* * Sheet1.PrintPreview
* * Me.Show
End Sub

and it worked the same in Excel 2007 as 2003. *All buttons inPrintPreview
were enabled. *Your situation must have another wrinkle or two.

--
Jim"Gil" wrote in message

...



Hi There,


I'm trying to getprintpreviewto work from a form in office 2007.
The form needs to have showmodal=true. In previous versions of offce
I
could hide the form, then openprintpreviewand everything would
work.


In 2007 I hide the form, openprintpreviewand all the buttons are
grayed out. If I set the showmodal property on the form which calls
theprintpreview= false everything works. I don't want to set the
showmodal to false. I just want to hide the form and open theprint
preview. Any suggestions? I was thinking of programatically switching
the modal property but apparently that can only be set at runtime.


Thanks,
Gil- Hide quoted text -


- Show quoted text -


Jim,

Did you have showmodal=true on the form?

Thanks,
Gil
  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2,718
Default Print Preview Office 2007?

No because modal is the default.

--
Jim
"Gil" wrote in message
...
On Sep 6, 11:56 am, "Jim Rech" wrote:
I just threw together a quick example like this:

Private Sub CommandButton1_Click()
Me.Hide
Sheet1.PrintPreview
Me.Show
End Sub

and it worked the same in Excel 2007 as 2003. All buttons inPrintPreview
were enabled. Your situation must have another wrinkle or two.

--
Jim"Gil" wrote in message

...



Hi There,


I'm trying to getprintpreviewto work from a form in office 2007.
The form needs to have showmodal=true. In previous versions of offce
I
could hide the form, then openprintpreviewand everything would
work.


In 2007 I hide the form, openprintpreviewand all the buttons are
grayed out. If I set the showmodal property on the form which calls
theprintpreview= false everything works. I don't want to set the
showmodal to false. I just want to hide the form and open theprint
preview. Any suggestions? I was thinking of programatically switching
the modal property but apparently that can only be set at runtime.


Thanks,
Gil- Hide quoted text -


- Show quoted text -


Jim,

Did you have showmodal=true on the form?

Thanks,
Gil

  #5   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 9
Default Print Preview Office 2007?

On Sep 8, 9:57*am, "Jim Rech" wrote:
No because modal is the default.

--
Jim"Gil" wrote in message

...
On Sep 6, 11:56 am, "Jim Rech" wrote:





I just threw together a quick example like this:


Private Sub CommandButton1_Click()
Me.Hide
Sheet1.PrintPreview
Me.Show
End Sub


and it worked the same in Excel 2007 as 2003. All buttons inPrintPreview
were enabled. Your situation must have another wrinkle or two.


--
Jim"Gil" wrote in message


....


Hi There,


I'm trying to getprintpreviewto work from a form in office 2007.
The form needs to have showmodal=true. In previous versions of offce
I
could hide the form, then openprintpreviewand everything would
work.


In 2007 I hide the form, openprintpreviewand all the buttons are
grayed out. If I set the showmodal property on the form which calls
theprintpreview= false everything works. I don't want to set the
showmodal to false. I just want to hide the form and open theprint
preview. Any suggestions? I was thinking of programatically switching
the modal property but apparently that can only be set at runtime.


Thanks,
Gil- Hide quoted text -


- Show quoted text -


Jim,

Did you have showmodal=true on the form?

Thanks,
Gil- Hide quoted text -

- Show quoted text -


My problem is that modal and has to be set to true and then I can not
do a print preview after hiding the form...
Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

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
Print Preview in 2007 Steve Excel Discussion (Misc queries) 0 February 11th 10 09:32 PM
ShowModal, Hide Form, Print Preview Office 2007 Gil[_5_] Excel Programming 2 August 4th 08 09:53 PM
My office 2007 live preview function is not working. Know why?? firemandpp Excel Discussion (Misc queries) 2 March 21st 08 01:39 PM
Problem w/Print Preview since upgrade to office 2003 Meenie Excel Discussion (Misc queries) 2 May 24th 07 06:16 PM
Print and Print Preview Graphic Moving Resizing 2007/2003 Adam Rayburn Excel Discussion (Misc queries) 0 April 4th 07 04:18 PM


All times are GMT +1. The time now is 11:22 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"