TE Edit Control .NET Core / .NET Framework Help
Product page

TerSetPrintPreview

Allocate or deallocate print preview resources.

bool TerSetPrintPreview( begin)
bool begin;true to allocate print preview resources, and false to deallocate them.

Description: This function can be called before and after calling the TerPrintPreview function to increase the print preview performance when doing multi-page print-preview.

Return Value: This function returns true when successful.

Example:

  toc.TerSetPrintPreview(true);  // begin print preview process
  for (page=0;page<PageCount;page++){
     toc.TerPrintPreview(gr,rect,page,true); // print each page
  }
  toc.TerSetPrintPreview(false); // end print preview process