We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. (Last updated on : Nov 16th 2018).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

Print Preview of Grid

Thread ID:

Created:

Updated:

Platform:

Replies:

15173 Jun 14,2004 01:53 AM UTC Jun 16,2004 12:18 PM UTC WinForms 10
loading
Tags: GridControl
Lori S. Pearsall
Asked On June 14, 2004 01:53 AM UTC

I''m executing the following code for a Print Preview of a GDBG : GridPrintDocument gpdPrintGrid = new GridPrintDocument(this, true); pdPrintGrid.DefaultPageSettings.Landscape = this.PrintLandscape; PrintPreviewDialog dlg = new PrintPreviewDialog() ; dlg.Document = gpdPrintGrid; dlg.ShowDialog(); The dialog is displayed but the Zoom button doesn''t seem to work. Nothing happens when clicking the button and the dropdown doesn''t display. Right now the test grid only generates one page. Am I missing something? Lori

Administrator [Syncfusion]
Replied On June 14, 2004 06:14 AM UTC

This sample works OK for me. Does it work OK for you? If not what version of our grid are you using? PrintPreview_8756.zip

Lori S. Pearsall
Replied On June 15, 2004 01:55 AM UTC

Every sample I''ve run works for me - except for my project! It''s a GDBG in a navigation control. I''ve included an image of what it looks like in the Print Preview dialog. I don''t know what other clues to give. - I''m handling PrepareViewStyleInfo - The last four columns in the second row are PushButtons printpreviewproblem_7144.zip

Lori S. Pearsall
Replied On June 15, 2004 02:02 AM UTC

Couple of more details ... - The GDBG is contained in a GridRecordNavigationControl that is on a TabControlAdv control. - The TabControlAdv control is on an MDI child form that is using Essential Tools XPMenus.

Lori S. Pearsall
Replied On June 15, 2004 02:10 AM UTC

I forgot - my version is 2.0.5.1 using VS Studio 2003. Are there any events that I might be handling that would affect the Zoom dropdown?

Administrator [Syncfusion]
Replied On June 15, 2004 01:49 PM UTC

The PrintPreview support is part of the standard .NET Framework class so I am not sure what grid events would effect this. I tried to do a MDI project with a TabControlAdv and a GridDataBoundGrid on the second tab. The print preview seems to work ok in this sample. MDI_8798.zip If you can attach a sample showing the problem, maybe we can spot something here.

Lori S. Pearsall
Replied On June 15, 2004 04:11 PM UTC

I can''t seem to produce a sample that has the problem - except for my full-blown project. I''ve set breakpoints and have examined PrintPreviewDialog. There is a DropDownMenu and it does have items in it (9 to be exact), but it''s as if the ButtonDropDown event isn''t even wired. I''ve compared the PrintPreviewDialogs between my project and a working sample and I see no differences. I give up unless you have any other suggestions!

Lori S. Pearsall
Replied On June 15, 2004 10:15 PM UTC

The mystery deepens - I don''t know whether this is a grid or XPMenus issue. I''ve been running the code I had listed above from a context menu (XPMenus.PopupMenu). This causes the Zoom button to be inactive. I''ve now incorporated this same button into a child menu that gets merged into a parent (XPMenus) and the Zoom button works fine. This is the same BarItem being hooked into both a menu & popup structure and, therefore, the same Click event code is being executed.

Administrator [Syncfusion]
Replied On June 16, 2004 11:01 AM UTC

For your popup menu, try setting PopupMenu.SynchronousPopup = false to see if that affects this problem.

Lori S. Pearsall
Replied On June 16, 2004 11:51 AM UTC

Unfortunately, the Tools.XPMenus.PopupMenu doesn''t have that property.

Lori S. Pearsall
Replied On June 16, 2004 12:18 PM UTC

I''m mistaken - SynchronousPopup isn''t in the Class Reference but it is present on the popup. And ... it works!! Great catch!

CONFIRMATION

This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

Warning Icon You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.Close Icon

;