Jump to content

szlbz

Members
  • Posts

    9
  • Joined

  • Last visited

Everything posted by szlbz

  1. procedure TUniForm5.UniButton5Click(Sender: TObject); begin //用fr生成PDF frReport1.LoadFromFile(ExtractFileDir(ParamStr(0)) + '\pr.frf'); frReport1.PrepareReport; pdffilename := RandomStr(true, true, true, 8); frReport1.ExportTo(frllPDFExport1, UniServerModule.TempFolderURL + pdffilename + '.pdf'); UniSession.AddJS( 'function bulkpdfPrint(srcFiles)'+ '{'+ ' var pdf = document.getElementById("createPDF");'+ ' if (pdf != undefined && pdf != null)'+ ' {'+//判断pdf对象是否存在,如果存在就删除该对象 ' var parentNode = pdf.parentNode;'+ ' parentNode.removeChild(pdf);'+ ' }'+ ' var p = document.createElement("object");'+ ' p.id = "createPDF";'+ ' p.classid = "CLSID:CA8A9780-280D-11CF-A24D-444553540000";'+ ' p.width = 1;'+ ' p.height = 1;'+ ' p.src = srcFiles;'+ ' document.body.appendChild(p);'+ ' p.printAll();'+ '};'+ 'bulkpdfPrint("'+UniSession.URL+UniServerModule.TempFolderURL + pdffilename + '.pdf'+'");'//打印PDF ); end;
  2. I find the solution in the servermodule unit to open customCSS properties, paste the following into it: .x-window-footer { position: relative; top: 0; right: 0; } .x-tab-strip SPAN.x-tab-strip-text { font-size: 13px; } .x-panel-header { font-size: 13px; } .x-tree-node { font-size: 13px; } .x-grid3-hd-row TD { font-size: 13px; } .x-grid3-row TD { font-size: 13px; LINE-HEIGHT: 18px; } .x-tip .x-tip-bd { font-size: 13px; } .x-tip h3{ font-size: 13px; } .x-tip .x-tip-bd-inner{ font-size:13px; } .x-panel-tl .x-panel-header { FONT: normal 13px tahoma,arial,verdana,sans-serif; } .x-form-field { FONT: 13px tahoma,arial,helvetica,sans-serif } .x-small-editor .x-form-field { FONT: 13px tahoma,arial,helvetica,sans-serif } .x-combo-list-item { FONT: 13px tahoma,arial,helvetica,sans-serif; } .x-btn button,x-toolbar .x-item { FONT: 13px tahoma,arial,sans-serif; } .x-menu-list-item { FONT: 13px tahoma,arial,sans-serif; } .x-window-tl .x-window-header { FONT: bold 13px tahoma,arial,verdana,sans-serif; } .x-layout-split-west .x-layout-mini { BACKGROUND-IMAGE: url(../images/mini-left.jpg); } .x-form-text { margin-top:1px; } /* the textField missing bottom line */ .x-form-item { FONT: 13px tahoma,arial,helvetica,sans-serif } .x-grid-group-hd DIV { FONT: bold 13px tahoma,arial,helvetica,sans-serif; } /*按钮字体大小 Add by extjs.org.cn */ .x-btn-text{ font: 12px tahoma,arial,sans-serif; } /* END */
  3. That Is there any way to modify the font size?
  4. Can not be modified?I use the tips of the Chinese.
  5. How to modify the UniDBNavigator hint content?
  6. how modify UniMainMenu font and font size
×
×
  • Create New...