I have an excel template with a logo at the left-top and an empty table after that. I am using java to generate an output excel file based on that template with filled table data. But in the output excel the logo is not getting displayed. Instead of the logo I am getting this :
Any fixes?
Thanks in advance.
Here is a solution that could correct that issue: In the Start menu, go to All Programs, then Accessories, then 'System Tools'. From there type 'Folder Options'. In the View tab of the dialog, clear the checkbox for "Hide extensions for known file types". Select OK.
To fix the icons, try repair Office. In the control panel, go to Programs & Features, right-click Microsoft Office(YEAR)-select Change. When the wizard opens, click on the Repair options, then press Continue.
Related
I try to atomatic generate entities by IntelliJ IDEA but not success.
error: Please choose presistence unit.
Help me generate entity and mapping files.
I've got the similar problem.Here is my solution.
add "JPA" facet.
open the "Project Structure" window -> click the "Facets" -> click the "add" button -> select "JPA"
add JPA persistence.xml.
click "persistence" -> right click your root item in the "persistence" toolbar -> "Generate Persistence Mapping" -> "By Database Schema".
generate entities.
you need add "hibernate.cfg.xml" first
Project Structure -> Modules -> Hibernate add hibernate.cfg.xml
The top voted answer does a decent job at getting you most of the way there. However, I was having some trouble on step 3. In summary:
Follow steps one and two in that post. Once you've done that and you have a persistence.xml file under the following path: src/main/resources/META-INF/persistence.xml , you will need to map your entity.
Find the "Persistence" toolbar within your IntelliJ IDE. Attached in the below screenshot is where mine was located.
image 1
Right click on the root of your persistence. For me this was "Well-Being-App" (this is a personal project). Select: Generate Persistence Mapping > By Database Schema. This will open the window that is shown in step 3 of the top post.
image 2
In this window you will need to do a few things. First, connect to your DB instance. I have MySQL installed locally so I was able to click the ellipsis next to "Choose Data Source", hit the "+" icon in the top left of the new window, select MySQL (in my case), supply your username and password in the input fields, give it a URL (likely to be jdbc:mysql://localhost:3306) and hit "Test Connection" at the bottom. If you get a success window, you've done everything right.
image 3
With the same window still open, select "Schemas" and make sure you have selected your DB of choice. WELLNESS_APP in my case. Now hit Ok at the bottom.
image 4
Back in the "Import Database Schema" window choose your package from the dropdown. Then, scroll through the "Database Schema Mapping" section until you find your table(s) of choice. Select them and verify the mapping is correct. Then, select the "Add to Persistence Unit" checkbox at the bottom, hit the "+" icon to the right of it, and give it a name. Verify the rest of your selections at the bottom match mine & then you're good to go. The result should be an addition to your persistence.xml that somewhat resembles what I've screenshotted.
image 5
image 5
Now, I'm quite new to all this but from my understanding, this is a process that will need to be undergone every time you decide to create, update, or delete your DB entities. I hope that is not the case, so if anyone uncovers a setting or preference that handles this for you, please let me know. Best of luck!
I was trying to record an iMacro for a task wherein I had to record a webpage login, alongwith a user and password, and after logging ino it, I had to right-click the webpage and select 'Saveframe as', where the entire frame should be saved to some specific location. When I tried this and tried to play, I am unable to view the right-click and 'Save frame as'. Please suggest if right-click (by mouse) is possible in iMacro.
The operating system on my workstation is 'Windows 7'.
The iMacro is being recorded and played on 'Mozilla Firefox 23.0.1' (As I need it over Mozilla Firefox and no other browser).
The iMacro version that I am using is the add-on 'iMacro 8.8.1'.
I will not be able to paste the code here, as it is confidential.
Kindly assist me for the above problem as soon as possible.
Thank you in advance.
Regards,
Jack.
You can make a tag command to extract HTM code from that FRAME. Check the HTML property of that code and make a TAG command. http://wiki.imacros.net/TAG
Then use SAVEAS command to save the code to a file. http://wiki.imacros.net/SAVEAS
I am trying to find the way of creating an application where I can connect with the users file system and show his own directories in a div, allowing to select files and drop into an HTML5 area.
The main problem is how to get the directory tree, all related to drag and drop HTML5 is solved. The way that I imagine this application, is a div on the left where you can see the tree, and a droppable area on the right, so that user can navigate through his disk and upload files.
Any recommendation, or contribution, or whatever is wellcome. I think that this could be done! It will be hard, but I hope I could solve this!
you DON'T GET access to any directory tree. Security measures
we want to evaluate Cruisecontrol 2.8.4 for our build process. It comes with a nice dashboard with symbols on the frontpage representing a project and the status.
What is missing is the name of the project, only if one hovers over the rectangle it shows the project name in a tooltip.
Is there any way to display the name of the project constantly on the main dashboard page ?
Thanks
Yes it is possible:
go to \cruisecontrol-bin-2.8.4\webapps\dashboard\WEB-INF\vm\latest_builds
Edit file latest_builds_bar_partial.vm
from Line
to :
${buildCmd.build.projectName}
then change in cruisecontrol-bin-2.8.4/webapps/dashboard/css the file daschboard_tab.css
just in the line .bar change width which do you want. Thats it.
You could manipulate the XSL which renders the Dashboard.
To be honest, if plugins and customisation are your thing, consider #Hudson.
i am using netBeans editor to create desktop application , i did something wrong that generate
three line of code in the initComponent() method related to connection with database. Then i removed the lines by opening the .java file in txt editor , but one of them keep coming back when i do anything with netBeans editor , So i want to delete this line from the netbeans itself . this is the line
historyList = java.beans.Beans.isDesignTime() ? java.util.Collections.emptyList() : ((javax.persistence.Query)null).getResultList();
and this is its declaration
private java.util.List<idetect.History> historyList;
Use the Inspector to find the query component and delete it
Window->Navigating->Inspector menu in Netbeans IDE 7.0.1
I think the simplest way to edit the automatically generated code is to do the following;
If you go to the Design panel of your class in Netbeans (where you can see the constructed GUI) then all of the elements you have added will be in the Navigator Pane, which is usually located in the bottom left.
If you can't see the Navigator pane then ctrl+7 brings it up.
Find the element you wish to remove in the list, right click and click Refactor > Safely Delete.
Personally if I need to write a GUI in Netbeans I use it to generate the boring stuff, and then paste the generated code into a different editor to write my actions.
The java source is regenerated automatically from the matching .form file. You need to delete the component either from the GUI editor itself or from the form file(which is not visible in NetBeans).
When you've opened a GUI form in NetBeans its components are visible in a tree in the Inspector tab in the lower left part of your screen. You can select the component you want to delete there, right click and select "Delete".
Easiest Solution: Open the .java-file in your project-directory containing your "initComponent"-Method with another text-editing Program (e.g. notepad++) and delete the lines you want to remove. It worked out for me.