|  | 
			
				| Prepares the object for handling a document and its details. | 
			
				|  | 
			
				| 
						
							|  | void PrepareDocument ( enum ePrepareAction ePrepareAction
 )
 |  | 
			
				|  | 
			
				| 
						| Parameters |  | ePrepareAction |  | [in] A value of the 'ePrepareAction' enumeration. |  
							|  |  
							| See Also |  
							|  |  | 
			|  | 
			| Samples | 
			|  | 
			
				| 
						
							|  | C++ |  
							|  | // Change the book date of the current document to 17/09/2025
 pSndry->PrepareDocument (paUpdate);
 
 pSndry->pBookDate = COleDateTime (2025, 9, 17, 0, 0, 0).m_dt;
 
 pSndry->WriteDocument (rmFullReport);
 
 
 |  | 
			
				| 
						
							|  | C# |  
							|  | // Change the book date of the current document to 17/09/2025
 oSndry.PrepareDocument (ePrepareAction.paUpdate);
 
 oSndry.pBookDate = new DateTime (2025, 9, 17);
 
 oSndry.WriteDocument (eReportMode.rmFullReport);
 
 
 |  | 
			
				| 
						
							|  | VBS |  
							|  | ' Change the book date of the current document to 17/09/2025
 Call oSndry.PrepareDocument(paUpdate)
 
 oSndry.pBookDate = #9/17/2025#
 
 Call oSndry.WriteDocument(rmFullReport)
 
 
 |  | 
			
				| 
						
							|  | VB.NET |  
							|  | ' Change the book date of the current document to 17/09/2025
 oSndry.PrepareDocument(ePrepareAction.paUpdate)
 
 oSndry.pBookDate = #9/17/2025#
 
 oSndry.WriteDocument (eReportMode.rmFullReport)
 
 
 |  |