Public Member Functions | Static Public Member Functions | List of all members
PrintDescriptionRef Struct Reference

Reference-counted container for IPrintDescription instance. More...

#include <IPrintDescription.h>

Inheritance diagram for PrintDescriptionRef:
RefCountedBase RefCounted< IRefCounted > IRefCounted

Public Member Functions

 PrintDescriptionRef ()
 
 ~PrintDescriptionRef ()
 
IPrintDescriptionP GetP ()
 
IPrintDescriptionCP GetCP () const
 
 operator IPrintDescriptionP ()
 
 operator IPrintDescriptionCP () const
 
PrintDescriptionPtr Copy (bool copyPlotter)
 Copy the print definition instance. More...
 
- Public Member Functions inherited from RefCounted< IRefCounted >
void * operator new (size_t size)
 
void operator delete (void *rawMemory, size_t size)
 
UInt32 AddRef () const
 
UInt32 Release () const
 
 RefCounted ()
 
 RefCounted (RefCounted const &rhs)
 
RefCountedoperator= (RefCounted const &rhs)
 
UInt32 GetRefCount () const
 

Static Public Member Functions

static PrintDescriptionPtr Create ()
 Create an unintialized print description instance. More...
 

Additional Inherited Members

- Protected Member Functions inherited from RefCounted< IRefCounted >
virtual ~RefCounted ()
 
- Protected Member Functions inherited from IRefCounted
virtual ~IRefCounted ()
 
void * operator new (size_t size)
 
void operator delete (void *rawMemory, size_t size)
 

Detailed Description

Reference-counted container for IPrintDescription instance.

Remarks
This class is intended for applications that print the currently loaded design file independent of the MicroStation print dialog application.
void PrintToPDF()
{
// Create a print description instance.
IPrintDescriptionP printDesc = printDescPtr->GetP();
// Initialize the print description to use the PDF printer driver
// configuration and the active MicroStation environment.
printDesc->InitializeFromTCB (L"pdf.pltcfg");
// Maximize the print size to the currently selected paper size.
printDesc->Maximize();
// Create the PDF file.
printDesc->Print (L"C:\\Sample.pdf");
}

Constructor & Destructor Documentation

Member Function Documentation

PrintDescriptionPtr Copy ( bool  copyPlotter)

Copy the print definition instance.

Parameters
[in]copyPlotterIf False, print definitions will share plotter instance.
Remarks
Required library: Bentley.PrintDefinitions.lib
static PrintDescriptionPtr Create ( )
static

Create an unintialized print description instance.

Remarks
Callers must initialize before use. Required library: Bentley.PrintDefinitions.lib
IPrintDescriptionCP GetCP ( ) const
IPrintDescriptionP GetP ( )
operator IPrintDescriptionCP ( ) const
operator IPrintDescriptionP ( )

The documentation for this struct was generated from the following file:

Copyright © 2017 Bentley Systems, Incorporated. All rights reserved.