IonicWind Software

Aurora Compiler => Coding Help - Aurora 101 => Topic started by: John S on December 20, 2007, 03:36:00 AM

Title: trouble using PrintWindow()
Post by: John S on December 20, 2007, 03:36:00 AM
I'm having trouble with PrintWindow()

I have a data plot in a window and I have been able to print it out using PrintWindow() to the printer, but the printout is fairly small and not expanding to fit the paper width as described.

I would also like to shift the plot over to increase the margin on the page.  I have attached a jgp screen shot (the lower section is a window I want to printout).


TabDlg::PrintPlot(), int
{
if (printFlag)
{
// MessageBox(null,"Please close open print window","",MB_ICONEXCLAMATION);
return true;
}

select (nTab) // start Tab tests
{
case 3: // soil info tab
Soil_Schematic_dwg.ShowWindow(SWSHOW);
Soil_Schematic_dwg.PrintWindow();

case 4: // soil review tab
Soil_Schematic_dwg.ShowWindow(SWSHOW);
Soil_Schematic_dwg.PrintWindow();

case 5: // pile segment tab
Soil_Schematic_dwg.ShowWindow(SWSHOW);
Soil_Schematic_dwg.PrintWindow();

case 6: // t-z analyze pile tab
DataPlot.ShowWindow(SWSHOW);
DataPlot.PrintWindow();

case 7: // TZ Detail Tab
TZDetailPlot.ShowWindow(SWSHOW);
TZDetailPlot.PrintWindow();
}

printFlag = 0;

return true;
}