RTF - Where can I find the text content? - sql

I am querying an MSSQL server for some information and I am getting the following:
{\rtf1\ansi\ansicpg1251\deff0\nouicompat
{\fonttbl
{\f0\fnil\fcharset204 Calibri;}
{\f1\fnil Calibri;}
}
I understand this is RTF, but I cannot find the content, which should be this:
ПЕЧАТЕЊЕ ЗА ВУРТ
How does this work? How does the above generate the text?

You are right. I ran the query in SSMS and I got the same value.
However, when I copied and pasted it in notepad, it displayed the full
content. It does appear to have a limit on the characters. How can I
increase the limit to display the full thing?
Do a right click into the query window and choose options. The following dialog allows to specify a text's max length. The highest value allowed is 8192.
The data also has new
lines. Does that affect anything?
Press <ctrl>+T to swap from "Results to Grid" to "Results to Text". This will write the entire content as text and you will see line breaks (within the grid line breaks are ommitted)
Hint Reduce your SELECT to only one textual column!

Related

How to increase the text field size within sanity studio?

How can I increase the height of the text input in sanity studio? when the user enters a lot of text, I would like it to go to the next line making it far easier to read.
I have tried adjusting the row property on the text type, but everything stays on the same line.

How do I change the hyperlink display text to reflect the result from another column in SQL?

Can anyone tell me how I can get my URL text to show up as the the "IMAGE NAME" in my query? I am using Toad Data Point SQL Builder and this is what I have so far
SELECT
ast.location,
ast.assetnum,
ast.description,
own.alnvalue AS "OWNED BY",
di.description AS "IMAGE NAME",
concat ('http://link_here', substr(di.URLNAME, 25)) as Link
I then get the Image name and Link in two different columns, but would like to have the Link text show as the "Image Name". Also once I export the query results to an excel instance can I have the Link display as a Hyperlink without having to do one by one?
You're only 50% lucky, which is quite a lot in this case.
Don't bother about displaying "Image name" as the result - it just won't happen. Result of a SQL statement is pure text, unless you use some tool which lets you format data (such as Oracle Apex).
However, your 50% luck comes with exporting data to Excel, with working URLs. Here's how:
run a query which uses Excel's hyperlink function
see the result; right-click it, choose "Export dataset"
export to "Excel instance"; make sure to set options just like I did.
pay attention to "Treat string fields as strings" that option should NOT be checked
the result is as you wanted it - clickable URLs

Can I use the Shrink Method for the whole document in word

I don't know anything about code. I work with e-learnings in Storyline 3. I sometimes localize these e-learnings and use the translation tool in Articulate which basically exports an MS Word file. Sometimes the target languages are longer and I need to decrease the font size by percentage for the whole document. Usually, there are at least 3 different font sizes that I need to decrease accordingly. I am wan to develop a macro that I will use for multiple documents.
I couldn't find a way to do this by percentage, but looks like the Shrink or Grow Methods will do the work! I found this code in the reference page but looks like it works only for a selected object. The issue is that the exported MS Word file is in a table with each text box in the storyline separated to a cell. When I select the whole table it does not work.
If Selection.Type = wdSelectionNormal Then
Selection.Font.Grow
Else
MsgBox "You need to select some text."
End If
Could you please help me and let me know if this would be possible for the whole document, or the selected table? It would be very much appreciated. Thanks in advance.
It is unclear from your question whether the table in the Word document contains the actual text boxes or just the text they contain.
If it is just the text then Shrink may work. I tested this on a document with a single table containing only text:
ActiveDocument.Range.Font.Shrink

Replace a blank before a table page break Word VBA

I uncheck "Allow row to break across pages" for a table's properties So, the table is shown on a new page to ensure that all the content is on one page, this works fine. But Word generates a blank space before the page break, I need to replace it with some text for a legal reason. I can't use a watermark or shapes because un Oracle BI Publisher only prints it on PDF and I need to export it to a docx.
The data is dynamic, so sometimes the text before the table and the text inside the table may change.
Current Version https://imgur.com/a/FTx0q
I need some like this https://imgur.com/a/ySitL
MS Office support told me that it can't be done with Word...
Maybe with VBA code?
Update
Thanks Cindy for your help.
I have a table into another table many paragraphs, checkbox etc and they are fitting on a new page. It's working.
I understand there isn't a page break.
It's Paragraph mark.
But what I need to do is insert a kind of mark, a text like XXXX,-----------, Instead of leaving "free space",
It's a requirement not change the font size or another text format.
For a legal requirement, some paragraph must fit on a new page and "blank spaces" replaced by a kind of mark.
I can't hard code it because in several cases not all the paragraphs or section in a page will be shown and I don't know by default when a new page is needed.
I am available to use macros or anything.
What you could do is insert a page-size table into a textbox in the page header and format the body text with a white background. The table will thus be hidden behind any text on the page, but not otherwise (provided you don't pad unused space with empty paragraphs, etc.).

Get the left indentation of a line above the selection - VB

I have to format a text based on indentation.
The steps are :
User selects a table on a page
Presses a button
The table gets indented exactly as the text above ( no gaps at all)
I know MSFT gives little less indentation to the table, so they look little askew.
I know how to change the indent of the selected table by the command
Selection.Tables(1).Rows.LeftIndent = <Value_as_that_of_the_text_above>
but I don't know how do I get the indentation of the text above, considering only table has been selected not the text above. Any help is appreciated.
You will need to get all the paragraphs of the document(try this). Then get the last paragraph on the page indent.