I am trying to pull and send a report to a printer. I found this but i get these odd object type errors. I think that I am using this wrong. sorry for the noob question but if i could get some help that would be solid .
private void button13_Click(object sender, EventArgs e)
{
DoCmd.OpenReport("Sales", //ReportName
objAccApp.AcView.acViewPreview, //View
System.Reflection.Missing.Value, //FilterName
System.Reflection.Missing.Value //WhereCondition);
}
Severity Code Description Project File Line Error CS0103 The name 'DoCmd' does not exist in the current context AllianceERP C:\Users\dhelm.ALLMATINC.001\Documents\Visual Studio 2013\Projects\AllianceERP\AllianceERP\Form1.cs 1033
Severity Code Description Project File Line Error CS0103 The name 'AcView' does not exist in the current context AllianceERP C:\Users\dhelm.ALLMATINC.001\Documents\Visual Studio 2013\Projects\AllianceERP\AllianceERP\Form1.cs 1035