Click here to Skip to main content
15,908,581 members

Comments by 1989priya (Top 45 by date)

1989priya 27-May-14 1:37am View    
yaa..Its not working.There are no error.Path1 pick up path of crystal report.
Path1 = AppDomain.CurrentDomain.BaseDirectory.ToString & "CrystalInvoice.rpt"
Dim a As New ReportDataset
Dim DS1 As New DataSet1
DS1.Tables("DTInvMst").Rows.Add(cmbType.Text, cmbInVNo.Text, txtPortOfLoading.Text, txtPortDischarge.Text, dtpBuyerDate.Text, txtOtherRef.Text, txtBuyerOrderNo.Text, txtPreCarriage.Text, dtpRemovalGoods.Text, txtSNo.Text, txtVessel.Text, txtFinalDest.Text, txtExporterRef.Text, txtRateDuty.Text, txtTotalDutyFig.Text, txtWords.Text, txtExamption.Text, dtpDateDebit.Text, dtpInvoice.Text, dtpRoadPermit.Text, txtPLA.Text, txtRGSno.Text, txtRoadPermitNo.Text, dtpRemovalGoods.Text, txtPlaceOfReceipt.Text, txtCountGoods.Text, txtCountDest.Text, txtTermsPaymt.Text, txtexcisevalue.Text, txtExcise1.Text, txtCESSValue.Text, txtTotalCess1.Text, txtEduValue.Text, txtEduCess1.Text, txtAllExcise1.Text, txtSaleTaxValue.Text, txtSaletax1.Text, txtTaxAmt1.Text, txtTotalsale1.Text, cmbOrderAckNo.Text, txtOrderAckDate.Text, txtPartyName.Text, dgvInvoice.Rows(0).Cells("colDescription").Value, dgvInvoice.Rows(0).Cells("colQty").Value, dgvInvoice.Rows(0).Cells("colRate").Value, dgvInvoice.Rows(0).Cells("colTotal").Value, dgvInvoice.Rows(0).Cells("colkindpackage").Value, dgvInvoice.Rows(0).Cells("colPackageSize").Value, dgvInvoice.Rows(0).Cells("colNetWeight").Value, dgvInvoice.Rows(0).Cells("colGrossWeight").Value, dgvInvoice.Rows(0).Cells("colBatch").Value, txtCustName.Text, txtCustAdd.Text, dtpCust.Text, txtTarrifHeadNo.Text, txtDocument.Text, txtPhoneNo.Text, txtMb.Text, txtTransporter.Text, txtVehicleNo.Text, txtCustInvNo.Text, txtTinNo.Text, txtECC.Text, txtPO.Text, txtGRNo.Text)
BindCompanyInfo()
DS1.Tables("DTCompany").Rows.Add(ds.Tables(0).Rows(0)("CName"), ds.Tables(0).Rows(0)("Add1"), ds.Tables(0).Rows(0)("State"), ds.Tables(0).Rows(0)("City"), ds.Tables(0).Rows(0)("PhoneNo"), ds.Tables(0).Rows(0)("MobileNo"), ds.Tables(0).Rows(0)("EmailId"), ds.Tables(0).Rows(0)("ContPerson"), ds.Tables(0).Rows(0)("FaxNo"), ds.Tables(0).Rows(0)("TinNo"), ds.Tables(0).Rows(0)("LstNo"), ds.Tables(0).Rows(0)("CstNo"), ds.Tables(0).Rows(0)("PanNo"), ds.Tables(0).Rows(0)("CompHOffice"), ds.Tables(0).Rows(0)("ExpiryDate1"), ds.Tables(0).Rows(0)("ExpiryDate2"), ds.Tables(0).Rows(0)("FinYear1"), ds.Tables(0).Rows(0)("FinYear2"))
Path1 = AppDomain.CurrentDomain.BaseDirectory.ToString & "CrystalInvoice.rpt"
a.PrintRPT(DS1, Path1, heading)
a.Show()
when I get data from my window form,It load data into crystal report but When I get data from dataset,It does not load data into crystal report
1989priya 12-Mar-14 0:35am View    
In my sites..I saw when users used client side.I wanted to learn how to work on this,where
is error in my coding.
1989priya 12-Mar-14 0:31am View    
hi..
I would rembeber all those things that you told me.
According to you,password validation should be on server side instead of client side,But I
wanted to do at client side.
1989priya 6-Mar-14 10:54am View    
Fisrt of all I made a web service..
public class WebService : System.Web.Services.WebService {

public WebService () {

//Uncomment the following line if using designed components
//InitializeComponent();
}
public List<webservice> CountryInformation { get; set; }
[WebMethod]
public string LoadCountry()
{
string ab=null;
List<string> authors = new List<string>();

authors.Add("India");
authors.Add("US");
return authors;




}

}

then I am trying to call that web service in aspx page using jquery..

<%@ Page Language="C#" AutoEventWireup="true" CodeFile="Default.aspx.cs" Inherits="_Default" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
<script src="jquery/jquery-1.6.2.min.js" type="text/javascript"></script>
<script src="jquery/jquery.validate.js" type="text/javascript"></script>
<script language="javascript" type="text/javascript">
$(document).ready(function () {
$.ajax({
type:"POST",
contentType: "application/json; charset=utf-8",
url: "WebService.asmx/ LoadCountry",
data: "{}",
dataType: "json",
success: function (Result) {
$.each(Result.d, function (key, value) {
$("#DropDownList1").append($("<option></option>").val;

});
},
error: function (Result) {
alert("Error");
}
});
});
</script>
</head>
<body>
<form id="form1" runat="server">
<div>
<asp:DropDownList ID="DropDownList1" runat="server">

</div>
</form>
</body>
</html>
1989priya 5-Mar-14 13:07pm View    
Hi Tadit...
Thanks for reply.
I want to bind hard coded country name in web service instead of retreive from database. I tried,but I am not getting how to do?