Help Center

CRichEditCtx.SetWysiwygPrintmethod

Sets the target printer device and line width used for "what you see is what you get" (WYSIWYG) formatting in a rich edit control.

Windowsmethoddocumented

Syntax

FUNCTION SetWysiwygPrint (BYREF wszPrinterName AS WSTRING = "") AS BOOLEAN

Parameters

NameDescription
wszPrinterNameThe printer name, e.g. "OKI B410d" or the "Microsoft Print to PDF" virtual printer. If wszPrinterName is empty, the control will use the default printer.

Return value

A boolean true (-1) or false (0).

Description

Sets the target printer device and line width used for "what you see is what you get" (WYSIWYG) formatting in a rich edit control.

Reference

  • Defined in AfxNova/CRichEditCtx.inc:708
  • Documented in Windows/WIndows Controls/RichEdit/CRichEditCtx Class.md
  • Topic: CRichEditCtx Class