We are currently pre-testing an application with Application Verifier before getting it certified for Windows Vista. The application contains a Windows Form with an Ultra Grid, UltraPrintPreviewDialog and UltraGridPrintDocument controls. Under normal conditions all works well.
When running the application under Application Verifier and during the selection of a button that sends the grid data to a Print Preview Dialog, the Print Preview window appears but with no data and a message stating "No Printers Are Installed"
Might someone lend some advice on what within the use of PrintPreviewDialog might be causing this issue? I've included the code below.
)
SourceGrid
"Employee"
UltraGridPrintDocument1.Grid = ugEmployee
UltraGridPrintDocument1.DefaultPageSettings.Landscape =
True
UltraGridPrintDocument1.DefaultPageSettings.Margins.Left = 0.25
UltraGridPrintDocument1.DefaultPageSettings.Margins.Right = 0.25
UltraGridPrintDocument1.DefaultPageSettings.Margins.Top = 0.25
UltraGridPrintDocument1.DefaultPageSettings.Margins.Bottom = 0.25
UltraGridPrintDocument1.Header.TextLeft =
"Employee Information"
"Substitute"
UltraGridPrintDocument1.Grid = ugSubstitutes
"Substitute Information"
Select
UltraGridPrintDocument1.Footer.TextLeft =
.Today.ToString
UltraPrintPreviewDialog1.Document = UltraGridPrintDocument1
UltraPrintPreviewDialog1.ShowDialog(
Sub
I'm not familiar with Application Verifier.So I can't say how it works or why it would be causing an error here.
I assume, since you are reporting this as a problem, that there actually are printers installed on the machine?
Is it possible that Application Verifier is testing to make sure the application does not crash when no printers are installed, and therefore the behavior you are seeing is correct?