Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Closed 8 years ago.
Improve this question
Somehow, I got some tables inside the header and some inside the footers in the document Im working on. They are not supposed to be there, and this destroys the formatting.
How do I move a table out of the header/footer in Word 2010? They seem to be locked in there no matter what I do. I've tried copy/paste, dragging it, copy it to another document and back. Is there some settings on the table it self? Google has not found anything for me.
I had this happen to me just a second ago and was able to figure it out - hopefully the same thing is causing the problem for you.
I clicked on the table - then "table tools/layout" in the ribbon - then "properties" - alternatively you can right click on the table and select "table properties"
Once the "table properties" box opens - click on the "table" tab (it should be automatically selected by default) - make sure "text wrapping" is set to "none"
That should solve the problem - it did for me at least.
I'm not an expert in Word but I know how Word Document are structured.
We're going to open the content of the header in a text Editor.
Steps:
Be sure to make a copy of your document before this operations, because the resulting document could be corrupted
Rename your file in a .zip file
Extract the zip in a folder named document
Go inside that folder, than in the word folder.
You should see a file named header.xml (or header1.xml)
Open it in a textEditor
Try to find out where the table is and remove it
Ensure your xml is still valid: XML Validator
Save and close your file, and zip all folders and files inside the document (if you zip the whole document folder, the file will be corrupted)
Rename the zipped file to .docx
Open the file in Word
If this doesn't work, you could post your Header.xml file, they should'nt be some confidential in there (or you could replace it by whatever you want)
I had the same problem. I just changed the orientation of the page to landscape:
Go to page layout
Go to orientation
Select landscape
The table was still on a header, but word created a page 2 and page 1 was blank. From page 2, I just dragged the table onto page 1 and it was no longer in the header!
Then, change the orientation back to portrait (follow 2 steps above and select portrait in final step).
Hope this helps!
Thanks for the answers! This is how I solved the problem:
I fixed it "manually". I just made a new document and started copying over, there was more than one table bugging. Thanks for the help anyway!
Since this question is from July 2013, and I solved it then, I'm not testing your replies. But, they might be great for other people with the same problem! They are probably better solutions than just starting over.
Related
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Closed 1 year ago.
Improve this question
I am converting a word file into a pdf. Word version is 2016. I need to have hyperlinks active (References to sections, figures, etc.)
I use Export - Create a PDF/XPS Document and Optimized for Standard.
I have references to figures and tables completely working, but references to sections don't work. In the Table of Content, I cannot click on the page numbers. What can be done to have links to sections working?
To retain hyperlinks while converting word to pdf:
In word: Go to file, save as, choose option 'Best for electronic distribution and accessibility' and export.
Printing Word Document as PDF will deactivate all URL or link if it is inside a Text or Picture.
But if you use Save As PDF or Export as PDF Option to make your PDF all URL or link will be active and you can click on that text or picture to visit your desired link or URL.
Using Save as Option
Using Export
When you use Export as PDF,
make sure you are not on the option that says Best for printing
because your document is to be used for Electronic purposes.
Super simple way - Use the web version.
Visit office.com.
Open Word.
Create/Upload the document.
Click on File tab -> Save As -> Download As PDF.
P.S. - On uploading the document if you found it distorted/broken in the web version, just go ahead and download the PDF, it will not be distorted.
This is what worked for me:
Click on File -> Save As
In the popup, select the file type as PDF.
Click on the "Options" button.
Check the check box which says "PDF/A Compliant".
Click on OK and save the file in the required folder.
Also from what I've read, PDF/A is a better format for the future. Read more about it here: PDF/A Compliance
And another answer, but since nobody wrote it yet:
In my PDF no links worked until I deleted all internal links to other places in the doc, like footnotes. Once I deleted all internal links the http-links worked again. Be aware: one single link breaks the whole document!
If you click on Options in Save As, the options dialog will pop up. Under "Include non-printing information check Create bookmarks using ... checkbox, and select Heading radio button.
I used Save as Adobe PDF instead of Save As .. then select pdf format, none of the latter works. Save as Adobe PDF retained the hyperlinks for me, and the file size is a lot smaller too.
Under File, click "options".
Click on "Advanced" on the left side of the Word options pop up.
Uncheck "CTRL + Click to follow hyperlink"
Click "Ok".
Once you're done with this, proceed with converting your word file to pdf. The hyperlinks should be active now.
Hi I am working with Moodle 2.9.1. Here I have a form for upload a question and an answer file. I successfully upload the answer file to a location and inserted the question text and answer file name in database.
Now I want to edit the question, while editing the question the already uploaded file will be shown in the file picker area.
How can I show the uploaded file in filepicker area??
For text editor I can use
$mform->addElement('editor', 'desc', get_string('description'));
$mform->setDefault('desc', array('text'=>$defaulttext));
Please help me..
The filepicker element is used for uploading a single one-off file, that will be processed (and then, usually, discarded). If you are wanting a file that remains part of the Moodle storage and will reappear when you reopen the form, then you should use a filemanager (and restrict to a single file, if needed).
There are details in the Moodle docs about how to use this https://docs.moodle.org/dev/Using_the_File_API_in_Moodle_forms#filemanager (including re-populating the 'draft files' area when you load the form).
Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 8 years ago.
Improve this question
All OSs that exist right now work in files and folders. I was thinking that there are may other ways of storing files. Would it be a better way to store files by tags, for example:
A file called "music1" can have a tag "2013", if the music was made in 2013. The same file can have another tag called "Music", to say that the file is music, another file called "video1" could have the "2013" tag, but also have the "Video" tag instead of the "Music" one. This would be useful, because you could search for tags and generate nice-looking maps of all the files you have.
Here is an example:
In this example, files are in green. Each file has some tags(blue),and some special tags(red). Special tags contain things like the user(only the user in the tag can see files tagged USER:Username) and File type(instead of file extension). Tags in yellow are system filetypes that do not require a program to run them(like .exe in windows)
Black lines link tags to files
Red lines link special tags to files
Blue lines link what the file type(or file) is opened by. For example, the music is an ogg file. It is opened by OggViewer, which is a jar file opened by java. Java is opened by the system.
As far as I know, there is a nice file system level solution to your need called NHFS or nonhierarchical file system. Also available a FUSE based mountable file system called TMSU that may satisfy you.
It could have merit, for example I'm utterly disinterested in the file names/paths of my tens of thousands of music files; I only really care about the artist,title,album,year,etc of them, which is the way my music player (quodlibet) displays them. Choosing a set of music to put on another device or to send to someone could then be as easily as selecting an album (instead of browing to /home/me/music/who/knows/what/someartist - somealbum).
There is TagsForAll for windows. It is a file manager based on tags. Tags can have hierarchical structure. User interface is very simple but nice. Free version fully functional and save tags in database, Pro version save tags also within NTFS stream to a file.
Microsoft tried to do something like that with WinFS
but gave up on it. It would be great if they could get it to work.
There are some other (old, archived) projects implement this idea:
http://nascent.freeshell.org/programming/TagFS/
https://code.google.com/p/dhtfs/
https://code.google.com/p/tagfilesystem/
http://www.tagsistant.net/
Only the last seems to be releasing recent versions.
I think the idea has a future. I've pondered this same idea before. And tags fundamentally work better for most content than folders do; however, I wonder if the hierarchical structure of folders isn't actually better suited for files. In other words, though I like the idea of using tags on many levels I wonder if it would actually increase the overall complexity. For example, consider how tags could be used successfully to manage versioned software libraries. I'm afraid we won't know the answer until someone starts using the concept instead of folders for an entire OS. It'll be interesting to see/try.
Making a word document of our network set-up.
We have about 7 servers and I need to include screenshots and other info on each.
Is it possible to have a pic of the server that when clicked will open up another word doc that reveals all of the other info. Can this then be mailed to someone easily?
I think that you should have actually tried to do it in Word before asking. The answer is trivial. For completeness sake:
Right-click on the image, choose "Hyperlink..." from the menu. Select the document you want from the resulting standard file selection dialog.
That's it. Doing ctrl-click on the pickture will open up the document selected though you will probably get a security warning first.
You can also do it from a VBA macro. First select the desired image and then:
ActiveDocument.Hyperlinks.Add Anchor:=Selection.Range, Address:= _
"C:\Users\me\Documents\a-document.doc", SubAddress:=""
So you could automate the process of server discovery (or maybe you have the data in a spreadsheet that you could use), adding images and hyperlinks automatically. Probably not worth it for just 7 servers.
I'm not clear what you mean by the last part about emailing. Do you want to email the Master word document or the one opened after clicking on the hyperlink? Either way, Word has a menu option for doing this.
If you are wanting to send the document that is opened from the hyperlink - do you actually need the user to open that document or would you rather email it directly? A simple macro can be written that will ask you for the target email address and send the document directly without having to open it. There are really too many possibilities to write down here - we need more information.
Network analysis by Chrome when page loads
I would like to export this data to Microsoft Excel so that I will have a list of similar data when loaded at different times. Loading a page one time doesn't really tell me much especially if I want to compare pages.
if you right click on any of the rows you can export the item or the entire data set as HAR which appears to be a JSON format.
It shouldn't be terribly difficult to script up something to transform that to a csv if you really need it in excel, but if you're already scripting you might as well just use the script to ask your questions of the data.
If anyone knows how to drive the "load page, export data" part of the process from the command line I'd be quite interested in hearing how
from Chrome 76, you have Import/Export buttons.
I was trying to copy the size data measured from Chrome Network and stumbled on this post. I just found an easier way to "export" the data out to excel which is to copy the table and paste to excel.
The trick is click Control + A (select all) and once the entire table will be highlighted, paste it to Microsoft Excel. The only issue is if there are too many fields, not all rows are copied and you might have to copy and paste several times.
UPDATED: I found that copying the data only works when I turn off the filter options (the funnel-looking button above the table). – bendur
Right-click and export as HAR, then view it using Jan Odvarko's HAR Viewer
This helps in visualising the already captured HAR logs.
I came across the same problem, and found that easier way is to undock the developer tool's video to a separate window! (Using the right hand top corner toolbar button of developer tools window)
and in the new window , simply say select all and copy and paste to excel!!
In Chrome, in the Developer Tools, under Network, in the Name column, right-click and select "Save as HAR with content". Then open a new tab, go to https://toolbox.googleapps.com/apps/har_analyzer/ and open the saved HAR file.
Note that ≪Copy all as HAR≫ does not contain response body.
You can get response body via ≪Save as HAR with Content≫, but it breaks if you have any more than a trivial amount of logs (I tried once with only 8k requests and it doesn't work.) To solve this, you can script an output yourself using _request.contentData().
When there's too many logs, even _request.contentData() and ≪Copy response≫ would fail, hopefully they would fix this problem. Until then, inspecting any more than a trivial amount of network logs cannot be properly done with Chrome Network Inspector and its best to use another tool.
You can use fiddler web debugger to import the HAR and then it is very easy from their on... Ctrl+A (select all) then Ctrl+c (copy summary) then paste in excel and have fun
I don't see an export or save as option.
I filtered out all the unwanted requests using -.css -.js -.woff then right clicked on one of the requests then Copy > Copy all as HAR
Then pasted the content into a text editor and saved it.
I had same issue for which I came here. With some trials, I figured out for copying multiple pages of chrome data as in the question I zoomed out till I got all the data in one page, that is, without scroll, with very small font size. Now copy and paste that in excel which copies all the records and in normal font.
This is good for few pages of data I think.
In more modern versions of Chrome you can just drag a .har file into the network tab of Chrome Dev Tools to load it.
To get this in excel or csv format- right click the folder and select "copy response"- paste to excel and use text to columns.
You can try use Haiphen, which is a chrome extension that allows you to analyze network traffic and what API calls a web application is making.