Link Field code in MS Word and automatic numbering - ms-word

I have a document in Microsoft Word (2013 on Windows 8.1) with a numbered list (simple list numbering) from 1. to ~300. Within this same document, I used cross-references to refer to specific list elements by number.
In a separate Word document, I use the {Link} field code to refer to my list element using bookmarks.
However, when using the {Link} field Code, all numbering shows as "1.", and not the actual given number for the list element.
Is there a way to fix this occurence, short of converting all the automatic numbering to text?
Thanks for your insight,

Related

How to force Fields using doc properties variables to update in LibreOffice Writer?

I need to display an adjusted version of the word count in the body of a document.
Right now it's possible to insert the total word count through Insert → Field → More Fields... (Document / Statistics / Words). The entire document will be taken into account when generating this number. This word count is a variable in its own right, WORD, which can be used in math formulas.
So to show the corrected word count I need, excluding the content from the title page etc, I created a new variable with a formula, WORD-8, where 8 is the number of words I'm ignoring. It works, but with one issue.
No matter how I insert this formula (Set Variable, Show Variable, Insert Formula), the resulting number won't update as I keep writing unless it's triggered by:
Editing the paragraph where the formula is present. Editing some other paragraph won't work.
Including the real word count (from the doc statistics tab, not as WORD) somewhere in the document. This prompts a document-wide refresh, successfully triggering the formula update.
Even saving, closing and reopening the document won't update the calculation without one of the two approachs above. Is there another automated way to keep this adjusted word count up-to-date as I write that won't visibly litter the document's body with stuff I don't need? Being forced to display the actual number is what's keeping me from just using the method 2.
Hitting F9 should force updating of fields. Note also that it may be necessary to use Ctrl+Shift+F9 to update any Input Fields in a document. See Shortcut Keys for LibreOffice Writer and Update fields (F9) not working.

How to get the mapping relation between xbrl tag and name shown in financial statement?

The name shown in financial statement and xbrl tag name are different,take apple's 2019 financial statement as example.
apple 2019 financial statement
Click sections--financial statement--consolidated statements of operations and move mouse at the 274,515 ,
You can see
Tag
us-gaap:RevenueFromContractWithCustomerExcludingAssessedTax
Fact
274,515,000,000
The tag name is RevenueFromContractWithCustomerExcludingAssessedTax in xbrl term, it is called as Total net sales, maybe there exists a table mapping every xbrl tag name with name shown on financial statements,where can i get it?
Yes, there is a mapping between tag names (they are called concepts) and user-readable English names (they are called labels) in what is called the label linkbase.
You can click on the right arrow in the pop-up window that can be seen on your screenshot, which will display all the associated labels.
However, there is no guarantee that these labels match exactly what is seen on the HTML page, because this is Inline XBRL and the text surrounding the tagged data is completely free, as opposed to the tabular view an XBRL processor would automatically reconstruct from the taxonomy attached to the report. Ideally, the filings should be created in a way that the two should match, though.
In this case, "Total net sales" would be a Total label (i.e., used when the data is displayed in context as a total), but it does not seem that this label appears in the label linkbase here, at least as shown in the window.
Regarding a large, flat, tabular representation of the entire label linkbase of a filing: I did not manage to find it for this specific (version of the) viewer, however there are many XBRL processors that do offer this (e.g., export to CSV or Excel).

VBA AdvancedFilter CriteriaRange reference (formatting?) issue

My macro is referencing a criteria range in one workbook (text values) and filters data in another workbook (using that range). However, the filtered list is empty (only contains headers). I tried testing many different ways and have isolated the issue to, probably, the formatting of my criteria range. I.e. if I pass it text values via array (using Autofilter instead), it works, but not when referencing a range in excel (with AdvancedFilter). Criteria range ("E2:E5") is formatted as "General" and appears in a single column like this:
WFHF62330002
WFHF63840002
WFHF64540002
Does CriteriaRange take values as a column or row, i.e. do I need to transpose these into a row (tried - doesn't work)? Or is there a way to bring it to text formatting in some way? Not sure how to go about this issue.
Relevant code:
With wb_input.Worksheets("TempSheet").Range("A1:Y99999")
.AdvancedFilter Action:=xlFilterInPlace, CriteriaRange:=wb_output.Sheets("Setup").Range("E2:E15")
End With
I'm not posting the whole macro - hopefully the explanation above is sufficient. Thanks a lot!
You have to include the Header to your Criteria Range - Criteria range ("E1:E5"), if the cell "E1" is the Header :-) And the Header must be the same as the Header in the Sheet where you are applying the Filter.
See here in this post:
Excel VBA - AdvancedFilter

