I just want to copy the Hyperlink from one Word document to another, but after copy/paste Word change address from relative to absolute.
Explanation: In document_1.docx hyperlink is with this parameters:
Text to display: This is link to the document Staff
Address: files/staff.pdf
After c/p in second document (or on the same) I get this parameters:
Text to display: This is link to the document Staff
Address: D:\Documents\Work Papers\Staff.pdf
How to paste exactly the same content???
I Found a Workaround!
Select a whole hyperlink, press shift + F2 (Copy text), place cursor on the place where you want to paste link and press ENTER (don't use paste function).
And you have the same address in hyperlink :)
Related
I have a StaticText, which has a text like
If you want to be a member of our website, then make sure you let us
know by sending an email to foo#bar.com as soon as possible.
This text is inside the <![CDATA[...]] of the text tag. I would like to make sure that foo#bar.com is a clickable email address. I have researched this for a long while and the best I could come up with was to modify it to mailto:foo#bar.com and then it became a clickable link if opened with Chromium (without the blue color, unfortunately) and all the other programs I opened it with were not recognizing it as a link at all. I even tried to add a HyperLink over foo#bar.com with the plan of making it have a white background (hacky, I know), but however I tried to do it has thrown errors. For Link Target I could only choose Self, Top or Parent, yet I would like to make this an actual email link. I have tried a lot of different values for Hyperlink Reference Expression, Hyperlink When Expression and tried also to do this by creating a variable called mailAddress, set its expression to be the email address I wanted and then referenced it, by replacing the email address in the quote to mailto:$V{mailAddress}, but it has shown this as a text.
So, my question is: how can I convert part of a static text into a clickable blue email address?
I'm using TIBCO Jaspersoft® Studio 6.6.0 - Visual Designer for JasperReports 6.6.0.
I've solved this way:
in the Text property
This is a test <u><font color='blue'><a href='https://www.google.it'>Link</a></font></u> inside a static text
and set the Markup property to "html"
this is the source:
<staticText>
<reportElement x="0" y="130" width="230" height="41" uuid="01126997-9310-462e-bc3c-afd94a21ce63"/>
<textElement markup="html"/>
<text><![CDATA[This is a test <u><font color='blue'><a href='https://www.google.it'>Link</a></font></u> inside a static text]]>
</text>
</staticText>
Tested with Jaspersoft Studio 6.10.0
I am trying to add a hyperlink to a field code in MS-Word, but I want the same field code to populate as part of a search query in the url. More relevant info below:
For Instance, this field code is linked to a form and will populate with a tracking number pulled from an inventory database «TrackingNumber», but then I want to link this generated tracking number into a url query is as follows:
HYPERLINK "https://www.google.com/searchq=«TrackingNumber»"
Is this even possible? And if so, how should I configure?
By default, if you insert a mailmerge field into a hyperlink field, the hyperlinks will all show the first record’s address as the 'Text to display' text, even though the hyperlinks will actually point to the merged targets.
Here's how you can do get a mailmerge to display your preferred default 'Text to display' text instead:
Disregarding mergefield issues for the moment, insert a hyperlink into the document in the normal way, choosing whatever 'Click Here' text you want in the 'Text to display' box.
Select the inserted hyperlink and press Shift-F9 to expose its field code.
Replace everything in the field between '=' and '"' with your «TrackingNumber» mergefield.
Select the field and press F9 to update the display.
In Word 2007 & later, you can make the display text variable also, by following these additional steps:
Position the cursor anywhere within the display text.
Insert a mergefield pointing to whatever data field you want to use for the display text (this could even be the «TrackingNumber» mergefield).
Delete all of the previous display text either side of your last-inserted mergefield (note that this field will likely have updated already).
Execute the merge.
After merging to a new document, use Ctrl-A, F9 to update all fields. Without this, the mergefield hover text won’t update to the correct targets.
Note 1: The above is only for merged output sent to a new document; it does not work with merges to email or print. For merges to email, see: https://support.microsoft.com/en-us/kb/912679
Note 2: Hyperlink fields modified this way are liable to cease functioning once the merge has been executed. Accordingly, it's best to save mailmerge main document before doing the merge and not re-save it afterwards. If you need to make changes to the mailmerge main document, don't make/save them after doing a merge; make/save them beforehand.
I am working with a lot of URL links which I need to decode.
I want to write a macro (or use any other method, really, whatever is easiest) attached to a keyboard shortcut which will automatically decode the urls into readable text.
For example, I want to press CTRL+A and have the result be that all %20 instances are replaced with a space, all & are replaced with an ENTER (\n, going down one row), all %27 replaced with ', etc.
Is there a way to accomplish this in Notepad++?
So far I have been manually changing at least 2-3 codes each time, but it's maddening as I have hundreds of such URLs to work with.
The URLs are sent to me automatically one at a time by a "report broken link" function and arrive as an openURL, example attached below.
Thank you!
URL examples:
ctx_ver=Z39.88-2004&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&url_ver=Z39.88-2004&rfr_id=info%3Asid%2FElsevier%3ASD&svc_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Asch_svc&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&rft.aulast=GILABERTE&rft.auinit=Y&rft.date=2014&rft.issn=00017310&rft.volume=105&rft.issue=3&rft.spage=253&rft.epage=262&rft.title=Actas%20Dermo-Sifiliogr%C3%A1ficas&rft.atitle=Realidades%20y%20retos%20de%20la%20fotoprotecci%C3%B3n%20en%20la%20infancia&rft_id=info%3Adoi%2F10.1016%2Fj.ad.2013.05.004
And this is how it looks like after changing & and %20:
ctx_ver=Z39.88-2004
ctx_enc=info%3Aofi%2Fenc%3AUTF-8
url_ver=Z39.88-2004
rfr_id=info%3Asid%2FElsevier%3ASD
svc_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Asch_svc
rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal
rft.aulast=GILABERTE
rft.auinit=Y
rft.date=2014
rft.issn=00017310
rft.volume=105
rft.issue=3
rft.spage=253
rft.epage=262
rft.title=Actas Dermo-Sifiliogr%C3%A1ficas
rft.atitle=Realidades y retos de la fotoprotecci%C3%B3n en la infancia
rft_id=info%3Adoi%2F10.1016%2Fj.ad.2013.05.004
As you can see this is much more readable for extracting details, but there are still many more codes in there that need changing.
Lets say you have your single URL or some more in a text file line by line you'd go through following steps:
Ctrl+A
Plugins > MIME Tools > URL Decode
Ctrl+H
Find what: &
Replace with: \n
Search mode: Regular expression
Click on Replace All
If you really need a shortcut like e.g. Ctrl+Alt+A you may use:
Macro > Start Recording the steps from above and Save Currently Recorded Macro when finished.
The snaps below show your sample source and the resulting text.
I use LibreOffice Writer and I want to insert an alternative text to a specific phrase in the document, how can I do it?
Example if we have an image in the document we can make double left click and add the alternative text like this:
Is it possible to make the same if we select a whole phrase of text? If yes how? And if No is there any other proposal?
The alternative text in 'word'/odt documents is actually intended as the 'alt' attribute in HTML (web) pages:
The alt attribute provides alternative information for an image if a
user for some reason cannot view it (because of slow connection, an
error in the src attribute, or if the user uses a screen reader).
(http://www.w3schools.com/tags/att_img_alt.asp)
It's only purpuse is thus to provide the user with information in case he/she can not view the image. Since having alternative text in case some text cannot be displayed is, well, silly, this 'alt' attribute is not defined for pieces of text. Alternatively, you could have a hyperlink pointing to nothing ("#"), which does provide a tooltip attribute.
What is it that you're intending to achieve anyway? It's not going to show up on any prints, which is the intended purpose of Writer... Footnotes (for prints) or Comments (for communication with co-editors) might suit you better.
I have a MS word 2010 mail merge that needs a personal url as href and a generic title for all users
i can send a url that displays as the full url, but i want a generic display text so users dont see all the parameters or a gigantic url
i have attempted to first insert the hyperlink then ALT+F9, this did not pass the mergefield
{HYPERLINK "http://domain.wufoo.com/form1/def/Field1={MERGEFIELD id_number}" }
I then attempted after inserting the hyperlink to call a new field as the url, this did not remove the original inserted hyperlink as it seems to require a url value on inserting
{HYPERLINK {MERGEFIELD url} \* MERGEFORMAT }
I attempted to follow the instructions here http://support.microsoft.com/kb/912679 method #1 but the word 2002-2003 menus are different, i havent been able to insert a hyperlink without a url ('"Error! Hyperlink reference not valid" appears in the document.")
I am just not sure how to go about this
Once i figured out how to insert a hyperlink without a url from http://support.microsoft.com/kb/912679 method #1, this went off without a hitch
In Word 2010, goto Insert -> Quick parts -> Field and select Hyperlink then hit OK
This inserts a URL without a link address, which you can then follow the rest of the steps to place the mergefield as the url
The { HYPERLINK { MERGEFIELD url } } approach should work, but to get the right displaytext, select the hyperlink field (whether the field or result is displaying, and run the following VBA in the VB Editor's immediate window:
selection.Fields(1).Result.Text = "the display text you want"