|
|
Hi Friends
Anybody please tell me how to compile the InstallShield Project from a commandline.
I am using InstallShield12 for the Creation of the Project.
I used IsCmdBld.exe,But i got only the .msi file.No other files(Merge Modules,Other Dll's) are there.Can anybody plz....help me to solve this problem.
Thanks In Advance,
Jeeva
|
|
|
|
|
What's wrong with the .MSI file? Aren't you able to install your app using that?
Chandra
|
|
|
|
|
Hi Chandra
When I am trying to install that msi,i got an error saying that
'The installer has encountered an unexpected error installing this package.This may indicate a problem with this package.The error code is 2714'
I think it doen't include any merge modules.But i don't know how to specify it,Can u plz.. help me
Jeeva
|
|
|
|
|
hi everybody
in my project i have to save the contents of a datagrid to excel file and word file. ie. i have to save the file in .xls and .doc extension . what should i do . any help will be appreciated thanks i advance
sebastian
|
|
|
|
|
when ever you set your dataGrid's datasource from the ds that time pic the ds.Tables Schema and write in Excel file with making the same schema in excel file and write in excel's files schema or fields.
Try it
Note: this is Logically solution.
Pavan Pareta
|
|
|
|
|
how to convert html file in doc file with same format.
Hi all,
i have Developed a ASP.net programm. and i have to convert html file in (.doc/.rtf) file formate, with a same formate of HTML file. using ASP.net Coding User can edit a word file on the web as html formate and he will save this file should be same formatting in MS-Word or RTF file formate.
Pavan Pareta
|
|
|
|
|
Hello,
I have to insert a current date and current time into a database.
I am using vb 2005 and sql 2005.
Dim time As DateTime<br />
Dim day As DateTime<br />
<br />
time = Date.Now.ToShortTimeString()<br />
day = Date.Now.ToShortDateString()
I am using the above to get the time and the day. I would like to display the date as 1/11/2006 and the time as 10:08.
However, in the database it is showing as:
Date: 10/31/2006 12:00:00 AM
Time: 10/31/2006 9:34:11 PM
I have set the database field to nvarchar(50). I can't have the fields as dateTime, as I don't want to display a pop calandar in my ultragrid.
Is there a problem with the code?
Thanks in advance,
Steve
|
|
|
|
|
Use Like this:
Declaration
Dim time As DateTime
Dim day As DateTime
Private culture As System.Globalization.CultureInfo = New System.Globalization.CultureInfo("hi-IN")
--------------------
time = Date.Now.ToShortTimeString()
day = Date.Now.ToShortDateString()
Dim temp As String = Convert.ToDateTime(time, culture)
Dim var As String = Convert.ToDateTime(day, culture)
This will convert the date and time into Indian culture.
temp will have the value of 9:30:00 AM
and
var will have the value of 11/1/2006
Hope u will got it.
Janani
|
|
|
|
|
steve_rm wrote: I can't have the fields as dateTime, as I don't want to display a pop calandar in my ultragrid.
Don't let limitations like that mess up your database design. Store the datetime properly in the database, and convert it to strings when you are fetching data to be used with that component.
steve_rm wrote: Is there a problem with the code?
You have been "helped" by VB to convert the values back to DateTime. The extra conversions that are added, as you are storing the values in DateTime variables, are equivalent to:
time = Convert.ToDateTime(Date.Now.ToShortTimeString())
day = Convert.ToDateTime(Date.Now.ToShortDateString())
A DateTime structure always has a date and a time, and no information about formatting. If you convert a string containing only a date to a DateTime, it will get the time 0:00. If you convert a string containing only a time, it will get the current date.
---
b { font-weight: normal; }
|
|
|
|
|
Hi all,
I have a problem where based on one of the column's value in the datagrid the next column should allow the user to enter the value.We have some calculations to perform if the first coulmn's value is "True".But if its "False" i want user to enter some amount or just leave it as blank.
If cbocalculate ="Yes" then
result=.....
else
here i want the column to be changed into a textbox so that user can enter
values..Have been trying but no success YET,Please can anyone help?
Thanks,
Durga
Durga
|
|
|
|
|
1) set the property of the grid 'readonly'= false
2) set the property of each column 'readonly'= true
If cbocalculate ="Yes" then
result=.....
else
grd.column(5).readonly=false 'opens up the cell '
end if
hope this helps...
|
|
|
|
|
How can i create event for ToolstripCollection by form load.
example
Menustrip1.Toolstripcollection.Item.add("",image, event)
Thanks
................
|
|
|
|
|
This is a bit unclear to say the least. What is it that you need to do?
The perfect code is always in your head...it just a matter of how hard you bang your head against the wall to get it out!
|
|
|
|
|
It really difficult for me to tell. this is my example
I have menustrip on my form such as (File,Edit,...) When the form load I want it create sub-menuitem and create event by itself.
Thanks
................
|
|
|
|
|
How can I create a report of a table (no hierarchy) with a static design but a varying sql-select-cmd. In detail: the shown fields shall remain the same but the underlying sql-select-cmd shall change in its where-part (links between tables and choice of parameters) and its from-part (the tables needed for the where-part).
I mean I'd like to set the sql-select-cmd as a string. When I start with a new report I can define a select cmd (even complicated ones) instead of choosing tables and defining links between them. But I've not found a possibility to change this cmd afterwards. ... Neither in the documentations, nor in the hierarchy of classes and its members.
Thanks for your hint in advance
Michael
Versions: Crystal Report: 9.1.5 in Visual Basic .NET 2003 (7.1.3088)
|
|
|
|
|
I am saving results to a text file and want my information to line up in nice little columns
Name Status Extra Info
Test A Pass 10.0
Test B with longer name Fail 7.5
Test C, short Name Pass 17.5
But what I get using VBTAB is inconsistent:
Name Status Extra Info
Test A Pass 10.0
Test B with longer name Fail 7.5
Test C, short Name Pass 17.5
Not sure if I can use a format function of not, documentation does not supply much info on format for text strings, just dates and numbers
I understand the fonnts can not be a serif font, this is just for display to an operator
|
|
|
|
|
Hello No-e,
You have to write the data as fixed length column files. Determine your output fields and find out the best fit MAX length of the data for each column. Then use VB/VB.net LSet(), RSet() functions are Trim() functions to write your columns in fixed length.
Hope this will help you solve your problem.
Nathhani
|
|
|
|
|
A text file has no formatting capabilities, so you have to use spaces to line them up, and specify for anyone who will be using it to use a non-proporional font when displaying it.
You can use alignment in composite formatting to line up the columns. Example from MSDN:
string myFName = "Fred";
string myLName = "Opals";
int myInt = 100;
string FormatFName = String.Format("First Name = |{0,10}|", myFName);
string FormatLName = String.Format("Last Name = |{0,10}|", myLName);
string FormatPrice = String.Format("Price = |{0,10:C}|", myInt);
Console.WriteLine(FormatFName);
Console.WriteLine(FormatLName);
Console.WriteLine(FormatPrice);
FormatFName = String.Format("First Name = |{0,-10}|", myFName);
FormatLName = String.Format("Last Name = |{0,-10}|", myLName);
FormatPrice = String.Format("Price = |{0,-10:C}|", myInt);
Console.WriteLine(FormatFName);
Console.WriteLine(FormatLName);
Console.WriteLine(FormatPrice);
Example output:
First Name = | Fred|
Last Name = | Opals|
Price = | $100.00|
First Name = |Fred |
Last Name = |Opals |
Price = |$100.00 |
---
b { font-weight: normal; }
|
|
|
|
|
The example is for VB.NET though... will need to pad with spaces in VB6.
Chandra
|
|
|
|
|
Hi -
I have a bunch of dates stored in a database and I have a bunch of dateTimePickers on my form.
How do I set the DateTimePicker at runtime ?
I know how to fill the dataset and that whole business, I'm more concerned with formating the date
and putting it in the value property of the dateTimePicker ? That I haven't figured out.
p.s. I'm not databinding nor would I like to
Thanks
Shawn
|
|
|
|
|
All you have to do is set the DTP's Value property. It expects a DateTime value, so you might have to convert your date information to a DateTime[^] before you pass it to the DTP.
Dave Kreskowiak
Microsoft MVP - Visual Basic
|
|
|
|
|
I am programming in Visual studio 6 (visual basic). This seems to be a popular This seems to be a popular topic but I couldn’t find any references
I have a program that our employees run that contains customer info and item info. I would like to be able to access the information currently being displayed by that program from another program we need to write. Once we gather the information and do some calculation, I would like to write the result back onto the displayed form in a specific field. We do not have source for the executing program. Can you help?
thanks a ton
|
|
|
|
|
Can any one tell me how to format a number in Vb.net 2005 like "XXXXX-XXX" = 12345-678.
jds1207
|
|
|
|
|
Use the string.Format method. It has to be a string, you can't show an int like that without converting it to a string.
Christian Graus - Microsoft MVP - C++
Metal Musings - Rex and my new metal blog
|
|
|
|