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 |
|
|
|
|
reference |
05/31/2018 |
Direct2D Print: Close is called with no previous AddPage calls
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.
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.