rapture 134 Posting Whiz in Training

Why don't you just use one of the programs that do this already like basckstreet browser?

If it's some sort of project for school, your workplace etc. then what you need to remember is we are not trying to get a grade or getting paid, you are and as such you need to do the work. As always if you get stuck, post your code and problem and we will attempt to help.

rapture 134 Posting Whiz in Training

I've created a VB.Net project and on short term added a C# class to it and it worked fine - I've also done the opposite as well so you should be able to add them. Not on the same form mind you but you could have separate forms in those two different languages yes.

I don't see why that would be different across two projects in one solution but I'm not certain there. If not maybe you could just add existing and add that form to the other project?

rapture 134 Posting Whiz in Training

I don't understand your question. What do you want to save and update, your code?

What do you have and where are you stuck?

rapture 134 Posting Whiz in Training

I'm not sure myself, but maybe this helps

http://www.thescarms.com/dotnet/ExcelObject.aspx

rapture 134 Posting Whiz in Training

Thanks LizR - this will work perfectly for what I need to do.

rapture 134 Posting Whiz in Training
rapture 134 Posting Whiz in Training

I'm not totally sure where you're stuck. Have you tried to google this? I did and the first result has an example of a static read . . .

are you unsure of the concepts? are you trying but getting an error? I'm sorry, I'm just not sure what it is you are asking

you can look here - first result returned might be helpful:

http://lmgtfy.com/?q=java+Reading+and+writing+text+files

rapture 134 Posting Whiz in Training

