高级会员
注册日期: 06-11
帖子: 14579
精华: 1
现金: 224494 标准币
资产: 234494 标准币
|
【转帖】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!
|