Hi All,
Is there any option to show print dialog box in print preview ?
Purpose : I want to show the print dialog to select the printer name for installed printer in the system and want to change the page settings and paper size etc (the options provided in print dialog box)
Thanks in advance...
sskanna1982 said:1: I want to show an image in the header. I am trying with the below codethis.ultraGridPrintDocument1.Header.Appearance.Image = @"D:\Projects\Grid Print\WinGrid_PrintExportSelectedRows_2005V2_CS\bin\Images\favicon.jpeg"; but i am not getting any error message and image in header also.
1: I want to show an image in the header. I am trying with the below code
this.ultraGridPrintDocument1.Header.Appearance.Image = @"D:\Projects\Grid Print\WinGrid_PrintExportSelectedRows_2005V2_CS\bin\Images\favicon.jpeg";
but i am not getting any error message and image in header also.
Remember that the Appearance class is used by many objects over many controls. So not every object supports every property of the appearance. My guess it the Header simply does not support images. But note that Image is generally for showing an image with text. If you just want an image with no text, you can probably use ImageBackGround instead of Image, and I am pretty sure that is supported.
sskanna1982 said:2: In the footer the page number is display like Page 1 (with use of below code). e.DefaultLogicalPageLayoutInfo.PageFooter = "Page <#>."; I want this like Page 1 of n or 1/n, is there any option ?
2: In the footer the page number is display like Page 1 (with use of below code).
e.DefaultLogicalPageLayoutInfo.PageFooter = "Page <#>.";
I want this like Page 1 of n or 1/n, is there any option ?
I don't think this is possible. In order to determine the total number of pages, the grid would have to print twice - once just to determine the page count, and then a second time to fill in the page numbers. So this is currently not supported.
Yes Mike,
Using ultraPrintPreviewDialog and ultraGridPrintDocument controls i done it.
One two more things,
Could you / anyone please suggest on this !
Thanks again in advance !!!
I imagine you mean the Page Setup dialog. You can't show this from the preview dialog, because changing the page settings would change the preview and the whole thing would have to be regenerated. So you need to show the page setup first. I think this KB article will help you:
HOWTO:UltraWinGrid Printing Grid Content