Thanks for the advice, I've decided it looks like I'm going to have to write an application for it as well. I was thinking datagrid for intial view and then convert the items I need to a csv and use mail merge to incorporate it into the letter. Still not sure how to do all of it but had hoped there was something in reporting services. (Crystal reports has some ability to do this but I don't have a copy)

rapture 134 Posting Whiz in Training

its weird, I wasn't the OP here but he disappeared

rapture 134 Posting Whiz in Training

Thanks for the reply!

We have about 15 different basic letters we have to send out when a claim is denied. What I need to do is pull up from the datbase all denied claims and have the info to review and make sure a letter is needed. (customer might pull vehicle and it's not really a denial etc)

after reviewing information, then a letter is chosen and then I need to insert info from a customer table, claims table, carrier table and contract table into this letter at predetermined spots.

Right now we print off a list, then they go into the system in different places to look this information up and copy and paste it from our inhouse system into a word document.

I didn't know if there was a way to use reporting services or anything else to help automate at least some of that process...

rapture 134 Posting Whiz in Training
rapture 134 Posting Whiz in Training

Yes, that's fine. You might add the word positive to it but hey that's just preference.

If it's solved, would you please mark the thread as solved?

rapture 134 Posting Whiz in Training

Nobody is going to interact with you by way of email - first of all it doesn't help anyone else who has a similar problem and searches the site, and secondly we're not going to get 'tied' to helping you in that way or bothered with 100,000,000 questions in our inbox as to why it doesn't work.

But here try this: http://lmgtfy.com/?q=A+Beginner%27s+Guide+to+VB.NET+and+Database+Programming+

rapture 134 Posting Whiz in Training

I thought it was more than a mail merge, fields I need to merge are in our database based on a contract table, a customer table, and a claims table. I didn't think all that was possible with mail merge . . .

I can check further into it, I saw some of that.

<name and address> from customer
<contract info> from contract table

base of form letter with <claim info> inserted into it

rapture 134 Posting Whiz in Training

Hello all,

I have been tasked with figuring out a way to automate a form letter process that currently is done mostly by hand with a lot of copy/paste. We have letters that need to get sent out based on our internal system. Someone now looks up the items in the system, inputs the information into a form letter and mails it. That's the simple version.

I need to create a program whereby they can pull the information from the database and then choose the specific form letter (or combination of multiples) that they want to send and have it populate the letter with other information from the database.

Question is:
Is there a way to integrate this process into Reporting Services or do you have any other suggestions that I might research in building this project?

rapture 134 Posting Whiz in Training

Hey all,

I have been tasked with figuring out a way to automate a form letter process that currently is done mostly by hand with a lot of copy/paste. We have letters that need to get sent out based on our internal system. Someone now looks up the items in the system, inputs the information into a form letter and mails it. That's the simple version.

I need to create a program whereby they can pull the information from the database and then choose the specific form letter (or combination of multiples) that they want to send and have it populate the letter with other information from the database.

While this shouldn't be too difficult for you pro's - I'm still a Jr in programming.

Question is:
Anyone have any guidance/direction about where to begin?
I saw something about Form Letter Report Expert that uses Crystal Reports but I don't have that program...

rapture 134 Posting Whiz in Training

I still think you should use tryparse to keep from crashing on letters, you would have to add a variable to hold the parsed double

While Double.TryParse(carpetArea, dblNumber) And carpetArea > 0.0

this should work, if the number is not able to be converted to double it will throw warning and if it's negative or zero it will not hit your while.

Surroud it with a try catch block

rapture 134 Posting Whiz in Training

I think since you "can't" use textbox and have to use input box then your best bet is to switch it to a string and then try to parse the input. If you can then it's numeric and you can go with it but if it can't be parsed then it's not numeric.

rapture 134 Posting Whiz in Training

Well bummer, I was hoping I could edit my previous post and take out my suggestions.

NOBODY will do your work for you. First of all the forum rules prohibit it, secondly it doesn't help you learn didly squat. I'm offended that you even asked much less accused me of trying to run up a number that means nothing to me, to provide some gain that isn't there. But how about this, not only will I not help you further no matter how much effort you put in at this point I'll make my own statement.

You sir are lazy and won't do your own research or work!

ddanbe commented: carry on with the good cause +4
Antenka commented: Well said ;P +2
rapture 134 Posting Whiz in Training

Is this complete?

if not - on #2 see Class Derivation about halfway down on

http://functionx.com/csharp/Lesson14.htm

partial start of code

using System;

public class Circle
{
    private double _radius;

    public double Radius
    {
	get
	{
	    return _radius;
	}

For #3 - do you have to store them in an array or can you print them out as they are entered? If you can do one at a time then maybe putting your readline inside your loop helps you get further.

For #4 I don't understand what is supposed to be equal to your sentence

rapture 134 Posting Whiz in Training

I don't see it just reading it quickly, however I do have a suggestion. Set a breakpoint near the top and step through slowing looking at the value of each variable as it moves through. See if you grab the correct time at first and it changes later or if you grab the wrong time from the beginning.

rapture 134 Posting Whiz in Training

I would start with reading your textbook and then break your project down to the smallest piece you can figure out on your own and if you get stuck post back as to what your problem is.

rapture 134 Posting Whiz in Training

sometimes those problems that cause you to struggle for a long time are very rewarding when you finish them yourself. good job

rapture 134 Posting Whiz in Training

Nevermind I got it - I must have made a typo or something before because it works now - just in case anyone looks here it is

public static void extend(ArrayList priceList, ArrayList quantityList, ArrayList amountList){
	
		for(int i = 0; i < priceList.size(); i++){
			amountList.add((Double)priceList.get(i) * (Double)quantityList.get(i));
			DecimalFormat formatter = new DecimalFormat("0.00");
			System.out.println((i+1) + ")" + priceList.get(i) + " * " + quantityList.get(i) + " = " + formatter.format(amountList.get(i)) );
		}		
	}
rapture 134 Posting Whiz in Training

I have the following code which outputs incorrectly.

public static void extend(ArrayList priceList, ArrayList quantityList, ArrayList amountList){
	
		for(int i = 0; i < priceList.size(); i++){
			amountList.add((Double)priceList.get(i) * (Double)quantityList.get(i));
			
			System.out.println(priceList.get(i) + " * " + quantityList.get(i) + " = " + amountList.get(i) );
		}

The output for some of the items is like "18.32 * 5.4 = 98.92800000000001"

I need to round that to two decimal places but everything I try blows everything up.

Advice?

rapture 134 Posting Whiz in Training
rapture 134 Posting Whiz in Training

You could also use a dictionary to check spelling

Comatose commented: Hahahah :) +10
rapture 134 Posting Whiz in Training

First of all - if you surround your code with "

" then people will respond quicker.

Secondly,
in an if statement you follow this line of resaoning

if condition is met then perform the routine then go directly to "end if" do not pass go and do not collect $200. If the condition isn't met and there is an else, then everything that doesn't meet your condition gets the else. Let's say you can only choose chocolate or vanilla ice cream. It would be

if iceCream = chocolate
     give user chocolate (then you head to the end if)
else
     give user vanilla (then head to the end if)
end if
rapture 134 Posting Whiz in Training

Personally I like the required field validators for this sort of stuff, but if you wanted an if statement you can also combine them into one

If(textbox1 == "" || textbox2 == "" || textbox3 == "")
     label = "Hey dude you left a textbox blank on us"

or however you want to handle it. You could use multiple if statements as well to set your message specifically as

rapture 134 Posting Whiz in Training

Sure someone can help you finish your code. But we won't do it for you. Adding to Ezzaral's suggestion, start with a small piece and get that where you need it to be. Breaking it down to the smallest possible bit you need to get something accomplished. If that's just getting one line of code to start then one line it is. When you get stuck, bounce that off of people. Then you really get help AND you learn in the process.

rapture 134 Posting Whiz in Training

by the way - that comment about ddanbe was a joke, I don't know him but hope he has a good sense of humor.

rapture 134 Posting Whiz in Training

I tried to help you once. Again I typed in "Java play audio file" and the first result from google was here
http://www.google.com/search?hl=en&q=java+play+audio+file
in google the description says this
"Here's a step-by-step guide to playing audio files in a Java application"


And Ezzaral is right, please refrain from using IM type speak. This isn't a chat room. :)

rapture 134 Posting Whiz in Training

don't be fooled by that picture - ddanbe is an 11 yr old child prodigy

rapture 134 Posting Whiz in Training

please use code tags to make readibility easier

rapture 134 Posting Whiz in Training

hmm wierd, what didn't you find? I typed in

java play audio file

and found a ton of stuff in google . . .

Ezzaral commented: That's because you actually have enough initiative to try to learn on your own and think for yourself :) +18
rapture 134 Posting Whiz in Training

which number = 0 did you take out? you need to take out? You have two of them, and one of them doesn't even end the line with a semi-colon

ddanbe - who knows what IDE he is using if any - but doesn't eclipse do that for him automatically when he hits run or runas

rapture 134 Posting Whiz in Training

I thought javaAddict posted what you needed to do above . .

you don't know how to display it in tabular format or what?

rapture 134 Posting Whiz in Training

I was wondering about that this morning, I hit the button to call it but I thought I was going to have to put a listener or something back in the loop for the button, but you're right, I won't need the while at all...

Thanks!

rapture 134 Posting Whiz in Training

I'm having trouble getting this while loop to stop and look for a new input. Obviously the while loop is infinite because I don't get new input. I know this is easy but I'm still stuck

here is my while loop

while (guessInt != randInt){
    setPrevGuess(guessInt);
    guessInt = Integer.parseInt(GuessGame.numberField.getText());
	if (guessInt != randInt){
		if (guessInt > prevGuess ){
			guessGame.setBlueBackground();	
			setMessage(new JTextField("You're getting colder"));
		}
		if (guessInt < prevGuess ){
			guessGame.setRedBackground();	
			setMessage(new JTextField("You're getting warmer"));
		}
	}	
			
}

and I need to grap new information from a JButton in a different class

JButton guessButton = new JButton("Guess");
GuessHandler guessHandler = new GuessHandler();
guessHandler.setGuessGame(this);
guessButton.addActionListener(guessHandler);
guessFrameContainer.add(guessButton);

Can anyone please help this idiot?

rapture 134 Posting Whiz in Training

nandomendoza

start with writing pseudocode of what you want your program to do. It's just plain english

start program
--program does this
--if program input is this then do this

etc

after you get that done then go to the smallest thing you know how to do. Maybe it's declare a variable, whatever that is do the smallest chunk first. At this point you're putting some thought into your work that is constructive. When you get to a point where you can't do something post again

rapture 134 Posting Whiz in Training

lol - I guess I just couldn't believe that someone would ask us to do their work. My thought was more like "can you do something this way?" but not "you" just more like can "it" . . .

Well, I'm working on something similar, I guess nobody wants to do my work for me either. crap, there goes my backup plan. :)

rapture 134 Posting Whiz in Training

I didn't think he was asking to have us code the project, he was asking if it could be done. Maybe I read it incorrectly,

I think what you're looking for is here (funny, I'm doing a similar project for school as well)

http://java.sun.com/docs/books/tutorial/uiswing/components/tabbedpane.html

rapture 134 Posting Whiz in Training

Do you have this solved and turned in yet. Are you still stuck?

rapture 134 Posting Whiz in Training

I'm interested to see what goes on with this one, why wouldn't you need his line in bold to be this?

if(p.getCoinName(coinName).equalsIgnoreCase(coinName))

I'm very new to Java so please be kind if I'm completely lost, just trying to follow what's going on even though I don't know the error, I'm trying to follow the logic of the program.
Thanks

rapture 134 Posting Whiz in Training

doh!

Thanks

rapture 134 Posting Whiz in Training

I get the error test cannot be resolved to a type here

test[] arrayOftest = new test[ 3 ];

- ideas or help?

public class Test {
   public static void main( String args[] )
   {
      Point point = new Point( 3, 3 );          
      Square square = new Square( 7, 7, 7 );  
      Cube cube = new Cube( 2.2, 3 , 3  ); 

      test[] arrayOftest = new test[ 3 ];
      String result = "";

      arrayOftest[ 0 ] = point;
      arrayOftest[ 1 ] = square;
      arrayOftest[ 2 ] = cube;  
   
      result += point.getName() + ": " +
                    point.toString();
   
      result += "\n" + square.getName() + ": " + 
                    square.toString();
   
      result += "\n" + cube.getName() + ": " +
                    cube.toString();
      
      for ( int i = 0; i < 3; i++ ) {
         result += "\n" + arrayOftest[ i ].getName() +
            ": " + arrayOftest[ i ].toString();
          result += "\n" + "Area = " + 
          arrayOftest[ i ].area();
         result += "\n" + "Volume = " +
         arrayOftest[ i ].volume();
      }

      JOptionPane.showMessageDialog( 
            null, result, "Shapes",
            JOptionPane.INFORMATION_MESSAGE );   
      System.exit( 0 );  
   }
}
rapture 134 Posting Whiz in Training

Thanks,
I got it - here it is

//calculateButtonHandler.chandler = new calculateButtonHandler();

calculateButton.addActionListener(new calculateButtonHandler());

rapture 134 Posting Whiz in Training

rofl -

I need to figure out how you did that.

(geeze Comatose, I just noticed you were in MI - I hope your not a Wolverine!) :)

rapture 134 Posting Whiz in Training

I need to look back at what I did with asp.net and try to figure out the differences in datagrid from forms to asp

rapture 134 Posting Whiz in Training

4Advanced,

I struggle with this problem when working with international boards. I think what struck him was your use of exclamation points. It seemed in the thread like you were upset and/or dealing with someone stupid. What I have found mostly is that it's excitement, but not always negative especially from other countries than my own. It's hard to convey in a post if your feeling is such.

Thank you for your help, soon or late. It'll help the next person searching.