OpenXML Replace text place holder with an image - openxml

Searching around and still not sure how to do this correctly.
I can insert an image into a document at the end but I need to have it replace a text place holder and insert the image at that location.

Related

How can I render placeholders inside text in unity to allow drag n drop on them

I want to render placeholder inside text to allow drag and drop behavior on those placeholders like this image
What I want here is how to render this placeholder inside the text object, or even how to place them if the text length is not determined yet

Put graphics behind the text in the same window of SapScript

I need to put a .bmp of a stamp behind some text in a sapscript form - in one window.
I've uploaded the bitmap of the stamp by using the se78, I uploaded it as standard text.
I'm already done some testing. This is what I got so far:
/: INCLUDE Z_ADRS_SIGN_CN30 OBJECT TEXT ID ADRS LANGUAGE EN
/: INCLUDE 'Z_SIGN_STAMP_CN30' OBJECT TEXT ID ST LANGUAGE EN
This is working, but the stamp gets printed under the text.
If I switch the code-lines, the stamp gets printed above the text.
Now to my question: Is there a way to print the stamp behind the text in one window ? And if yes, how?
It can be done, but it's better to use SmartForms for this, because it can print watermarks natively.
For SapScript:
Create SO10 text element and insert graphics object there
Put this statement into your text element
BITMAP 'YOURBMP' OBJECT GRAPHICS ID BMAP TYPE BCOL.
In the MAIN window of your form put these statements
INCLUDE BMP OBJECT TEXT ID ST.
NEW-WINDOW.
The key point here is NEW-WINDOW statement. It opens new window oon the page explicitly and prints all consecutive SapScript statements in the new window.

Monogdb undefined error.. one doc is inserted and another doc is not inserted

I am trying to insert two documents in to a collection called hi.
Hear one document is inserted and other one is not inserting..
for understanding i keep the values as blue and red for pp field.
when i am inserting blue its inserted.
and when i insert red its not inserted
db.hi.insert({city:"ny",pp:"blue"})
this doc is inserted
if in this place and in this doc if i changed pp field to red or any thing its inserted
db.hi.insert({city:"ny",pp:"red"})
this doc is not inserted
but in this place if i changed it to blue or any thing also it wont insert
may be some thing like place holder s some thing i don't know what is this.. that's why i make a video for this ..
very STRANGE..
i made a video(recorded).. please watch in mute and in HD
and i know if you tried in you system it will work but for me its not worked .. that's why i make a video
Hear is the link i uploaded.
There is an invisible character in the code, right after the semicolon. It's the Unicode U+200B Zero-width space character. Instead of pressing "up" on your keyboard, try writing the insert statement again from scratch.
See also: No visible cause for "Unexpected token ILLEGAL"

Set text inside UIEdgeInsets?

I want to insert a text inside the area which one surrounded by UIEdgeInsets in UITextView.
Take a look at the following image
Here '1'(surrounded by border for easier understanding) --> The text which one I want to insert inside the UIEdgeInsets.
Here 'one' is the content inside UITextView.
Can I do it? If it is, give me an example.

Insert a table in an unalterable format into a Word 2010 file while retaining font size and sharpness

I am trying to insert a table in an unalterable format into a Word 2010 file while retaining font size and sharpness.
So far, I have tried preparing the table as a pdf, then using Insert -> Object -> Adobe Acrobat File to get it into Word. Unfortunately, this inserts the table within margins automatically created on the Word page, and distorts lines and font size within the table.
Here are some things I've tried:
- Setting the margins of the page in the recipient Word file to 0" before importing the pdf.
- Printing the pdf on on a smaller page (7" x 9") then importing onto a page 8.5" x 11".
Neither worked; the imported pages were resized and the table printed badly.
The pdf I used was prepared from Word using PrimoPDF.
Please feel free to suggest formats other than pdf for the transfer if they can be more easily incorporated into the final Word document.
Your help will be appreciated.
First, prepare the table as a Word document. Go to the Review tab, and select Restrict Editing. Set Editing Restrictions to allow No changes (Read only). Press Yes, Start Enforcing Protection. Save file.
Next prepare the recipient document in Word. Go to the Insert tab, select Object, Create from File, and browse to find and insert the file.
The table will be inserted into the recipient Word file as a document within a document, and its 'Read Only' protection is maintained. All fonts and line styles remain as originally set.