document

Updating CMFCRibbonBar elements from document

依然范特西╮ 提交于 2019-12-11 22:40:16
问题 I would like to update the ribbon from the CDocument derived class because the information relevant for ribbon's status is stored there. The was created by the Wizard and edited in resource manager Some elements (Buttons, checkboxes) can be updated with ON_UPDATE_COMMAND_UI macro. But I have a headache with update other things like CMFCRibbonComboBox or CMFCRibbonProgressBar because CCmdUI doesn't provide suitable functions to deal with them (ie AddItem) Other option using GetDlgItem doesn't

Excel: change VBA action frome same sheet to another sheet

孤人 提交于 2019-12-11 21:49:58
问题 As I'm trying my first Excel with macro's I could really use some help. I'm not a programmer but I can edit some code very well. My goal is to generate some different word documents by the click of a button. The excel file is a list with achievements of students. The results are listed in the different word documents. It's kind of a mail merge but without opening Word. The code I have now is for a button in the same sheet to generate those word documents. Now I changed the whole excel file..

Document-Term-Matrix of tm Package in R

房东的猫 提交于 2019-12-11 20:22:42
问题 I am using document term matrix of tm package in R. I faced an error saying: Doc <- DocumentTermMatrix(Data) Error in UseMethod("TermDocumentMatrix", x) : no applicable method for 'TermDocumentMatrix' applied to an object of class "table" I tried data frame, data table, matrix and table but I faced the error again and again. Could you please tell me what should I do? 回答1: You missed a step... you have to create a "corpus" first... library("tm") txt <- c("some text", "here in this", "vector as

XSLT document with dynamic path

天涯浪子 提交于 2019-12-11 15:29:23
问题 I have XSLT 1.0 standard. I have one dynamic XML from server which is quite simple and second XML as configuration. Base on first one (which is dynamic) I have to pick up proper nodes information from second one. This is first document: <?xml version="1.0" encoding="UTF-8" ?> <response> <response>SUCCESS</response> <responsedata> <hit> <url>http://domain.com/page.html</url> <id>2437</id> <title>Page title</title> <language>en</language> ... ... </hit> </responsedata> </response> Second

Slow to convert Oracle 11g XMLType into Java String or Document

瘦欲@ 提交于 2019-12-11 13:59:45
问题 After retrieving a result set from an Oracle 11g database, it takes roughly 75 seconds to convert the XMLType (this is a structured XML Storage, registered with an xsd) into either a java String or Document. I'm using Java 1.6, have the xdb.jar and xmlparserv2.jar This xsd is <100 lines and the xml document is also <100 lines. Sample code: oracle.xdb.XMLType xml = oracle.xdb.XMLType.createXML((oracle.sql.OPAQUE)rset.getObject("XMLDATA")); The other way, but still took just as long: XMLType

Know indexing time for a document in Solr

半城伤御伤魂 提交于 2019-12-11 12:57:46
问题 Is it possible to know the indexing time of a document in solr. Like there is a implicit field for "score" which automatically gets added to a document, is there a field that stores value of indexing time? I need it to know the date when a document got indexed. Thanks 回答1: Solr does not automatically add a create date to documents. You could certainly index one with the document though, using Solr's DateField. In earlier versions or Solr ( < 4.2 ), there was a commented timestamp field in the

Sub-Schemas on Mongoose without Arrays

倾然丶 夕夏残阳落幕 提交于 2019-12-11 12:26:39
问题 So, I was wondering, even though I understood that you cannot create a single sub-document, I still would like to create a sub-document so that I can use default and other mongoose types properly, is there a way to still do such a thing? for example : var SomeOtherScheme = new Schema({ a : { type:String, default:'test' }, b : { type:Boolean, default:false } ... }); var GroupSettings = new Schema({ x : { type:Number, default:20 }, y : { type:Boolean, default:false }, ... else : { type

XML XSLT Result-Document fseek

ぐ巨炮叔叔 提交于 2019-12-11 11:05:36
问题 Using XSLT transformation I want to convert an XML file, that in turn represents various chunks of another file, into a HTML file with a link to the file that was represented. Input XML File: <File> <Name>foo.jpg<Name> <Chunk> <Offset>200</Offset> <Length>100</Length> <Data> <![CDATA[data bytes, encoded in base64, can be greater than length 100 too, but first 100 decoded bytes are valid.]]> </Data> </Chunk> <Chunk> ... </File> The output should be a html file that has a valid link to foo.jpg,

Need to view ms office documents in a php web based document management system

半城伤御伤魂 提交于 2019-12-11 10:56:59
问题 I want to make a document viewer for MS office docs and pdf for my inhouse Document Management System made in php and mysql. I dont want the users to be able to edit these documents. we need to make it browser friendly as our system is web based. Thanks in advance Chintan 回答1: You can also use iframe for that <iframe src="http://docs.google.com/gview?url=http://infolab.stanford.edu/pub/papers/google.pdf&embedded=true" style="width:600px; height:500px;" frameborder="0"></iframe> but you should

Numbered lists continues when Apps Script appends template-content into document

末鹿安然 提交于 2019-12-11 10:53:56
问题 I have an Apps Script that copies the content of an template-file to the end of a document. It works with one minor annoyance: the numbered list continues from one copy to the next. I have many different templates that users can append to the end of the document. Each template is stored in its own Document. function addSub(template_id){ var mainBody = DocumentApp.getActiveDocument().getBody(); var tempBody = DocumentApp.openById(template_id).getBody(); for(var i = 0;i<tempBody .getNumChildren