April 16, 2024, 04:23:18 AM

News:

Own IWBasic 2.x ? -----> Get your free upgrade to 3.x now.........


trouble using PrintWindow()

Started by John S, December 20, 2007, 03:36:00 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

John S

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

John Siino, Advanced Engineering Services and Software