Copy data from Spreadsheet[LibreOffice Calc] to tables of Text Document[LibreOffice]

This was very interesting and challenging task for me. I want to copy data (1000s of rows with multiple columns) from Libre Office calc[spreadsheet] to the tables in Libre Office Writer[Text Document]. I spent almost a day to figure out the solution. Couldn't find the solution from any sites.
Copy the data[rows] from Spreadsheet.
Paste the same to the MS Word document[I did it by using Google docs as I'm using ubuntu].The table is created with rows and columns which is same as copied data.
Copy the table from word document and paste it in the Libre office Text Document.
Create the table with number of rows and columns Libre office Text Document.
Copy the table from Libre office Text Document[copied in point(3)] and paste in the table which is created in point(4).
NOTE / CAUTION : If you skip or alter any steps, it wont work.
Converting a column of text (perhaps from a screen-scrape of a online table) to a table format suitable for further work in a spreadsheet is easy if you have the traditional (locally installed) MS-Word program. The "Convert text to table" function there permits you to specify how many columns are in each record without having to edit your input files to manually place delimiters like commas, semi-colons, tabs etc. which is a PITA when you have to count rows to leave out the delimiter.
LibreOffice writer has a lightweight convert-text-to-table function which requires a lot of data conditioning before using it. In Libra Calc, Like any good spreadsheet, the "Transpose" function can be used to convert, say, 8 rows of the input column to a single 8-column row, but automating this requires macros or fixed templates.
So it is a non-trivial problem to duplicate that powerful capability in the old, locally installed MS-Word app, where users can take pages and pages of one-word data elements, and convert them into a "N" column table, where "N" is specified when you invoke the conversion in MS Word.

Field text is being truncated inconsistently

I created a label report (2 columns). The fields used are, Suffix, Contact Name, Company Name, Job Title and Department – simple contact data.
The Department field is the last one and in the report of 78 records the Department field decided not to display the entire field text twice.
I have "Can Grow" set as default on all fields, I checked the margins and label width to ensure the text is not being truncated because of the labels being too wide for the margins. I modified the data in the database by abbreviating certain words and it shows the change but it still truncates after 50 characters. Other times the Department name is 80+ characters and it displays all of the data.
This problem is happening onscreen when I preview the report and also when various users print it. The default printers have not changed.
This one has me stumped. Is this an application bug (if so is there a Service Pack for CR 11.5?) or does it have anything to do with printer drivers in need of update?
Thanks in advance for your help on this puzzle.
Update
I did specify data source
The text in the database is without any special characters or anythig else that might be out of place
No I am not using Underlaying Following sections anywhere in the document
11.5.8.998 is my version of CR (lloks like I am behind - however, when I click on verify for updates it tells me there aren't any. Do you ahve a link to the SP2 download?)
No formula in the Custom string option
Mine worked by simply going to the Database Menu option: Database-->Verify Database, and the field sizes were updated
It could happen if the length of the field in the Data Source is less than your string. To check this:
In the Field Explorer right click on the data source name and choose "Show Field Type"
The length of the field is written between ( ). If it is less than your string length, you have to re-build your data source. For example, if your data source is a view, you have to drop and create it again and then verify your data base in crystal report.
Hope it helps.
Random troubleshooting thoughts. One of these could even work :)
You didn't specify your datasource, but can you preview your data before it goes into Crystal? If the actual data is randomly truncated, then the problem isn't Crystal, it's the data.
Does this data have any special characters, i.e. accents, foreign currencies, etc? That could be a problem (I don't know if this could even create problems, never used them in Crystal)
In the Section Expert, are you using the Underlaying Following Sections option for fancy formatting? If so, your 'grown' fields may be hidden by some other field in the following section.
My Crystal Reports XI Developer Edition is 11.5.12.1838 (that's service pack 2). Is your Crystal up to date?
In the Format Field pane, there is an option to make a custom Display String. Sometimes I forget I have a formula and then don't understand why it's not doing what i want.