Need help in exporting Book(Created in HFR) into to excel
HI,
I have created BOOK in workspace (System 9) using HFR reports.
I have a problem to export the BOOK into excell.
Please provide me the solution for this issue.
Thanks,
Shanti.
Hi,
When I am trying to export the HFR report into Excel, getting the below error. Could you please advice me on how can I export the Report into excel.
Version is HFR 9.2.
Thanks alot in advance for your help.
From: Hyperion Reports Export
Subject:
Date: Wed, 15 Sep 2004 14:21:07 -0400
MIME-Version: 1.0
Content-Type: multipart/related;
type="text/html";
boundary="----=_NextPart_4395951"
X-MimeOLE: Produced By Hyperion Reports 7.2
This is a multi-part message in MIME format.
------=_NextPart_4395951
Content-Type: text/html;
charset="utf-8"
Content-Location:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
Similar Messages
-
Need help in export/import
Hello All,
I need help in export/import of an internal table (based on deep structure) to/from desktop either in excel or XML file.
I have an int table which has to be sent to desktop either in xls or xml file and then import back to an internal table(with deep structure).
Ex :
Int table is based on structure.
Structure has fields
as
f1 -
f2 -
f3 - table type
Your help will be appreciated.Hi Nishant,
Please put your question in below mention forum.
SAP Business One SDK
Thanks
Mohammad Imran -
Need help for publishing web intelligence document (universe) into InfoView
Post Author: mirage
CA Forum: Publishing
Hello all,
I need help for publishing web intelligence document (universe) into InfoView.
can't find this information in Business Objects Designer's Guide and in Business Objects Administrator Guide.
Can somebody give short instructions how can I do it?
Regards, SlavaIf the change between the 2 types of data has to happen dynamically during run time them
1. Use 2 dataproviders
a. Current
b. Historic
2. Merge the 2 dimensions
3. Use Webi variable to switch between the measure of the current and historic universe
Ex if [year] < 2010 then historic.[expense] else current.[expense]
Hope this helps,
Divya -
I need to download data from Oracle data base into a Excel spread sheet
I need to download data from Oracle data base into a Excel spread sheet.
Any input will be appreciated.Goes something like this:
1) create an ODBC connection (on NT/WIN: ODBC DATA SOURCES in the control panel, create a USER DSN.
2) in EXCEL-menu: DATA->GET EXTERNAL DATA->CREATE NEW QUERY. In the wizzard you will see the DSN created in the previous step. Select that source.
3) follow the wizzard.
Hope this does any good...
Regards, -
I need help with export settings
Hi everyone,
I need help outputting an HD file for presenting a video to a client. I have tried exporting to HD .mov (H.264 codec) and PE keeps crashing (error compiling movie). From what I’ve read here, it’s due to the gargantuan file QT creates and HD space (even though I think I have enough HD available).
So, I need a recommendation from you on what kind of file to output which will allow me to present the movie to the client in HD. This file is solely for the presentation, I have already published for web (FLV) and YouTube (direct share from PE) and they both worked fine.
Here are my project specs:
Timeline: 4:26
Format: 1920 X 1080 HD
Timebase: 29.97 frames per second
OS: Windows XP SP3
Processor: Intel Core 2 Duo @ 2.66GHz
RAM: 4GB
Project Drive: 250GB disk with 152GB free space internal dedicated project drive (separate from OS)
Thanks in advance for your help,
JoseHi Steve, Neale,
I wanted to follow-up on this post. I came into the office today to run a few tests so I can make sure that I have the correct settings on my camera and PE project for the next time around. Here are few observations I was wondering if you can comment on:
My Sony camera cannot shoot HDV. The only format it supports is AVCHD, so I'm stuck converting.
I tried to convert the footage I have to HDV with the software I have (AVS Video Converter and Koyote Soft HD Converter) and neither of the two have an "HDV" conversion setting. I see AVI, MPEG, MOV and many different settings in each (AVI: Hd Video 1080p: H.264AVC, 29.97fps, 4200kbps, Audio MP3, 256 kbps or MPEG: HD Video 1080p - MPEG2, 15000 kbps, 1920X1080, 29.97fps, etc). What should I be looking for?
I searched for "best file format" in the forum and found various postings from both of you referring to converting to DV-AVI within PE; especially if you have AVCHD footage (which I have). So, I followed directions and converted a file for testing. Then, I created a new project using HDV 1080i 30 settings and imported the converted file. I still get a red line on the timeline. Any thoughts on what I'm doing wrong?
I also converted the MOV files (shot in HDV 60i with the pro camera) to DV-AVI. I also get a red line on the timeline...
The DV-AVI converted footage (both cases) doesn't appear to be HD. It looks jagged on the preview window. Is it HD?
The DV-AVI converted footage is almost double the file size as the MTS (AVCHAD) file (138mb vs. 60mb). Isn't that going to make PE run slower?
Thanks in advance for your help. I just wanna make sure I do my homework now so I set everything up correctly on the next project.
Jose
P.S. I almost forgot! Here's the link to the live video on YouTube: http://www.youtube.com/watch?v=fEkqPmefJV0
Message was edited by: josejb70 - Added YouTube link -
Mail Newbie needs help importing address books from SeaMonkey
I multiple address books created in SM Mail which I have exported as ldif files. I created various "Groups" in Address Book but when I try to import them, they come into "All Contact" and another Group called "Last Import", not the "Group" I would like them to be in. I can move the address to the correct "Group" but after I do so and empty the "Last Import" Group it deletes them elsewhere. With each new import "The Last Import" Group continues to grow and it seems awkward to have to sort through the address to then move them to the correct group, any tips or is this just the Address works?
Any suggestions will be most appreciated.I don't know if this works with LDIF files, but it works for my VCF vcards: drag the files onto the appropriate groups (as opposed to using the Import feature). You might need to have the group selected, although that was unnecessary when I did it. Don't just drag them anywhere in the Address Book window; the cursor must hover over and highlight the destination group's name (you should receive a confirmation dialog box about wanting to add the contacts to that group).
As for the Last Import group, that seems to be currently broken. Like yours, my Last Import group does not refresh to show the most recent additions. Rather it accumulates everything from every import ever, which renders it pretty useless. -
Need Help with Export to ePub in CS5.5
I am working on my first ePub in InDesign 5.5. When I go to File—Export for— there is no option for ePub. In fact there is only "Buzzword" and it grayed out. How do I get export for epub?
In InDesign CS 5.5, it's File > Export > EPUB.
However, if this is new for you, if you haven't prepared your file properly, it may come out like mush.
You need to prepare export order, styling of paragraph styles, character styles and object styles, you need to create a TOC style, there are many steps.
I highly recommend one of these two resources:
Anne-Marie Concepcion has a video series on Lynda.com for CS5.5:
http://www.lynda.com/InDesign-CS5-5-tutorials/to-EPUB-Kindle-and-iPad/82258-2.html
You can get a week trial for free.
You can also get eBooks from Elizabeth Castro:
http://www.elizabethcastro.com/epub/ -
I need help with the following book problem...could someone write this code for me?? Thanks!!
First design and implement a class called PairOfDice, composed of two six-sided Die objects. Using the PairOfDice class, design and implement a class to play a game called Pig. In this game, the user competes against the computer. On each turn, the current player rolls a pair of dice and accumulates points. The goal is to reach 100 points before your opponent does. If, on any turn, the player rolls a 1, all points accumulated for that round are forfeited and control of the dice moves to the other player. If the player rolls two 1s in one turn, the player loses all points accumulated thus far in the game and loses control of the dice. The player may voluntarily turn over the dice after each roll. Therefore the player must decide to either roll again (be a pig) and risk losing points, or relinquish control of the dice, possibly allowing the other player to win. Implement the computer player such that it always relinquishes the dice after accumulating 20 or more points in any given round.
I realize this is a long code, so it would be greatly appreciated to anyone who writes this one for me, or can at least give me any parts of it. I honestly have no clue how to do this because our professor is a dumbass and just expects us to know how to do this...he doesn't teach us this stuff...don't ask. Anyways, thanks for taking the time to read this and I hope someone helps out!! Thank you in advance to anyone who does!!!Nasty comments? It's not a matter of not liking you, it's a matter of responding to the
"I'ts everyone else's fault but mine" attitude of your post.
If you are genuine, the program is very easy to write, so, your Professor is correct when he said you should
be able to do it. I'm still very much in the beginner category at java, and it took me only 20 mins to write
(+5 mins to design it on paper). 2 classes in one file < 100 lines. Most of the regulars here would do it in half the time / half the lines.
All of the clues are in the description, break them down into their various if / else conditions. Write it down on paper.
Have a go. Try to achieve something. Post what you've tried, no-one will laugh at you, and you will be
pleasanty surprised at the level of help you will get when you've "obviously" made some effort.
Again, have a go. If you don't like problem-solving, then you don't like programming. So, you gotta ask
yourself - "what am I doin' here?" -
Need help pulling data from an outside file into my array. Please help =)
Hi,
I need help adapting my array to read the interest rates from an outside file. Here is my code and the outside file I wrote. Please help. Oh, the array in question is on line 259, inside of my calculation() method.
Thanks...
import javax.swing.*;
import javax.swing.event.*;
import java.awt.*;
import java.awt.event.*;
import java.text.NumberFormat;
import java.text.DecimalFormat;
import java.io.*;
import javax.swing.JOptionPane;
public class Workshop5 extends JFrame implements ActionListener
//declare gui components
//declare labels
JPanel contentPane = new JPanel();
JPanel graphPane = new JPanel();
JLabel instructionLabel = new JLabel();
JLabel amountLabel = new JLabel();
JLabel orLabel = new JLabel();
JLabel comboBoxLabel = new JLabel();
JLabel termLabel = new JLabel();
JLabel rateLabel = new JLabel();
JLabel calcLabel = new JLabel();
JLabel paymentLabel = new JLabel();
JLabel tableLabel = new JLabel();
//declare font object
Font labelFont = new Font("Tahoma", Font.PLAIN, 16);
//declare text fields
JTextField amountField = new JTextField(20);
JTextField termField = new JTextField(20);
JTextField rateField = new JTextField(20);
JTextField paymentField= new JTextField(20);
//declare combo box for loan selection
JComboBox comboBox = new JComboBox();
//declare button group and radio buttons
ButtonGroup buttonGroup = new ButtonGroup();
JRadioButton enterRadioButton = new JRadioButton("Enter amount, term, & rate", true);
JRadioButton selectRadioButton = new JRadioButton("Select a preset term/rate loan", false);
//declare button objects
JButton clearButton = new JButton();
JButton calcButton = new JButton();
JButton quitButton = new JButton();
//declare text area for amortization
JTextArea amortTextArea = new JTextArea();
JTextArea testTextArea = new JTextArea();
//declare scroll bar for amortization table
JScrollPane scrollPane = new JScrollPane(amortTextArea,ScrollPaneConstants.VERTICAL_SCROLLBAR_ALWAYS,ScrollPaneConstants.HORIZONTAL_SCROLLBAR_AS_NEEDED);
public Workshop5()
instructionLabel.setText("Choose one of the following payment calculation options:");
instructionLabel.setFont(new Font("Tahoma",Font.PLAIN,16));
//adds both buttons to button group
buttonGroup.add(enterRadioButton);
buttonGroup.add(selectRadioButton);
enterRadioButton.setFont(labelFont);
enterRadioButton.setBackground(Color.WHITE);
enterRadioButton.setContentAreaFilled(false);
enterRadioButton.addActionListener(this); //adds action listener to enter radio button
orLabel.setText("OR");
orLabel.setFont(new Font("Tahoma",Font.BOLD,18));
selectRadioButton.setFont(labelFont);
selectRadioButton.setBackground(Color.WHITE);
selectRadioButton.setContentAreaFilled(false);
selectRadioButton.addActionListener(this); //adds action listener to select radio button
amountLabel.setText("Enter mortgage amount");
amountLabel.setFont(new Font("Tahoma", Font.PLAIN,16));
amountField.requestFocusInWindow();
termLabel.setText("Enter term length in years:");
termLabel.setFont(new Font("Tahoma", Font.PLAIN,14));
rateLabel.setText("Enter interest rate:");
rateLabel.setFont(new Font("Tahoma", Font.PLAIN,14));
comboBoxLabel.setText("Select a loan:");
comboBoxLabel.setFont(new Font("Tahoma", Font.PLAIN,14));
comboBox.setBackground(new Color(255,255,255));
comboBox.setFont(new Font("Tahoma", Font.PLAIN, 14));
comboBox.setEnabled(false);
ComboBox();
calcLabel.setText("Press Calculate button to determine monthly payment.");
calcLabel.setFont(new Font("Tahoma", Font.PLAIN, 16));
calcButton.setText("Calculate");
calcButton.setFont(new Font("Tahoma", Font.BOLD, 14));
calcButton.addActionListener(this);
//define monthly payment label
paymentLabel.setText("Monthly payment:");
paymentLabel.setFont(new Font("Tahoma", Font.PLAIN, 16));
//define monthly payment text field
paymentField.setFont(new Font("Tahoma", Font.BOLD,16));
paymentField.setBackground(new Color(255,255,255));
paymentField.setEditable(false);
//define clear button
clearButton.setText("Clear");
clearButton.setFont(new Font("Tahoma", Font.BOLD,14));
clearButton.addActionListener(this);
//define quit button
quitButton.setText("Quit");
quitButton.setFont(new Font("Tahoma", Font.BOLD,14));
quitButton.addActionListener(this);
tableLabel.setText("Amoritization Table");
tableLabel.setFont(new Font("Tahoma", Font.BOLD, 16));
graphPane.setBackground(Color.WHITE);
//add components to content
getContentPane().add(contentPane);
contentPane.setLayout(null);
addComponent(contentPane, instructionLabel, 80,10,450,26);
addComponent(contentPane, enterRadioButton, 30,40,220,30);
addComponent(contentPane, orLabel, 280,40,100,30);
addComponent(contentPane, selectRadioButton, 335,40,350,30);
addComponent(contentPane, amountLabel, 100,80,220,26);
addComponent(contentPane, amountField, 300,80,150,26);
addComponent(contentPane, termLabel, 15,125,200,30);
addComponent(contentPane, termField, 195,125,125,30);
addComponent(contentPane, rateLabel, 62,160,200,30);
addComponent(contentPane, rateField, 195,165,125,30);
addComponent(contentPane, comboBoxLabel, 400,125,200,26);
addComponent(contentPane, comboBox, 400,155,150,30);
addComponent(contentPane, calcLabel, 100,200,400,30);
addComponent(contentPane, calcButton, 250,240,100,30);
addComponent(contentPane, paymentLabel, 150,285,200,30);
addComponent(contentPane, paymentField, 300,285,100,30);
addComponent(contentPane, clearButton, 100,330,100,30);
addComponent(contentPane, quitButton, 400,330,100,30);
addComponent(contentPane, tableLabel, 200,370,300,26);
addComponent(contentPane, scrollPane, 10,400,450,360);
addComponent(contentPane, graphPane, 475,400,305,360);
//add window listener to close window when user presses X
addWindowListener(new WindowAdapter()
public void windowClosing(WindowEvent e)
System.exit(0);
pack();
//method to add components
private void addComponent(Container container, Component c, int x, int y, int width, int height)
c.setBounds(x, y, width, height);
container.add(c);
//action performed method
public void actionPerformed(ActionEvent event)
Object source = event.getSource();
if (source == calcButton)
Calculate();
if (source == clearButton)
Clear();
if (source == quitButton)
Exit();
//defines active area based on user selection of mortgage calculation method
//if user chooses to enter the mortgage manually, combo box fields are inactive
if (source == enterRadioButton)
comboBox.setEnabled(false);
termField.setEnabled(true);
termField.setEditable(true);
rateField.setEnabled(true);
rateField.setEditable(true);
amountField.setText("");
amountField.requestFocusInWindow();
termField.setText("");
rateField.setText("");
paymentField.setText("");
amortTextArea.setText("");
//if user chooses to select from a preset mortgage, rate and term fields are inactive
if (source == selectRadioButton)
comboBox.setEnabled(true);
termField.setEnabled(false);
termField.setEditable(false);
rateField.setEnabled(false);
rateField.setEditable(false);
amountField.setText("");
amountField.requestFocusInWindow();
termField.setText("");
rateField.setText("");
paymentField.setText("");
amortTextArea.setText("");
}//end of action performed method
//combo box method
public void ComboBox()
String[] LoanArray = {" 7 years at 5.35 %", " 15 years at 5.50 %", " 30 years at 5.75 %"};
for (int i = 0; i < LoanArray.length; i++)
comboBox.addItem(LoanArray);
}//end combo box method
//calculation method
void Calculate()
//resets fields
paymentField.setText("");
amortTextArea.setText("");
//calculation variables
NumberFormat currency = NumberFormat.getCurrencyInstance();
int [] termArray = {7, 15, 30}; //array of years
double [] yearlyInterestArray = {5.35, 5.5, 5.75}; //array of interest
int totalMonths = 0; //total months
double Loan = 0.0; //amount of loan
double MonthlyInterest = 0.0; //monthly interest rate
double Payment = 0.0; //calculate payment
double monthlyPayment = 0.0; //calculate monthly payment
double Interest = 0.0; //variable for Interest Array input
int Term = 0; //variable for Term Array input
double NewMonthlyInterest = 0.0; //new interest amount
double NewLoan = 0.0; //new loan amount
double Reduction = 0.0; //principle reduction
//validate input
try
Loan = Double.parseDouble(amountField.getText());
catch (NumberFormatException e)
JOptionPane.showMessageDialog(null,"Invalid Entry. Please enter valid loan amount.", "Error", JOptionPane.WARNING_MESSAGE);
//resets input fields after error message
amountField.setText("");
amountField.requestFocusInWindow();
//if select button is chosen
if (selectRadioButton.isSelected())
int index = comboBox.getSelectedIndex();
Term = termArray[index];
Interest = yearlyInterestArray[index];
//if user chooses to enter mortgage information
else
if (enterRadioButton.isSelected())
//validates input
try
Term = Integer.parseInt(termField.getText());
catch (NumberFormatException e)
JOptionPane.showMessageDialog(null,"Invalid entry. Please enter valid term length in years.", "Error",JOptionPane.WARNING_MESSAGE);
//clears fields after error message
termField.setText("");
termField.requestFocusInWindow();
try
Interest = Double.parseDouble(rateField.getText());
catch (NumberFormatException e)
JOptionPane.showMessageDialog(null,"Invalid entry. Please enter valid rate (without percent symbol).","Error",JOptionPane.WARNING_MESSAGE);
//clears fields after error message
rateField.setText("");
rateField.requestFocusInWindow();
//perform calculations
if (Loan > 0)
Loan = Double.parseDouble(amountField.getText());
MonthlyInterest = (Interest / 12)/100;
totalMonths = Term * 12;
monthlyPayment = Loan * MonthlyInterest *(Math.pow((1 + MonthlyInterest), totalMonths)/(Math.pow((1 + MonthlyInterest), totalMonths)-1));
paymentField.setText("" + currency.format(monthlyPayment));
//send information to amortization text area
amortTextArea.append("Number\t");
amortTextArea.append(" Amount\t");
amortTextArea.append("Interest\t");
amortTextArea.append("Principle\t");
amortTextArea.append("Balance\n");
NewLoan = Loan;
for (int i = 1; i <= totalMonths; i++)
NewMonthlyInterest = MonthlyInterest * NewLoan;
Reduction = monthlyPayment - NewMonthlyInterest;
NewLoan = NewLoan - Reduction;
amortTextArea.append(" " + i +"\t");
amortTextArea.append(" " + currency.format(monthlyPayment) + "\t");
amortTextArea.append(" " + currency.format(NewMonthlyInterest)+ "\t");
amortTextArea.append(" " + currency.format(Reduction) + "\t");
amortTextArea.append(" " + currency.format(NewLoan) + "\n");
//resets fields if loan amount is less than zero
if((Loan <= 0 || Term <= 0 || Interest <= 0))
paymentField.setText("");
amortTextArea.setText("");
}//end calcualtion method
//clear method
void Clear()
amountField.setText("");
amountField.requestFocusInWindow();
termField.setText("");
rateField.setText("");
paymentField.setText("");
amortTextArea.setText("");
}//end of clear method
//main method
public static void main(String args[])
Workshop5 f = new Workshop5();
f.setTitle("Carol's Mortgage Calculator");
f.setBounds(200,100,800,800);
f.setResizable(false);
f.setVisible(true);
}//end of main method
//exit method
void Exit()
System.exit(0);
}//end of exit method
}//program end
My data file is called: "InterestData.dat" and only contains the following text:
5.35, 5.5, 5.75Ok, now I am getting this error message:
cannot resolve symbol method lenght()
Please help me out here, this is due tomorrow and I've been killing myself on it...
attaching program with revised code included, see beginning of calculation method line 250:
import javax.swing.*;
import javax.swing.event.*;
import java.awt.*;
import java.awt.event.* ;
import java.text.NumberFormat;
import java.text.DecimalFormat;
import java.io.*;
import javax.swing.JOptionPane;
public class Workshop5 extends JFrame implements ActionListener
//declare gui components
//declare labels
JPanel contentPane = new JPanel();
JPanel graphPane = new JPanel();
JLabel instructionLabel = new JLabel();
JLabel amountLabel = new JLabel();
JLabel orLabel = new JLabel();
JLabel comboBoxLabel = new JLabel();
JLabel termLabel = new JLabel();
JLabel rateLabel = new JLabel();
JLabel calcLabel = new JLabel();
JLabel paymentLabel = new JLabel();
JLabel tableLabel = new JLabel();
//declare font object
Font labelFont = new Font("Tahoma", Font.PLAIN, 16);
//declare text fields
JTextField amountField = new JTextField(20);
JTextField termField = new JTextField(20);
JTextField rateField = new JTextField(20);
JTextField paymentField= new JTextField(20);
//declare combo box for loan selection
JComboBox comboBox = new JComboBox();
//declare button group and radio buttons
ButtonGroup buttonGroup = new ButtonGroup();
JRadioButton enterRadioButton = new JRadioButton("Enter amount, term, & rate", true);
JRadioButton selectRadioButton = new JRadioButton("Select a preset term/rate loan", false);
//declare button objects
JButton clearButton = new JButton();
JButton calcButton = new JButton();
JButton quitButton = new JButton();
//declare text area for amortization
JTextArea amortTextArea = new JTextArea();
JTextArea testTextArea = new JTextArea();
//declare scroll bar for amortization table
JScrollPane scrollPane = new JScrollPane(amortTextArea, ScrollPaneConstants.VERTICAL_SCROLLBAR_ALWAYS,ScrollPaneConstants.HORIZONTAL_SCROLLBAR_AS_NEEDED);
public Workshop5()
instructionLabel.setText("Choose one of the following payment calculation options:");
instructionLabel.setFont(new Font("Tahoma",Font.PLAIN,16));
//adds both buttons to button group
buttonGroup.add(enterRadioButton);
buttonGroup.add (selectRadioButton);
enterRadioButton.setFont(labelFont);
enterRadioButton.setBackground(Color.WHITE);
enterRadioButton.setContentAreaFilled(false);
enterRadioButton.addActionListener(this); //adds action listener to enter radio button
orLabel.setText("OR");
orLabel.setFont(new Font("Tahoma",Font.BOLD,18));
selectRadioButton.setFont(labelFont);
selectRadioButton.setBackground(Color.WHITE);
selectRadioButton.setContentAreaFilled(false);
selectRadioButton.addActionListener (this); //adds action listener to select radio button
amountLabel.setText("Enter mortgage amount");
amountLabel.setFont(new Font("Tahoma", Font.PLAIN,16));
amountField.requestFocusInWindow();
termLabel.setText("Enter term length in years:");
termLabel.setFont(new Font("Tahoma", Font.PLAIN,14));
rateLabel.setText("Enter interest rate:");
rateLabel.setFont(new Font("Tahoma", Font.PLAIN,14));
comboBoxLabel.setText("Select a loan:");
comboBoxLabel.setFont(new Font("Tahoma", Font.PLAIN,14));
comboBox.setBackground(new Color(255,255,255));
comboBox.setFont(new Font("Tahoma", Font.PLAIN, 14));
comboBox.setEnabled(false);
ComboBox();
calcLabel.setText("Press Calculate button to determine monthly payment.");
calcLabel.setFont(new Font("Tahoma", Font.PLAIN, 16));
calcButton.setText("Calculate");
calcButton.setFont(new Font("Tahoma", Font.BOLD, 14));
calcButton.setBackground(new Color(202,255,112));
calcButton.addActionListener(this);
//define monthly payment label
paymentLabel.setText("Monthly payment:");
paymentLabel.setFont(new Font("Tahoma", Font.PLAIN, 16));
//define monthly payment text field
paymentField.setFont (new Font("Tahoma", Font.BOLD,16));
paymentField.setBackground(new Color(255,255,255));
paymentField.setEditable(false);
//define clear button
clearButton.setText("Clear");
clearButton.setFont(new Font("Tahoma", Font.BOLD,14));
clearButton.setBackground(new Color(202,255,112));
clearButton.addActionListener(this);
//define quit button
quitButton.setText("Quit");
quitButton.setFont(new Font("Tahoma", Font.BOLD,14));
quitButton.setBackground(new Color(202,255,112));
quitButton.addActionListener(this);
//define label for amortization table
tableLabel.setText ("Amoritization Table");
tableLabel.setFont(new Font("Tahoma", Font.BOLD, 16));
graphPane.setBackground(Color.WHITE);
//add components to content
getContentPane().add(contentPane);
contentPane.setLayout(null);
addComponent(contentPane, instructionLabel, 80,10,450,26);
addComponent(contentPane, enterRadioButton, 30,40,220,30);
addComponent(contentPane, orLabel, 280,40,100,30);
addComponent(contentPane, selectRadioButton, 335,40,350,30);
addComponent(contentPane, amountLabel, 100,80,220,26);
addComponent(contentPane, amountField, 300,80,150,26);
addComponent(contentPane, termLabel, 15,125,200,30);
addComponent(contentPane, termField, 195,125,125,30);
addComponent(contentPane, rateLabel, 62,160,200,30);
addComponent(contentPane, rateField, 195,165,125,30);
addComponent(contentPane, comboBoxLabel, 400,125,200,26);
addComponent(contentPane, comboBox, 400,155,150,30);
addComponent(contentPane, calcLabel, 100,200,400,30);
addComponent(contentPane, calcButton, 250,240,100,30);
addComponent(contentPane, paymentLabel, 150,285,200,30);
addComponent(contentPane, paymentField, 300,285,100,30);
addComponent(contentPane, clearButton, 100,330,100,30);
addComponent(contentPane, quitButton, 400,330,100,30);
addComponent(contentPane, tableLabel, 200,370,300,26);
addComponent(contentPane, scrollPane, 10,400,450,360);
addComponent(contentPane, graphPane, 475,400,305,360);
//add window listener to close window when user presses X
addWindowListener(new WindowAdapter()
public void windowClosing(WindowEvent e)
System.exit(0);
pack();
//method to add components
private void addComponent(Container container, Component c, int x, int y, int width, int height)
c.setBounds(x, y, width, height);
container.add(c);
//action performed method
public void actionPerformed(ActionEvent event)
Object source = event.getSource();
if (source == calcButton)
Calculate();
if (source == clearButton)
Clear();
if (source == quitButton)
Exit();
//defines active area based on user selection of mortgage calculation method
//if user chooses to enter the mortgage manually, combo box fields are inactive
if (source == enterRadioButton)
comboBox.setEnabled(false);
termField.setEnabled(true);
termField.setEditable(true);
rateField.setEnabled(true);
rateField.setEditable(true);
amountField.setText ("");
amountField.requestFocusInWindow();
termField.setText("");
rateField.setText("");
paymentField.setText ("");
amortTextArea.setText("");
//if user chooses to select from a preset mortgage, rate and term fields are inactive
if (source == selectRadioButton)
comboBox.setEnabled(true);
termField.setEnabled(false);
termField.setEditable(false);
rateField.setEnabled (false);
rateField.setEditable(false);
amountField.setText("");
amountField.requestFocusInWindow();
termField.setText ("");
rateField.setText("");
paymentField.setText("");
amortTextArea.setText("");
}//end of action performed method
//combo box method
public void ComboBox()
String[] LoanArray = {" 7 years at 5.35 %", " 15 years at 5.50 %", " 30 years at 5.75 %"};
for (int i = 0; i < LoanArray.length; i++)
comboBox.addItem(LoanArray);
}//end combo box method
//calculation method
void Calculate()
//resets fields
paymentField.setText("");
amortTextArea.setText("");
//calculation variables
NumberFormat currency = NumberFormat.getCurrencyInstance();
//declare input stream object
InputStream istream;
//create a file object to refer to the outside file
File interestData = new File("InterestFile.dat");
//assign instream to the new file object
istream = new FileInputStream(interestData);
try
StringBuffer sb = new StringBuffer();
BufferedReader in = new BufferedReader(new FileReader(interestData));
String line = "";
while((line = in.readLine()) != null)
sb.append(line);
in.close();
String fileData = sb.toString();
String[] splitData = fileData.split(", ");
double [] yearlyInterestArray = new double[splitData.length()];
for(int j = 0; j < splitData.length(); j++)
yearlyInterestArray[j] = new Double(splitData[j]).doubleValue();
catch (IOException e)
JOptionPane.showMessageDialog(null, "File does not exist." + e.getMessage());
int [] termArray = {7, 15, 30}; //array of years
double [] yearlyInterestArray = { 5.35, 5.5, 5.75}; //array of interest
int totalMonths = 0; //total months
double Loan = 0.0; //amount of loan
double MonthlyInterest = 0.0; //monthly interest rate
double Payment = 0.0; //calculate payment
double monthlyPayment = 0.0; //calculate monthly payment
double Interest = 0.0; //variable for Interest Array input
int Term = 0; //variable for Term Array input
double NewMonthlyInterest = 0.0; //new interest amount
double NewLoan = 0.0; //new loan amount
double Reduction = 0.0; //principle reduction
//validate input
try
Loan = Double.parseDouble(amountField.getText());
catch (NumberFormatException e)
JOptionPane.showMessageDialog(null,"Invalid Entry. Please enter valid loan amount.", "Error", JOptionPane.WARNING_MESSAGE);
//resets input fields after error message
amountField.setText("");
amountField.requestFocusInWindow ();
//if select button is chosen
if (selectRadioButton.isSelected())
int index = comboBox.getSelectedIndex ();
Term = termArray[index];
Interest = yearlyInterestArray[index];
//if user chooses to enter mortgage information
else
if (enterRadioButton.isSelected())
//validates input
try
Term = Integer.parseInt(termField.getText());
catch (NumberFormatException e)
JOptionPane.showMessageDialog(null,"Invalid entry. Please enter valid term length in years.", "Error",JOptionPane.WARNING_MESSAGE);
//clears fields after error message
termField.setText("");
termField.requestFocusInWindow();
try
Interest = Double.parseDouble(rateField.getText());
catch (NumberFormatException e)
JOptionPane.showMessageDialog(null,"Invalid entry. Please enter valid rate (without percent symbol).","Error",JOptionPane.WARNING_MESSAGE);
//clears fields after error message
rateField.setText("");
rateField.requestFocusInWindow();
//perform calculations
if (Loan > 0)
Loan = Double.parseDouble(amountField.getText ());
MonthlyInterest = (Interest / 12)/100;
totalMonths = Term * 12;
monthlyPayment = Loan * MonthlyInterest *(Math.pow ((1 + MonthlyInterest), totalMonths)/(Math.pow((1 + MonthlyInterest), totalMonths)-1));
paymentField.setText("" + currency.format(monthlyPayment));
//send information to amortization text area
amortTextArea.append("Number\t");
amortTextArea.append(" Amount\t");
amortTextArea.append("Interest\t");
amortTextArea.append("Principle\t");
amortTextArea.append("Balance\n");
NewLoan = Loan;
for (int i = 1; i <= totalMonths; i++)
NewMonthlyInterest = MonthlyInterest * NewLoan;
Reduction = monthlyPayment - NewMonthlyInterest;
NewLoan = NewLoan - Reduction;
amortTextArea.append(" " + i +"\t");
amortTextArea.append (" " + currency.format(monthlyPayment) + "\t");
amortTextArea.append(" " + currency.format(NewMonthlyInterest)+ "\t");
amortTextArea.append(" " + currency.format(Reduction) + "\t");
amortTextArea.append(" " + currency.format(NewLoan) + "\n");
//resets fields if loan amount is less than zero
if((Loan <= 0 || Term <= 0 || Interest <= 0))
paymentField.setText("");
amortTextArea.setText("");
}//end calcualtion method
//clear method
void Clear()
amountField.setText("");
amountField.requestFocusInWindow();
termField.setText("");
rateField.setText("");
paymentField.setText("");
amortTextArea.setText("");
}//end of clear method
//main method
public static void main(String args[])
Workshop5 f = new Workshop5();
f.setTitle("Carol's Mortgage Calculator");
f.setBounds(200,100,800,800);
f.setResizable(false);
f.setVisible(true);
}//end of main method
//exit method
void Exit()
System.exit(0);
}//end of exit method
}//program end -
I need help understanding export options and optimizing for web
I have been using FCP X for a short while now and have a pretty good grasp on the editing capabilities. What I'm having a horrible time figuring out is the export/share options. The videos I create are typically approximately 1 minute in length and get posted to a web site (we have our own CMS and video player so I'm not using YouTube or Vimeo or anything like that). In order to post them I need them to be MP4s and then I have to create .webm and .ogv files. The source material I work with is generally great, high quality stuff, so I end up with very large output files from the initial FCP share master file options.
When I use MPEG Streamclip to make my MP4s I end up with files that are still quite large and I can't seem to ever get the file size manageable without losing tons of quality. I do not have Compressor, though if that will solve my problem I will put in for the expense of it. What I'm trying to understand is what sorts of settings I should be trying out to get my file sizes to be manageable without completely compromising my quality. And I know this can be done, because the company I work for pays for a great quantity of video work each year (from an outside production firm) and the clips provided are beautiful in quality and small in file size -- for example, I recently worked on a video and got it into the 40MB range before quality went to crap, working off the same material the production company we do work with had theirs down into the teens and looking beautiful!
To throw an even greater wrench in the works, I am working off a mac. But when my boss, on a pc, saves the mp4s I create (raw files -- not what is posted to the web) locally on his machine and views them from there the sound is always off a tad and the people in the videos look like they're lip synching.
Any advice on either of these is MUCH appreciated. I've been trying to figure this out properly for months, and only today decided to stop seeing if someone else had the same question and just post my own.
BronwynThank you Karsten, this was helpful I have utilized the Quality slider and the frame size options before though with limited results. I've never messed with the Limit Date Rate option as I don't know what I'm doing with it, I see you put 5Mbps. Is that a typical setting that I could use?
Using stream info, here's info on my original source file:
Stream: Charles_0023_2.mov
Duration: 0:00:51
Data Size: 96.51 MB
Bit Rate: 15.77 Mbps
Video Tracks:
H.264, 1920 × 1080, 29.97 fps, 15.64 Mbps
Audio Tracks:
MPEG-4 Audio stereo, 48 kHz, 127 kbps
Stream Files:
Charles_0023_2.mov (96.51 MB)
As a comparison, here's the info on a similar clip that the company we sometimes use created:
Stream: Charles_0019_4.mp4
Duration: 0:00:49
Data Size: 4.66 MB
Bit Rate: 0.80 Mbps
Video Tracks:
JVT/AVC Coding, 710 × 400, 29.97 fps, 635 kbps
Audio Tracks:
MPEG-4 Audio stereo, 48 kHz, 162 kbps
Stream Files:
Charles_0019_4.mp4 (4.66 MB)
I'm fine with bringing the frame size down some and modifying the limit data rate, but sometimes I feel like I'm forcing my video into something it's not and the quality suffers -- this is where my understanding of video work breaks down LOL. Any suggestions of how I can get my .mov into something like the the .mp4 above?
Also have you had any experience with mp4s not playing back properly on pcs?
Again, thank you!
Bronwyn -
Need help ASAP exporting 1280x720 video as 720x480 letterboxed w/ timecode
Hello. I'm using FCP 6.0.4. I have a video that is 1280 x 720, 24FPS, Sorenson Video 3 compression. I need to add an academy leader to this (the leader video file is 29.97FPS, Apple Motion JPEG A, 720 x 486), add a timecode filter using timecode reader (I know how to do this part), and get the finished video exported as a 720x480, 29.97FPS, DV/DVCPRO - NTSC video with the correct aspect ratio for the original video file. Every time I have tried this so far I get a 720x480 with the timecode but the picture looks stretched horizontally.
Please help with this ASAP as I am a student working on my final project and I've already lost several days trying to figure this out.
THANK YOU!Create a standard definition project (In easy setup choose DV or DVCPRO Anamorphic) > copy and paste the HD timeline on the newly created timeline and export.
If in QT player you see a stretched image, don't worry, that is normal when QT plays non-square pixels (anamorphic).
Hit command J (QT Show movie properties) > Click on presentation tab > Conform aperture > Clean or Production.
If this video is not for the web or generally for computers do not save the change as your movie will look absolutely fine when in DVDstudio you'll choose a 16:9 display mode.
G. -
Need help on exporting oracle users
Hi,
we currently on oracle ver. 7.3.3 with quite a number of oracle users created. We are in the midst of migrating over to Oracle ver. 8.1.7. We want to preserve the user details, so we don't have to recreate all of them again.
How do I export the users from ver. 7.3.3 over to ver. 8.1.7, preserving the user passwords, profiles, rights, etc?
Any help would be appreciated.
Thanks.Hi Mr. Hian,
Take a Full database export from 7.x by connecting as SYS user (with FULL=Y) and import in the same in 8.1.7. Only thing u need to do here is to create all the required tablespaces(tablespaces used in 7.1.x DB) in 8.1.7 DB before importing the Db.
Hope this helps,
regds,
Suresh.A -
Need help with exporting iphoto to dvd
Hi,
I am trying to export a bunch of albums from iphoto to a brand new dvd-r disc. I am trying to move the photos to free up more space on the computer. I get the message "there is not enough disk space to complete this operation" when I try to export just one album (total 826mb). I still have 870mb free on my HD. Thanks for your help.I still have 870mb free on my HD.
You have a major crisis right now and you need to solve it immeadiately.
OS X needs about 10 gigs of hard drive space for normal OS operations - things like virtual memory, temporary files and so on.
Without this space your Mac will slow down as the OS hunts for space on the disk, files will be fragmented, also slowing things down, apps will crash and the risk of data corruption - that is damage to your files, photos, music - increases exponentially.
Your first priority is to make more space on that HD.
Nothing else can be done until you do. Purchase an external HD and move your Photos and Music to it. Both iPhoto and iTunes can run perfectly well with the Library on an external disk.
Burning material to optical disk will not work Creating a disk needs a large amount fo disk space - at least twice the amount you think you need.
But really, you must make space on that HD. You are in grave danger of losing important data.
Regards
TD -
Need help for getBindingContext() after Creating Entry.
Hi Developers,
I am Creating a entry using Model.create() method in my 1st View.
oModel.create('/ProspectSet', oEntry, null, function(oData,oResponse){
oEvent.getSource().getParent().close();
sap.m.MessageBox.alert("Prospect No " + oData.Partner + " created successfully");
},function(oError){
oEvent.getSource().getParent().close();
sap.m.MessageBox.alert("Failed to create Prospect");});
Now after successfully creating the entry here I need to navigate to my 2nd view and display the Entity which was just created. I don't know how to get the binding context of the newly created Entry.
I am using this.nav.to("Detail", context); for Navigation.Hi Amit,
You can use the function drill down ,if you want to drilldown based on product then based on location ,then the logic should be like this
Drill Down on Product
DRILL_DOWN( '9AMATNR' )
Drill Down on Location
DRILL_DOWN( '9ALOCNO' )
Scheduling the job in background
1)Create activity using the transaction /n/sapapo/mc8t,there you define the macro which you going to execute in background and planning book and dataview which having the macro.
2)Create background job using /n/sapapo/mc8d,there you can define the activity which you created recently and select the aggregation on which you are going to execute the job.
3) Go to SM36 ,there you the program as /SAPAPO/TS_BATCH_RUN then give the background job name as variant.
Execute the job,it can be immidiate or periodic.
Please let me know if you need more information.
Regards,
Prabhu -
I need help with exporting 720p video for youtube.
Hi everyone, I have been using Adobe premeir for almost a year now and I love it, as its very professional and powerful. I used to edit Standard with no problem, then export the full unconverted file (wmv) and run it though Windows Movie Maker to compress it (haha yeah I know its crazy.) Now that I got a camera capable of shooting HDV I want to use it. Im just wondering the following:
1.What format should I export with in Adobe Media Encoder? (Original Raw footage files from Camera are MOV formatted)
2.What should I set the Bitrate to?
3.How do I export to flash without it being to large of a file (Under 200mb's for a 5 minute video) and have it not choppy or pixelated?
4.How do I speed up exporting, how many passes should I do?
5.What overall is the best setup for youtube?
I also noticed a small glitch, and its when I export normally (full size, no compression) and run it though a compressor it cuts out all of the titles, and just flashes them for a milisecond. Its really odd. It only happens when I export in a certain format in which I cannot quite remember. Anyways.. thanks in advance for helping me. Its very appreciated.
NineLivesProductionsperform a search using the term export for web and it should throw up some ideas.
here's one for starters:
http://discussions.apple.com/thread.jspa?messageID=2309121�
If you're using flip4mac to convert to wmv, the trial stops at 30 seconds - you need at least wmvstudio to export to wmv:
http://www.flip4mac.com/wmv.htm
Maybe you are looking for
-
after upgrading to ios 8.1.1 my ipad 4 camera doesnt work i just got blank screen, but i still can use it for facetime, i supposed after upgrading to ios 8.1.2 it will fix but it doesnt work. i cannot restore to ios 7. hopefully, any suggestion to co
-
Problem in invoice printout for second line item of the contract.
Hi, There are two line items in the contract. Both with different material and different plants. 1st line item with plant japan, and 2nd line item with plant singapore. But, when i try to take printout for 2nd line item after invoicing it, the addres
-
How do I get this rollover and click effect ?
Hi, I have found a template which I rather do like. I was wondering if someone knew the coding to make some of the effects used possible. The aforementioned template - http://www.templatemonster.com/flash-templates/33686.html The effects: 1. When you
-
Wrong search results - Oracle 10.1.0.5
I have a text index based on a file datastore which has around 25,000 documents (pdf, doc and xls). In some cases the search returns documents that do not have the search string. I have tried dropping and recreating the index, but the problem doesn't
-
Microphone problem with DV2000 notebook
Hi, The internal microphone on my DV2000 notebook has suddenly stopped working. I tried troubleshooting but it seems that the hardware has completely vanished. I tried installing a new driver but got a message that there was no audio input device i