May 27, 2019, 01:14:38 am

News:

IonicWind Snippit Manager 2.xx Released!  Install it on a memory stick and take it with you!  With or without IWBasic!


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).

Code Select

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