Hello,
I am to try create a automatialy document with the DocManager, but when I call the Document class I have an error that "Class Document not found"

This is my code:
require_once(’../assets/libs/docmanager/document.class.inc.php’);
$doc = new Document();
$doc->Set(’editedby’,$userID);
$doc->Set(’pagetitle’,$title);
$doc->Set(’tvprojectDescription’,$projectDesc);
$doc->Set(’tvprojectBudget’,$projectBud);
$doc->Set(’tvbuildingName’,$buildingName);
$doc->Save();
Only a question, I have a modulo that put the information in the database, but I want that this information be it in the new document. I to be able create the new document in the file of the module or I have create a snnipped?