i have a active report without any Page Header , Report Header and no any Footer type section.
for more detail see attached image.
Now issue is that When we run this report we got space before report detail.
for more detail see attached image
Below is my code
Assembly asm = Assembly.GetAssembly(this.GetType());
System.IO.Stream stre = asm.GetManifestResourceStream(asm.GetName().Name + ".CoverPage.rpx");
using (XmlTextReader xr = new XmlTextReader(stre))
{
arCoverPage.LoadLayout(xr);
}
//Get detail for Cover Page
AddingReportSection(report, HeaderType.CoverPage);
arCoverPage.DataSource = lstCoverPage;
arCoverPage.Run();
I want remove this space.so please give me any suggestion/idea
I also tried to set height of page but i am not get sucess.
arCoverPage.PageSettings.DefaultPaperSize = false;
arCoverPage.PageSettings.Gutter = 3.0F;
arCoverPage.PageSettings.Orientation = DataDynamics.ActiveReports.Document.PageOrientation.Portrait;
arCoverPage.PageSettings.PaperHeight = 5.0F;
this.viReport.Document = arCoverPage.Document;
How can I stop tab navigation to a specific Field control in TFS a work item ?
for instance I have a field control which is readonly, and I don't need the Tab-Cursor to stop there.
Hello
I want to run a java program on linux server in profiling mode means I want to profile a java program on linux server.Is there any java profiling software that can profile java program on linux server.
please suggest me what can I do for profiling.
Thanks in advance.
Hi All,
I have tried for "unload" and "beforeunload" binding in following code, but none of the browser is sending a request:
$(window).bind('unload', function(){
$.ajax({cache: false,
dataType: "script",
url: "test.php"
});
});
Any suggestion?
Thank you.
enum AccessSource
{
AccessSourceNull = 0x00000001,
AccessSourceSec = 0x00000002,
AccessSourceIpo = 0x00000004,
AccessSourceSSA = 0x00000008,
AccessSourceUpgrade = 0x00000010,
AccessSourceDelta = 0x00000020,
AccessSourcePhoneM = 0x00000040,
AccessSourceSoft = 0x00000080,
AccessSourceCR = 0x00000100,
AccessSourceA = 0x00000200,
AccessSourceE = 0x00000400,
AccessSourceAll = 0xFFFFFFFF
};
What is the value of AccessSourceAll ?? is it -1? or is it maximum value?
I have a parameter ULONG x , whose default value is AccessSourceAll(that means access to all). How do i remove the access right of AccessSourceE only?
How to add the access right of AccessSourceE again?
If i have a particular value in x, then how do i know whether AccessSourceE is set or not?
I want to have multiple listviews in single activity. But only one
listview should be displayed at one time. The listviews will be loaded
dynamically. So, how can I fill all the four listviews at the same
time and display only one?
Hello
I am using this code to check that array is present in the HashMap.
public class Test {
public static void main(String[]arg)
{
HashMap<int[],String> map= new HashMap<int[],String>();
map.put(new int[]{1,2}, "sun");
System.out.println(map.containsKey((new int[]{1,2})));
}
}
But this prints False.
How can I check that array is present in the HashMap.
Thanks in advance.
I developed a small WCF service that uses Castle Windsor IoC container and it works
fine on my PC. When I deploy it onto a Win 2008 R2 server and host the
WCF service in IIS 7 it fails with the following error. I checked the
server level web.config and the trust level is set to "Full". What do
I need to do to get this to work. As a test I deployed the same service as it is onto a Windows 2003 server with the trust level set to "Full" and it works fine. I am
unable to figure out what setting/configuration I am missing on the
2008 server that is making the service fail.
Stack Trace:
[SecurityException: That assembly does not allow partially trusted
callers.]
Castle.Windsor.WindsorContainer..ctor() +0
WMS.ServiceContractImplementation.IoC.IoCInstanceProvider..ctor(Type
serviceType) in D:\WCF\WCFProofOfConcept\WMSServices
\WMS.ServiceContractImplementation\IoC\IoCInstanceProvider.cs:19
WMS.ServiceContractImplementation.IoC.IoCServiceBehavior.ApplyDispatchBehavior(ServiceDescription
serviceDescription, ServiceHostBase serviceHostBase) in D:\WCF
\WCFProofOfConcept\WMSServices\WMS.ServiceContractImplementation\IoC
\IoCServiceBehavior.cs:24
System.ServiceModel.Description.DispatcherBuilder.InitializeServiceHost(ServiceDescription
description, ServiceHostBase serviceHost) +377
System.ServiceModel.ServiceHostBase.InitializeRuntime() +37
System.ServiceModel.ServiceHostBase.OnBeginOpen() +27
System.ServiceModel.ServiceHostBase.OnOpen(TimeSpan timeout) +49
System.ServiceModel.Channels.CommunicationObject.Open(TimeSpan
timeout) +261
System.ServiceModel.HostingManager.ActivateService(String
normalizedVirtualPath) +121
System.ServiceModel.HostingManager.EnsureServiceAvailable(String
normalizedVirtualPath) +479
Hi I have cretaed my own renderer. I want the back ground should be blue. I have set background color as blue also. But I donot know what is tha problem that the background color of my renderer always seems to be white.
I have post the code. please help where I am wrong so that the background color becomes white.
class CheckTreeCellRenderer extends JPanel implements TreeCellRenderer {
private CheckTreeSelectionModel selectionModel;
private MyRenderer delegate;
private TristateCheckBox checkBox = new TristateCheckBox("", null, true);
public static final State NOT_SELECTED = new State();
public static final State SELECTED = new State();
public static final State DONT_CARE = new State();
public CheckTreeCellRenderer(MyRenderer delegate, CheckTreeSelectionModel selectionModel) {
this.delegate = delegate;
this.selectionModel = selectionModel;
setLayout(new BorderLayout());
setOpaque(true);
setBackground(new Color(207, 219, 234));
checkBox.setState(Boolean.TRUE);
checkBox.setOpaque(true);
checkBox.setBackground(new Color(207, 219, 234));
}
public Component getTreeCellRendererComponent(JTree tree, Object value, boolean selected, boolean expanded,
boolean leaf, int row, boolean hasFocus) {
Component renderer = delegate.getTreeCellRendererComponent(tree, value, selected, expanded, leaf, row, hasFocus);
TreePath path = tree.getPathForRow(row);
if (path != null) {
if (selectionModel.isPathSelected(path, true)) {
checkBox.setState(Boolean.TRUE);
} else {
checkBox.setState(selectionModel.isPartiallySelected(path) ? null : Boolean.FALSE);
}
}
renderer.setBackground(new Color(207, 219, 234));
tree.setOpaque(true);
tree.setBackground(new Color(207, 219, 234));
this.setOpaque(true);
this.setBackground(new Color(207, 219, 234));
add(checkBox, BorderLayout.WEST);
add(renderer, BorderLayout.CENTER);
return this;
}
}
I have a tree view which has a folder icon by default and once clicked it has to be changed to a checkbox icon. And further on clicking the checkbox icon should display a folder icon.
Sample Code,
Server side : c#
htmlSb.AppendFormat(" {0}", emptyContent);
JS code
var Test= new Object();
Test.Controls=new Object();
Test.Controls.TreeView = new Object();
**Test.Controls.TreeView.SelectNode = function (TreeId, nodeLabel) {
$("#" + TreeId + " li span, ul li span").css("background-color", "transparent");
nodeLabel.style.backgroundColor = "white";
nodeLabel.style.background = "url(../images/selected.gif) 0 0 no-repeat";
}**
The other Image :
if (nodeLabel.style.background = "url(../images/folderclosed.gif) 0 0 no-repeat")
I need to toggle between "selected.gif" and "folderclosed.gif" images. If one is clicked the other should display. and vice versa.
Please help.
Can anyone expalin me how to dynamically ger the Role from a DB table instead of hard coding it in the code.
ClaimsIdentity outputIdentity = new ClaimsIdentity();
outputIdentity.Claims.Add(new Claim(System.IdentityModel.Claims.ClaimTypes.Name, principal.Identity.Name));
outputIdentity.Claims.Add(new Claim(ClaimTypes.Role, "Manager"));
outputIdentity.Claims.Add(new Claim(ClaimTypes.Country, HttpUtilities.GetProgramIdentifierFromUrl()));
return outputIdentity;
Hello:
I was looking for something like flash grabber and I came across this result
http://www.giveawayoftheday.com/flash+grabber+firefox/
I am just wondering how giveawayoftheday has managed to get "flash+grabber+firefox/" indexed in Google ? Did they submit via Google Sitemap or is Google doing this on its own ? Or something else ? Kindly enlighten.
Thanks.
I have a web application in which I need to fetch data from the database and display in the index page. As you know, asp.net mvc has given options to edit delete etc...
I need to populate the page using the conventional DB way and it uses a stored procedure to retrieve results. I dont want to use LINQ.
This is my model entity class
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
namespace LogMVCApp.Models
{
public class Property
{
public int Id { get; set; }
public string LogInId { get; set; }
public string Username { get; set; }
public string Action { get; set; }
public string Information { get; set; }
public bool Passed{get; set; }
public string LogType { get; set; }
}
}
and I need to retrieve data using something like this...
var conString = ConfigurationManager.ConnectionStrings["connection"].ToString();
var conn = new SqlConnection(conString);
var command = new SqlCommand("LogInsert", conn){CommandType=CommandType.StoredProcedure};
Can anyone explain in deatil about
Making use of work item’s XML and customize TFS work items.
How to create custom window form control to add to work item.And installation of
custom control runtime
I have a 2d vector
typedef vector <double> record_t;
typedef vector <record_t> data_t;
data_t data;
So my 2d vector is data here. It has elements like say,
1 1 1 1 1
2 2 2 2 2
3 3 3 3 3
4 4 4 4 4
5 5 5 5 5
Now I want to insert these elements into another 2d vector
std::vector< vector<double> > window;
So what I did was to create an iterator for traversing through the rows of data and pushing it into windowlike
std::vector< std::vector<double> >::iterator data_it;
for (data_it = data.begin() ; data_it != data.end() ; ++data_it)
window.push_back ( *data_it );
Can anybody tell me where I'm wrong or suggest a way to do this ?
Thanks
Can anyone with an example help me to create an Asp.Net MVC model as a WCF Service where i can write my entity class, which can be used in my controller to create view
Hello Folks,
I am trying to develop a application where
The user 'X' has logged into Facebook
app has a set of email addresses (possible friends of user 'X')
app gets the list of friends of user 'X' (uids)
Want to check if user with email address [email protected] is a valid facebook user by using email address and is user X's friend (basically a uid to email mapping)
Thanks!
I am using Windows 7 and my project is in VB 6.0. I am getting errors while I am executing my program. It shows the error:
User-defined type not defined.
Here is my code:
Private Sub Toolbar1_ButtonClick(ByVal Button As MSComctlLib.Button)
Select Case Button.Key
Case "trace": Call mntrace_Click
Case "snrplot": Call mnSnrplot_Click
Case "skyplot": Call mnskyplot_Click
Case "nmea": Call mnNmea_Click
Case "navigation": Call mnNavigation_Click
Case "survey": Call mnSurvey_Click
Case "pause/start": Call mnpause_Click
Case "save": Call mnsave_Click
Case "print": Call mnprint_Click
Case "offline": Call mnoffline_Click
End Select
End Sub
How can I solve this error?
I have a 2d vector
typedef vector <double> record_t;
typedef vector <record_t> data_t;
data_t data;
So my 2d vector is data here. It has elements like say,
1 1 1 1 1
2 2 2 2 2
3 3 3 3 3
4 4 4 4 4
5 5 5 5 5
Now I want to insert these elements into another 2d vector
std::vector< vector<double> > window;
So what I did was to create an iterator for traversing through the rows of data and pushing it into window like
std::vector< std::vector<double> >::iterator data_it;
for (data_it = data.begin() ; data_it != data.end() ; ++data_it){
window.push_back ( *data_it );
// Do something else
}
Can anybody tell me where I'm wrong or suggest a way to do this ? BTW I want to push it just element by element because I want to be able to do something else inside the loop too. i.e. I want to check for a condition and increment the value of the iterator inside. for example, if a condition satisfies then I'll do data_it+=3 or something like that inside the loop.
Thanks
P.S. I asked this question last night and didn't get any response and that's why I'm posting it again.
I am using VS2010, CrystalReport13 & MVC3. My problem is unable to add an external assembly in Crystal Report using "Database Expert" Option.
I have a class named WeeklyReportModel in an external assembly. In my web project, data retrieving from DB as IEnumerable collection of WeeklyReportModel.
I tried ProjectData - .NetObjects in Crystal Report for adding the WeeklyReportModel. But this external assembly is not showing under ".NetObjects".
Then I tried other option as
Create New Connection - ADO.Net – Make New Connection and pointed this External Assembly. It has been added under Ado.Net node, but while expanding displays as "...no items found..."
Totally frustrated. Please help.
External Assembly Class:
namespace SMS.Domain
{
public class WeeklyReportModel
{
public int StoreId { get; set; }
public string StoreName{ get; set; }
public decimal Saturday { get; set; }
public decimal Sunday { get; set; }
public decimal Monday { get; set; }
public decimal Tuesday { get; set; }
public decimal Wednesday { get; set; }
public decimal Thurday { get; set; }
public decimal Friday { get; set; }
public decimal Average { get; set; }
public string DateRange { get; set; }
}
}
In Controller-action[Data retrieving as Collection Of WeeklyReportModel]
namespace SMS.UI.Controllers
{
public class ReportController : Controller
{
public ActionResult StoreWeeklyReport(string id)
{
DateTime weekStart, weekClose;
string[] dateArray = id.Split('_');
weekStart = Convert.ToDateTime(dateArray[0].ToString());
weekClose = Convert.ToDateTime(dateArray[1].ToString());
SMS.Infrastructure.Report.AuditReport weeklyReport
= new SMS.Infrastructure.Report.AuditReport();
IEnumerable<SMS.Domain.WeeklyReportModel> weeklyRpt =
weeklyReport.ReportByStore().WeeklyReport(weekStart, weekClose);
Session["WeeklyData"] = weeklyRpt;
Response.Redirect("~/Reports/Weekly/StoreWeekly.aspx");
return View();
}
}
}
Thanks in advance.