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;
}