Skip to content

Latest commit

 

History

History
38 lines (24 loc) · 1.15 KB

d1147.md

File metadata and controls

38 lines (24 loc) · 1.15 KB
title ms.assetid description keywords topic_type api_name api_type ms.topic ms.date
D1147 Print Control Closed Without AddPage
c82a1fac-aba0-4f7a-ab17-69f8961b7173
Close is called with no previous AddPage calls
D1147 Print Control Closed Without AddPage Direct2D
apiref
D1147 Print Control Closed Without AddPage
NA
reference
05/31/2018

D1147: Print Control Closed Without AddPage

Direct2D Print: Close is called with no previous AddPage calls

 

Possible Causes

This message may occur if an ID2D1PrintControl is closed without any prior invocation to ID2D1PrintControl::AddPage. Direct2D Print considers a print control with no pages to be erroneous, and the corresponding ID2D1PrintControl::Close command will return an error.

Possible Fixes

To address the message, add a page to the print control before closing it. If the application need not print any content, refrain from closing the print control, or creating it at all.