![]() |
【转帖】cant get plotstylesheetlis
can't get plotstylesheetlist
can't get plotstylesheetlist i want to get plotstylesheetlist: m_pvalidator->plotstylesheetlist(psslist); but the list is null.i don't know why. could you help me? at frist you should check if you have plotsettingsvalidator module loaded. your application should include next strings like in odamfcapp.cpp. odrx_declare_static_module_entry_point(odplotsetti ngsvalidatormodule); drx_define_static_application(l"plotsettingsvalida tor", odplotsettingsvalidatormodule) and :drxdynamiclinker()->loadapp(l"plotsettingsvalidator"); also you should init ddplotstylepaths system variable to plotstylesheet folder. code: void codamfcappapp::initplotstylesheetenv() { cstring env(_t("ddplotstylepaths=")); odstring stylesheetfiles = findconfigpath( l"printerstylesheetdir" ); _tputenv( env + cstring((lpctstr)stylesheetfiles) ); } thank you very much! |
所有的时间均为北京时间。 现在的时间是 09:44 PM. |