The Infragistics site says the PrintPreview and PrintDocument controls are "drop-in" replacements for the default windows variations. How do you call the UltraPrintPreview instead of the normal control.PrintPreview() ?
No, these components do not provide the ability to print an arbitrary control. You would need to write your own PrintDocument class or use the UltraPrintDocument (which as documented in that article is just a .net PrintDocument that provides header/footer functionality) and handle rendering to the Graphics object handed to the print events (e.g. PrintPage).
With regards to UltraWinGrid, the article that I linked to mentioned the UltraGridPrintDocument. If you want to use the UltraPrintPreviewDialog and/or UltraPrintPreviewControl then you would use an UltraGridPrintDocument, set its Grid property to your UltraGrid and then associate the print document with the UltraPrintPreviewDialog or UltraPrintPreviewControl (settings its Document property).
I am referring to your controls. Can these controls only be used in conjunctions with your other controls, like the UltraWinGrid, or can I print content of any form or control in my application? If so,how?
"UltraPrintPreviewDialogThis component is a derived form that includes an instance of our UltraToolbarsManager, UltraStatusBar, UltraPrintPreviewControl and UltraPrintPreviewThumbnail to provide a replacement for the inbox PrintPreviewDialog that provides functionality similar to that found in Adobe Acrobat and the print preview of MS Word."
"UltraPrintDocumentThis component is derived from the .Net PrintDocument class and provides basic header and footer functionality. NetAdvantage includes several custom printdocument classes that derive from this including the UltraSchedulePrintDocument and UltraGridPrintDocument. There is also a sample included which includes a custom printdocument that derives from UltraPrintDocument and provides the ability to print the contents of a .Net RichTextBox. "
"UltraPrintPreviewControlThis control provides the ability to display previews of pages rendered using any .Net PrintDocument class and includes all the functionality of the inbox PrintPreviewControl as well as many other capabilities. As described for the UltraPrintPreviewThumbnail, the UltraPrintPreviewControl and UltraPrintPreviewThumbnail derive from a common base control class that provides basic functionality such as zoom, zoom mode, page numbers, deferred/immediate scrolling, scroll tips, mouse panning, etc. In addition, the UltraPrintPreviewControl includes 5 different mouse actions that may be used to manipulate the view via the mouse. These include the ability to lasso a section on which to zoom into, to zoom out using a lasso, to increase the zoom dynamically while dragging the mouse up or down, to copy a section of a page to the clipboard and also to move the portion of the page that is in view."
I'm not sure exactly what PrintPreview method you are referring to as neither the .net PrintDocument, PrintPreviewControl or PrintPreviewDialog classes have a PrintPreview method. The following article discusses the print related WinForms components included in the NetAdvantange:
http://devcenter.infragistics.com/Support/KnowledgeBaseArticle.aspx?ArticleID=8278