2
Answers

Cannot open reports from my application in Windows Vista

Larry M

Larry M

16y
7.7k
1
Hi
I have developed an application using VS.NET 2003 and used the in built crystal reports. I used the registered licence key obtained after registering crystal to setup my project using the required merge modules. The application works perfectly in Windows2000, XP and 2003 server with the reports opening  with no error. But when i install my application in Windows Vista the application works fine except for the reports. I get the following error: "Cannot find Keycodev2.dll or invalid keycode". Are there any compartibility issues with vista, how do i go about solving this problem
Please help!!!!

Thanks
lore
Answers (2)
0
Vulpes
NA 98.3k 1.5m 12y
Try this:

import java.io.*;
import java.util.*;

public class Catalin
{
   public static void main(String[] args)
   {
       ArrayList<Integer> sumsList = new ArrayList<Integer>();

       try
       {
          BufferedReader br = new BufferedReader(new FileReader("catalin.txt"));
          String line;

          while ((line = br.readLine()) != null) 
          {
             String[] items = line.split(";");
             int number = Integer.parseInt(items[1]);
             int number2 = Integer.parseInt(items[2]);
             sumsList.add(number + number2);
          }

          br.close();
       }
       catch(IOException e)
       {
          System.out.println("I/O Error : " + e);
       }
       
       // convert ArrayList<Integer> to int[]
       int[] sumsArray = new int[sumsList.size()];
       for(int i = 0; i < sumsArray.length; i++) sumsArray[i] = sumsList.get(i);

       System.out.println("Line Sum");
       System.out.println("---- ---");

       for(int i = 0; i < sumsArray.length; i++)
       { 
          System.out.println((i + 1) + "     " + sumsArray[i]);
       }
   }
}