199,114 Archived Topics
Remove Filter ![]() | |
Can somebody help me please? i try to generate an xls(excel) file using this code, all format work fine except the cell size(width). can anyone help me how to format the cell width? [code] </php . . . $workbook = new Spreadsheet_Excel_Writer(); $format_und =& $workbook->addFormat(); $format_und->setBottom(1);//thick $format_und->setAlign('center'); $format_und->setHAlign('equal_space'); $format_und->setBold(); $format_und->setVAlign('vcentre'); … | |
I'm trying to use a variable as a case condition, however it seems you cannot, as the error I get is "constant expected" I'm wondering if there is a way to work around this limitation? my variable is a string. | |
Hi, I'm a Linux user, and have general knowledge of windows. OK, have cygwin terminals working and have colorama and termcolor modules working. Colorrama allows use of termcolor on windows. So, when doing quick scripts that have some color in them programed on Linux I can quickly cxfreeze them on … | |
Hi alls, since 2 week i'm stuck to do this thing. Actually i need to display image from oracle database into the picturebox. My oracle database got table name "STAFF_PHOTO" and the column of photo is "PICTURE". The image already converted into ByteArray. I'm already make a connection and success … | |
1. The InputMismatchException. Write a program that prompts the user to read an integer and displays whether the number is even or odd. If you enter an invalid integer (for example, 2.5 is not a valid integer) your program should say so. Note, you will need the following import statement: … | |
Hi, I want to get the count(*) from all tables under a schema. How to can do this using a loop? I'm a noob at PL/SQL. I'm unable to find how to use the loop variable in the select statement. Here is what I've tried so far: [CODE]spool $DD/get_oid_dump.log; SET … | |
Hi, anyone know how i can find the last added entry in mysql db. i am aware of: mysql_insert_id(), this function returns the last id but I need to select the last row where $username = username. | |
[CODE] insert into mst_order_report(Capacity, Clearing_Alpha, Client_ID, Client_Order_ID, Cumulative_Executed_Size, Date_Of_Expiry, Entry_Time, Exec_Type, Executed_Qty, Executed_Value, Execution_ID, Hidden_Size, Inactive_Time, Order_ID, Order_Qty, Order_Status, Order_Type, Owner_ID, PAN_ID, Parent_Order_ID, Reason, Remarks, Side, Stop_Price, TIF, Total_Qty, Trade_Report_ID, Trader_ID, Transact_Time, Value, Visible_Size, Trading_Member_ID, Symbol) select * from order_report(Capacity, Clearing_Alpha, Client_ID, Client_Order_ID, Cumulative_Executed_Size, cast(Date_Of_Expiry as date), cast(Entry_Time as datetime), … | |
Dear people.. For an assignment for school I have to make a solver for a Rush Hour game.. if you aren't familiar with Rush Hour.. check this link: [url]http://www.puzzles.com/products/rushhour.htm[/url] For this solver I have to use the A* search algorithm, I looked on the internet a bit, and I think … | |
I want generate auto number format like year/month/4digit number eg:11/04/0001 2. I want read the database find last number and let number auto + 1 to generate new number | |
Hi This might sound like a really stupid question but what gain do I get for using pointers? I use pass by reference and have used pointers a lot but have never really thought of the actual saving achieved by doing this. I have just been taught that using pointers … | |
I got a datagridview, when user select a few roll records and insert to another table. So it can insert multiple record at a time. So I'm provide 2 field with auto generated number to be primary of table. 1 is LoadingNo and another is RecNo. Therefore, when a batch … | |
Hi all. It's been a while Um, I have a teeny tiny prob here. My group and I have developed a 3 tier application in c# and asp.net (web application) that links up to a sql server database. The project as a whole works fine, does everything it's supposed to … | |
[CODE]/* this code attempts to generate a sudoku board in an non graphical envoirnment the code compiles fine but however it throws segmentation fault everytime it's run*/ # include<stdio.h> # include<stdlib.h> # include<time.h> static int baseArray[9][9]; static void initialise(); void display(); static int checkPosition(int row, int col, int value); int … | |
Hi, I want to convert an XML containing images into Excel sheet. But it is displaying only image path, not image. How to display the image in Excel... ?? Can i use base64 encoding and decoding for this ? Please help... | |
I have a class that contains two arraylists- student names and Ids I want to put them into LinkedHashSet( so, I can sort, delete, add and edit e student profile); I created a class called Student that contains setName getName setId getId and toString methods. now, I try to do … | |
if user type wrong id and password so one message display and how can i remove alert message on refresh on log in page | |
i cant tell really what the problem is but i get the following error oe ex. [CODE]Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click Try Dim Connection As New Data.SqlClient.SqlConnection("C:\Documents and Settings\Administrator\My Documents\Visual Studio 2008\Projects\LugWdLib\LugWdLib\lugthes_source.sdf") Dim Command As New SqlClient.SqlCommand ' declare a command to select … | |
Can you please help me in my problem regarding in using Listview in vb.net. I can manipulate some flow like searching and selecting data coming in database (SQL) but my problem is that i need a message thtat will pop up that there is no particular data in the database … | |
Hey, Basically I have a text box to search data from my SQL DB from, and I want the information to then display in a listview underneath. I have been trying for a while now and still can't get it to work, but on the button click it should display … | |
Guys, I am a newbie to using SQL inside the Query Builder of VB Express 2010. Very sorry if this is a stupid question... . I have 2 tables: "Student Details" ( Primary key: "SID" ) and "Level 2 Red Belt" (Primary key:"SID" ) I want after entering a record … | |
Hi, How can i clear picturebox at runtime in vb.net2005? Please help me.... | |
I have connected my vb .net forms to the MYSQL database but when i comes to publishing, i do not get the database on the published application. what shd i do? | |
Hello, Code below has requirements commented in. I don't get any errors, but when I go to run it, I immediately get a stack overflow and program closes. I don't even know where to begin to look. I am too new at this. Without a road map to errors, I … | |
I want to extend my list-view displayed information to the next line in a column but i have tried the property it has refused what is the alternative? | |
Hello all, i want to make icon (shortcut to run my program) on System Tray (usually on Right bottom) with code, i'm using visual studio 2008 c#, on classlibrary project, thanks before :D | |
I am now completely lost. I thought i had the correct algorithm to solve this problem, but i can't seem to get it. Anyone have any ideas. I need to balance the parentheses and print each level. Ex: (this + (is) + an + example) It will go through it … | |
[CODE]20110319-04:30:00.772[/CODE] is the row of Entry_time column from order_report Above is in varchar Need to convert in datetime I am trying the below query but not working select Convert(datetime,Entry_Time,121) from order_report | |
Dear all I am brand new to C# and have previously only written programs in Javascript, so go easy on me ! I have written an "app launcher" program which reads a text file line by line. Each line is just a path to a program e.g. C:\Users\Matt\Desktop\Gravity.exe So far, … | |
can u help me about this | |
Hi, Can someone help me with writing the script to be able to pull the information from the database without refreshing everytime something new has been added? My codes at the moment read: [CODE]$recentupdates = mysql_query("SELECT * FROM status NATURAL JOIN users WHERE user_id = users.id ORDER BY status_id DESC … | |
Hey so I'm having some problems with vb.net 2008. I need to create a search form where a combobox populates with names then the user clicks a name and the textboxes in the form are filled with the correct data for example txt_Firstname txt_last txt__nameage would all be filled with … | |
Hi, I have a dilema, I have an MDI app and I open new forms as [CODE] In modBas.bas: Public frmD(50) As frmDocument MDI Form Load (frmMain): Static lDocumentCount As Long lDocumentCount = lDocumentCount + 1 Set frmD(1) = New frmDocument frmD(1).Width = 320 * Screen.TwipsPerPixelX frmD(1).Caption = "Page - … | |
[CODE]#ifdef _WIN32 #include <windows.h> #endif #include <iostream> #include <vector> #include <string> #include <SDL/SDL.h> #include <GL/gl.h> #include <GL/glu.h> using std::vector; void error(const std::string& s) { #ifdef _WIN32 MessageBox(NULL, s.c_str(), "An error occurred", MB_ICONINFORMATION | MB_OK); #else std::cerr << s << std::endl; #endif } [/CODE] That's my problem... [CODE]1>------ Build started: Project: … | |
Okay, I created an application that used SQL. It works perfect on the computer that I compiled it on, but, when I release the application it shows an error like: "Cannot open this application, missing components" ... Also, on the computer I compiled it on, it shows the database file … | |
Hello, I want to sort array by using" the quicksort algorithm" so here is the code: [CODE] #include <stdio.h> #include <string.h> #include <stdlib.h> #include <unistd.h> #include <pthread.h> void *triHoare (void * arg); int PivotSelection (int indexStart, int indexEnd); int Split (int tab[], int pivot, int indexStart, int indexEnd); int MAXTAB; … | |
Hi guys I run a site like twitpic.com for twitter , and what I want is when someone post picture on my site then it get shown up on twitter time line just like pics from twitpic, plixi and yfrog are shown, Any one have idea of how to do … | |
I'm am reasonably new at coding and am currently studying it at College. While in my break I found Project Euler a neat little site with problems which I have been working through for an extra challenge. This is the question that I am stuck on: [url]http://projecteuler.net/index.php?section=problems&id=8[/url] basically you are … | |
Hi, Im undergoing a project at the moment and have stumbled onto an error which a could solve nor understand even with google help... So, the C program Im making is suppose to sort an array of surnames into alphabetical order, also the user can use the menu to pick … | |
Hi I am hoping someone can give me some advice. I have a user_registration table with the field 'ID' as the user ID field. I have another file (property_details) which is for users to insert their own records. What I need to do is to automatically assign their ID from … | |
Ok, I've been trying to run this program on Borland C++ (Version 5.0A). The program is a Point of Sale program. I keep getting the errors "expression syntax at (121,26)" and "If statement missing ) at (129,6). Try as I might, I can't seem to fix the errors. Help? [CODE] … | |
Hi, its me again.:scared: im using the following code to destroy my session but instead of removing the session, it just empties the data, for e.g: when i start the session a file is created, after storing my data in the session the file could be 2 or 3 kb … | |
hey guys, i have to develop a program which will search for files using their names and extension as an option. any idea of how to start or what do i need to know. thanks in advance. | |
This is something that worked a few months ago and now I don't know what I messed up when I made the mistake of trying to migrate it to a new host. It's nothing but a registration and login module and I'm trying to have a tight focus on security … | |
hi....i have some problem here...i'm making a form for ordering...what i want is when user click on form ordering button, there will be a form with reference number echo from database..in database i set the reference number as primary key and auto increment..somebody can help me to solve this problem?? ![]() | |
Hi guys: I created this program that will read into two files and compare a number from one file into the other and if they match, it will print out some information. I ave two if statements and it seems that the second one can't be read. I tried putting … | |
hi guys I have the following code that works fine in all browsers but all IE versions. When I select an option from the first drop down the second one is to be dynamically populated by details based on the first selection. Unfortunately in IE the second dropdown shrinks and … | |
I ma brand new to templates and I have been given an exercise to reverse the elements using vectors which I did perfectly. But I need to include the template thing which I tried my level best to understand and do but still I am getting many errors. Any help … | |
Hey guys, Couldn't find the answer to this question in any old threads, probably because I don't know the terminology involved well enough. I have a program which takes in data and writes it into a numpy array at the beginning of a pipeline. I use a class called Masterarray … | |
Hello guys, I wrote this program to encrypt a string. It uses the WriteConsoleA function to print output, and the ReadConsoleA function for the input. I have called all the functions using stack. Here is the code: [CODE].386 .model flat, stdcall option casemap:none include \masm32\include\windows.inc include \masm32\include\kernel32.inc include \masm32\include\masm32.inc includelib … |
The End.