最近需要做一个打印的功能,于是在网上找到了这么一个方法。[StructLayout(LayoutKind.Sequential,CharSet=CharSet.Ansi)]publicclassDOCINFOA{[MarshalAs(UnmanagedType.LPStr)]publicstringpDocName;[MarshalAs(UnmanagedType.LPStr)]publicstringpOutputFile;[MarshalAs(UnmanagedType.LPStr...
查看全文