How i can Export a report in SSRS 2008 / 2005 in text file.
with proper allignment
if it is possible by adding some code in Reporting
then pls provide me that code . .
its very urgent . .
program is compiling properly, but it is not running. it gives error classnotfoundexception ..i have already included the library path to the classpath ..
public class B {
static int i =1;
public static int multiply(int a,int b)
{
return i;
}
public int multiply1(int a,int b)
{
return i;
}
public static void main(String args[])
{
B b = new A();
System.out.println(b.multiply(5,2));
System.out.println(b.multiply1(5,2));
}
}
class A extends B
{
static int i =8;
public static int multiply(int a,int b)
{
return 5*i;
}
public int multiply1(int a,int b)
{
return 5*i;
}
}
Output:
1
40
Why is it so? Please explain.
The following is my oauth template
top.location.href='https://graph.facebook.com/oauth/authorize?client_id=${config['facebook.appid']}&redirect_uri=${config['facebook.callbackurl']}&display=page&scope=publish_stream';
Click here to authorize this application
When I hit the page I am prompted to login (desired), upon login I am redirected in a loop between a permissions page and an app page.
My controller looks like:
class RootController(BaseController):
def __before__(self):
tmpl_context.user = None
if request.params.has_key('session'):
access_token = simplejson.loads(request.params['session'])['access_token']
graph = facebook.GraphAPI(access_token)
tmpl_context.user = graph.get_object("me")
def index(self):
if not tmpl_context.user:
return render('/oauth_redirect.mako')
return render('/index.mako')
I'm guessing my settings are off somewhere, probably with the callback.
Not to sure if it is an issue with my code or the python sdk for facebook.
Hi Everybody,
I am trying to upload a image which i am clicking with the help of the camera. I am trying the following code to upload the image to the remote server.
-(void)searchAction:(UIImage*)theImage
{
UIDevice *dev = [UIDevice currentDevice];
NSString *uniqueId = dev.uniqueIdentifier;
NSData * imageData = UIImagePNGRepresentation(theImage);
NSString *postLength = [NSString stringWithFormat:@"%d",[imageData length]];
NSString *urlString = [@"http://www.amolconsultants.com/im.jsp?" stringByAppendingString:@"imagedata=iPhoneV0&mcid="];
urlString = [urlString stringByAppendingString:uniqueId];
urlString = [urlString stringByAppendingString:@"&lang=en_US.UTF-8"];
NSLog(@"The URL of the image is :- %@", urlString);
NSMutableURLRequest *request = [[[NSMutableURLRequest alloc] init] autorelease];
[request setURL:[NSURL URLWithString:urlString]];
[request setHTTPMethod:@"POST"];
[request setValue:postLength forHTTPHeaderField:@"Content-Length"];
[request setHTTPBody:imageData];
NSURLConnection *conn=[[NSURLConnection alloc] initWithRequest:request delegate:self];
if (conn == nil)
{
NSLog(@"Failed to create the connection");
}
}
But nothing is getting posted. Nothing comes in the console window also. I am calling this method in the action sheet. When the user clicks on the 1st button of the action sheet this method is called to post the image.
Can anyone help me with this...
Any code will be very helpful...
Thanx in advance...
Java has its own garbage collection implementation so it does not require any destructor like C++ . This makes Java developer lazy in implementing memory management. And Garbage Collection is very expensive.
Still we can have destructor along with garbage collector where developer can free resources and which can save garbage collector's work. This might improves the performance of application. Why does Java not provide any destructor kind of mechanism?
Developer does not have control over GC but he/she can control or create object. Then why not give them ability to destruct the objects?
i m making a project in which i have to calculate total number of days from starting date to ending date which are inserted in text box by user at run time in asp.net c#.i have to do this on button_click event.how to do this?
i tried this-
protected void TextBox14_TextChanged(object sender, EventArgs e)
{
// get date from first text box
DateTime dold = Convert.ToDateTime(TextBox1.Text);
DateTime dnew = Convert.ToDateTime(TextBox14.Text);
TimeSpan daydif = (dnew - dold);
double dayd = daydif.TotalDays;
Label27.Text = dayd.ToString();
}
I am developing a ff extension which displays a list of elements from an array (dynamic) in the sidebar. The array is dynamic and needs to be constructed in a function everytime the sidebar is opened (or any other event handler). Later, i will need to implement link functionality on parts of the string.
What is the best way to go about this?
I have created an empty sidebar and just know the label element as of now. menu, and menuitem dont work. What other elements can i use to display text in a good way which supports dynamic contruction.
Is there some good tutorial/sample extension which i can see and learn?
I am struggling to find any resources on firefox extensions which construct a sidebar and put elements into them. plus tyhe other functionalities within a sidebar. I have made a emptysidebar. Now i need to display a dynamic array(which is formed using a JS function).
I have absolutely no idea how to go about it. Can someone please help!
this is the code of the sidebar page. I need a xul element like the menuitem where i can display a list of items. How do i get that in a sidebar?
<page id="sbEmptySidebar" title="emptysidebar"
xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"
> <vbox flex="1">
<label id ="l1">
</vbox> </page>
Hi,
I want to replace all the text nodes in a html text. I'll explain with an example:
$html = "
<div>
<p>
text2 text2 word text2
<span>abcd</span>
text2 text2 word text2
<p>
this is a long, very long statement with punctuations.
</div>
I want to replace "text2 text2 word text2" with "<span>text2 text2 word text2</span>" and "this is a long, very long statement with punctuations." with "<span>this is a long, very long statement with punctuations.</span>"
What should be the regular expression for the same?
Back UP RDLs Files Creation in SSRS 2008
Automatically when we save it.
Can we resolve this ?
Like if there is report which name is AssetAmount.rdl
so when we updated it and save it
then there is an autogenerated Rdl created as
AssetAmount-BackUP.rdl
AssetAmount-.rdl
so there are two rdls files in a same folder
In the following code segment, after free(x), why does y becomes 0?
As per my understanding, the memory in the heap that was being pointed to by x, and is still being pointed by y, hasn't been allocated to someone else, so how can it change to 0?
And moreover, I don't think it is free(x) that changed it to 0.
Any comments?
#include <stdio.h>
int main ( int argc, char *argv[] )
{
int *y = NULL;
int *x = NULL;
x = malloc(4);
*x = 5;
y = x;
printf("[%d]\n", *y); //prints 5
free(x);
printf("[%d]\n", *y); //why doesn't print 5?, prints 0 instead
return 0;
}
I am in the process of porting a simple CSS grid system to GWT. My CSS file currently has classes like .size1, .size2 etc., and I have a CSS resource that looks like -
class MyResource extends CSSResource {
@ClassName("size1")
String size1();
@ClassName("size2")
String size2();
// And so on
}
However what I really want, is to have a single function like the following -
String size(int size);
which will generate the appropriate class when passed the size as an integer at runtime. This is needed as I perform some calculations to determine the actual space available/needed for a widget in javascript and then attach the appropriate class name.
Is this something that is even possible with GWT?
when user will enter details in the text box on the html from
<h1>Please enter new password</h1>
<form method="POST" enctype="application/json action="uid">
Password<input name="passwd"type="password" /><br>
Retype Password<input name="repasswd" type="password" /><br>
<input type="Submit" />
</form>
</body>
i want to post the data in json format through http post request and also i want to set
content-type = application/json
Can we change printer settings on run time
in SSRS 2008.
If a parameter pass which can change the Page Setup of a Page.
Like For ex:
if a report is on Legal Size paper
but i want to print on A4 Landscape Or Legal on run time.
it depends on my choice.
I had my static site with which WordPress blogs were integrated. Now I have made a Grails application with which I want to integrate those WordPress blogs.
I had put the WordPress folder copied from my previous site to the web-app folder of my Grails application. But I am not able to access the WordPress folder, as when I hit URL - http://localhost:8080/myApplicaiton/wordpress/, it shows this error:
Error 500: java.net.SocketTimeoutException: Read timed out
Also, in my urlMappings.groovy one of the mappings I need is
"/$generalPageURL"(controller:'myConroller', action:'myAction')
And if I put in the above mapping, all requests for WordPress goes to myAction of myController. Is there any way out to still reach the WordPress folder defined inside web-app folder with the above mapping?
I am trying to make an chat application using python and django. I almost complete it and its working fine for 8-10 minutes when two persons are chatting after that certain time it shows an error.
here is the traceback : -
Traceback (most recent call last):
File "\Django_chat\django_chat\chat\views.py", line 55, in receive
message = chatSession.getMessage(request.session['partner'],request.session['uid'],afterTime)
File "C:\Python26\lib\site-packages\django\contrib\sessions\backends\base.py", line 47, in __getitem__
return self._session[key]
KeyError: 'partner'
here is the receive module :-
def receive(request):
message received by this user
chatSession = chat()
data = request.POST
afterTime = data['lastMsgTime']
try:
message = chatSession.getMessage(request.session['partner'],request.session['uid'],afterTime)
except:
#partnerId = virtual_users.objects.get(id=request.session['uid']).partner
print('there is an error in receive request')
traceback.print_exc(file=open("/myapp.log","a"))
msg = serializers.serialize("json", message)
return HttpResponse(msg)
Please Help me :(
thanks
Ansh J
In social networking site, a person has friends/followers. There is a chain of relation. How would be data stored at database in this scenario? This is a very huge information, still result of a query comes back very fast on these sites.
This is ARRAY1
var array_1 = ["51b59c162de88", [
["parties", 0.0, 0.011]
]]
["51b59c1b4f52f", [
["star-speak", 0.0, 0.006],
["parties", 0.0, 0.011]
]]
This is ARRAY2
var array_2 = [{
key: "51b59c162de88",
values: ["parties", 0.0, 0.011]]
},
{
key: "51b59c162de94",
values: [
["star-speak", 0.0, 0.006],
["parties", 0.0, 0.011]
]
}, ];
What is the exact difference between array 1 and array 2.
How do I access their data?
I am new to json!!!!
i have a master page and the content pages in the master page i have the textbox and dropdown
the value in the dropdown may vary according to the content pages
e.g for one content page the dropdown may contain
branchname,
city,
address
and let for other content page under same master page the dropdown may have values like
Contactnumber,
EmailID,
...........
.........
etc.....
so please help me to how can i bind that dropdown from my content page
thanks.
Java does not have concept of operator overloading.
Still + operator behaves as addition operator with numbers and concatenate operator with strings. This is similar to the operator overloading behavior.
Please suggest.