| **Navigation:**  [[abc library reference.htm|ABC Library Reference]] > GraphClass > GraphClass Methods >====== SaveGraph (auto-save graph to WMF file) ====== | [[saveasgraph save graph to wmf file selected .htm|{{btn_prev_n.gif|Previous page}}]][[abc library reference.htm|{{btn_home_n.gif|Return to chapter overview}}]][[setdefault initialize selected graph properties .htm|{{btn_next_n.gif|Next page}}]] | | || **SaveGraph( **//askSave// **)** {{blk2blue.jpg|blk2blue.jpg}} | **SaveGraph** | Save graph to WMF file. | | //askSave// | A Boolean value that determines whether or not to prompt the user to save. The default value is FALSE (save without asking) | The **SaveGraph** method writes the current state of the graph object to a WMF file. If the //askSave// parameter is set to TRUE, the user is first prompted to enter a valid WMF file name. **Implementation:** The **SaveGraph** method is called when a graph event (Event:Save) is posted. **See Also:**     [[imagetowmf save object and return wmf file name .htm|ImagetoWMF]]