|
Check Active Solution Configuration from 'Configuration Manager' which is under Build Menu of IDE. Set it to Debug mode. if Configuration Manager is not displayed under Build menu, then Perform the following action
Go to Tools-->Options-->Projects and Solutions--->General
now from the Right hand panel Check the option 'Show Advanced build Configurations'
hope this helps
Rupesh Kumar Swami
Software Engineer,
Integrated Solution,
Bikaner (India)
My Company
|
|
|
|
|
|
Explore your problem bit more.
whether you use CrystalReportViewer or DataReportViewer or any other?
I think the Paper size, you define at design time is Bigger than the Paper you can insert into printer.
other possibilities is that Field size is smaller than the contents so it can not display the all the contents.
Rupesh Kumar Swami
Software Engineer,
Integrated Solution,
Bikaner (India)
My Company
|
|
|
|
|
I have some Hard Coded data which is printed .Also at the end of the page whatever i am displaying is being printed.But the Details in the middle of the page is not Printed. And No i am not using CrystalReportViewer.
|
|
|
|
|
Can you post the code snippet of your printing procedure so i can analysis where may be problem arise ?
Rupesh Kumar Swami
Software Engineer,
Integrated Solution,
Bikaner (India)
My Company
|
|
|
|
|
I'll tell You How I am Printing
In the Top of the Page,I'll Print the Date ,Time ,Name etc using e.graphics.drawstring
In the Middle of the Page I am Running a Loop to Display Some Details.
Then At the end of the Page,I am Printing Some other Details.
i am Using only draw string and also draw line to draw some Boundary.
Now In the Print Preview i am able to see all the details.In the Printout, The Details which i am Printing from the Loop is not visible.
|
|
|
|
|
Thanks.I Got the Solution
|
|
|
|
|
Did you forget to reinitialise your data pointer type variables in the BeginPrint event so when you did print previerew followed by print the data was off the end?
The beginners guide to printing in .NET[^] may be of use/interest to you.
|
|
|
|
|
Hi
i have managed to populate dropdownlist from database so i want to select a value from dropdownlist and insert it into database.The problem is when ever i select a value it always select the first value regardless of what i choose.everything is working except dropdownlist
here is my code
cmdEmployee.Parameters.Add("@Emp_No", SqlDbType.Int).Value = TextBox1.Text
cmdEmployee.Parameters.Add("@Location_ID", SqlDbType.Int).Value = DropDownList1.SelectedItem.Value
cmdEmployee.Parameters.Add("@Tel", SqlDbType.VarChar).Value = txtTel.Text.ToString()
cmdEmployee.Parameters.Add("@Fax", SqlDbType.VarChar).Value = txtFax.Text.ToString()
cmdEmployee.Parameters.Add("@Cell", SqlDbType.VarChar).Value = txtCell.Text.ToString()
cmdEmployee.Parameters.Add("@Alternative", SqlDbType.VarChar).Value = txtAlternative.ToString()
cmdEmployee.Parameters.Add("@Block", SqlDbType.VarChar).Value = txtBlock.Text.ToString()
cmdEmployee.Parameters.Add("@Floor1", SqlDbType.VarChar).Value = txtFloor.Text.ToString()
cmdEmployee.Parameters.Add("@Room_Number", SqlDbType.VarChar).Value = txtRoom.Text.ToString()
cmdEmployee.ExecuteNonQuery()
Mamphekgo
|
|
|
|
|
It sounds like you are rebinding the dropdown list on postback. That would remove everything in it that came from the postback, including the selection, and the first item gets selected by default.
Use the IsPostback property to determine if the page is loading for the first time or not, and only bind the dropdownlist on the first load.
Despite everything, the person most likely to be fooling you next is yourself.
|
|
|
|
|
I am trying to generate simple Crystal Report. To do so I have configured datas set and i have set this data set as reports's data source.
If I check the table name of data set then It gives that right. But on the next line where I have set this dataset as report's data source it gives Error "Report has No tables"
Code is as follow:
Dim i As New CrystalReport1
Dim ds As New System.Data.DataSet
Dim ObAdp As New SetDatasetClass' here dataset get configured
ds = ObAdp.getDataset("Select * from Employee" )
MsgBox(ds.Tables(0).TableName)' Shows table name as Employee
i.SetDataSource(ds.Tables(0))
Is the method is right?
|
|
|
|
|
I think you are not set any table to CrystalReport1 at design time. If Yes then,Let me explain how can you set the table for report
1 Open Report CrystalReport1 in IDE.
2.From the Field Explorer window,Right click on Database Fields and Select Database Expert option (Or you can also Select the 'Database Expert' option from Menu CrystalReports-->Database)
3.A new window is open(Database Expert) from which you can select the Table(Employee) for you Report and click on OK button.
4. Now in Field Explorer window, A + sign is appear in Front of 'Database Fields' Option. Expand this sign
5. After expanding, Employee table is appear which you select in Database Expert window.
6. Place fields of Employee table in Appropriate section of Crystal Report
7.Now run you application
Hope this helps
Rupesh Kumar Swami
Software Engineer,
Integrated Solution,
Bikaner (India)
My Company
|
|
|
|
|
I want to stop and restart service when service is started.
|
|
|
|
|
|
Hai all ,
i need to create(result will be xml) by using querystring
xyz.aspx?customer_id=&first_name=&last_name=&email=sun@sun.com&phone=
it will display xml like
<?xml version="1.0" encoding="utf-8"?>
<livelookup version="1.0" columns="first_name,last_name">
<customer>
<customer_id>sunnyb</customer_id>
<first_name></first_name>
<last_name></last_name>
<email>sun@sun.com</email>
<phone</phone>
<organization></organization>
<password></password>
</customer>
</livelookup>
Thanks in advance
Thanks
Subbu.
Thanks
Subbu.
|
|
|
|
|
What is the problem when you create XML file ?
simply Split the Querystring(on the basis of '&' ) and fetch the field and add it to xml file with or without value.
if you don't know how can create XML file with vb.net then try Googling[^]
hope this helps
Rupesh Kumar Swami
Software Engineer,
Integrated Solution,
Bikaner (India)
My Company
|
|
|
|
|
Hi,I want to ask how can I get data from an excel database and how should I write the settings?Can anybody give me a related link?I am very appreciate for your kind helping.
Thank you.
|
|
|
|
|
try Googling.
you can get lot of way to read excel file data
Rupesh Kumar Swami
Software Engineer,
Integrated Solution,
Bikaner (India)
My Company
|
|
|
|
|
I have searched in Google, but I couldn't get the answer I want. Anyway, thank you all the same.
Have a nice day.
|
|
|
|
|
Hii
This code project link provide you sample project and code to use excel as data base. May be this links helps you to solve your problem.
<a href="http://www.codeproject.com/KB/vb/Excel_Connectivity.aspx">http:
Thanx
~Khatri Mitesh
modified on Monday, July 7, 2008 2:55 AM
|
|
|
|
|
Ok, thank you for your kind helping.
Have a nice day.
|
|
|
|
|
Hello Friends
I want to have a picture on the MdiContainer form but I could not .
please guide me about this problem if there is a solvation .
tanks in advance .
|
|
|
|
|
Form.BackgroundImage
"I love deadlines. I like the whooshing sound they make as they fly by." (DNA)
|
|
|
|
|
Dear Friends,
I Need to get my all network systems IP address in my application
how can i do that.
Thanking You
K. Rajesh Kumar
i am a fresher in software development i have so many doubts in .net so i need to ca
|
|
|
|
|
Hiii
i m sending u code which is used to find Work group/Domain in ur LAN. and check that which is pc is Active in that LAN and will also show the IP Address...
'---------------------------------------------------
'Method for Finding Domain/WorkGruop
Public Function GetDomain() As String
Dim WGroup As String = ""
Dim query As New SelectQuery("Win32_ComputerSystem")
Dim searcher As New ManagementObjectSearcher(query)
For Each mo As ManagementObject In searcher.Get()
WGroup = mo("Domain")
'MsgBox(WGroup)
Next
Return WGroup
End Function
'---------------------------------------------------
'---------------------------------------------------
'Method for Finding IP Address of and node no which are Active in LAN
Public Sub ListComputers(ByVal TView As TreeView, ByVal WorkGroup As String)
Try
TView.Nodes.Clear()
Dim AllComp As New TreeNode
AllComp.Text = Form1.groupname
AllComp.ImageIndex = 1
AllComp.SelectedImageIndex = 1
TView.Nodes.Add(AllComp)
If WorkGroup.Trim() = "" Then
MessageBox.Show("Please provide a Domain Name.", "Error", MessageBoxButtons.OK, MessageBoxIcon.Error)
Exit Sub
End If
Dim DomainEntry As New DirectoryEntry("WinNT://" & WorkGroup.Trim())
DomainEntry.Children.SchemaFilter.Add("computer")
For Each Machine As DirectoryEntry In DomainEntry.Children
Dim CompNode As New TreeNode(), CompInfo(1) As String
CompInfo(0) = Machine.Name
Dim Tempaddr As System.Net.IPHostEntry = Nothing
Try
Tempaddr = DirectCast(Dns.GetHostByName(Machine.Name), System.Net.IPHostEntry)
Dim TempAd As System.Net.IPAddress() = Tempaddr.AddressList, str As String = ""
For Each TempA As IPAddress In TempAd
CompInfo(1) = TempA.ToString()
Form1.ListBox1.Items.Add(TempA)
Next
Catch ex As Exception
CompInfo(1) = ""
End Try
CompNode.Text = CompInfo(0)
CompNode.ToolTipText = CompInfo(1)
CompNode.ImageIndex = 0
CompNode.SelectedImageIndex = 0
AllComp.Nodes.Add(CompNode)
Next
TView.ExpandAll()
Catch ex As Exception
End Try
End Sub
'---------------------------------------------------
May be this helps you.
Thanx
~Khatri Mitesh
modified on Monday, July 7, 2008 3:40 AM
|
|
|
|