Telerik Forums
Community Forums Forum
0 answers
93 views

Hi, guys! Any recommendations for a web security scanner?  We want to make sure our private information are protected from hackers.  Thanks for your time.

 

Liberty
Top achievements
Rank 1
 asked on 20 Aug 2016
8 answers
419 views
http://www.leftlanenews.com/2006/05/02/video-real-life-frogger/

I don't beleive in my eyes.

Valeri Hristov
r.a.d.dock/editor/spell/upload/window development team
Liberty
Top achievements
Rank 1
 answered on 19 Aug 2016
3 answers
55 views

Hi Guys,

 

Thanks for making this kind of community where I can learn a lot from other people. I was searching android forums on Google and found this amazing website where i can share my opinion with other people.

Hope we all have a great day.

 

Thanks

Sara

New Clone of omics publishing group.

Sara
Top achievements
Rank 1
 answered on 10 Aug 2016
18 answers
3.6K+ views
Using the clipboard class in C# or VB.NET is pretty simple for windows applications. However, it gets a little trickier for ASP.Net projects.

Background:
The first question you may ask is "Why would you ever want to use the server's clipboard to do anything?" Good question :). I came accross this problem when I was trying to write a pdf parser that would rasterize the front page and save it into a Bitmap object. From here, you can save it to a file, database, etc. To do this, I was using the Adobe Acrobat com library that comes with Adobe Acrobat 7.0. Unfortunatly, they do not have a function that allows you to simply save to a file. They do, however, let you copy the image to the clipboard and then recover it in whatever format you want.

Problem:
I found some great code here: http://www.codeproject.com/dotnet/pdfthumbnail.asp. This code was written for a C#/VB.Net Windows App and works great if used that way. However, when I tried to use this text in the OnClick event of an ASP Button control, i found that nothing was happening. Turns out, the CopyToClipboard command was working fine, b/c if I traced through, I could press ctrl+v and see the image perfectly. However, when the Clipboard.GetObject method was called, it was always returning Null.

Solution:
After much digging and 2 days of work, I stumbled on the reason: The thread started for the ASP.Net application did not have the right ApartmentState to read the Clipboard class. So, here is what I did to work around this:

protected void Button_Click(object sender, EventArgs e)
{
 Thread cbThread = new Thread(new ThreadStart(CopyToClipboard));
 cbThread.ApartmentState = ApartmentState.STA;
 cbThread.Start();
 cbThread.Join();
}

[STAThread]
protected void CopyToClipboard()
{
/*
In here, put the code that copies AND retrieves from the clipboard.
If you use global variables, the Bitmap you populate here can be used elsewhere in your code.
*/
}

Final Notes:
I do not recommend doing this in a multi-user environment as there is no guarentee that the user that copied to the clipboard will be the one who retrieves from it. Also, images/pdfs can be very large and the clipboard is slow.

I hope this is of some use to someone. It solved my problem and saved me $900 by not having to buy a PDF Rasterizer control. Feel free to respond and let me know if it helped you out or if you have any questions.

~ Oleg Fridman
John
Top achievements
Rank 1
 answered on 06 Aug 2016
8 answers
80 views
Please delete my Telerik account and all data associated with it. Thanks.
Seth
Telerik team
 answered on 04 Aug 2016
3 answers
100 views

Hi

I need someone to delete attachment from my post:

 

http://www.telerik.com/forums/unable-to-resize-radgrid-columns-in-ie-11#Yesb4ehUxESVxytCa_VYpQ

 

Thanks in advance.

Gaurav
Top achievements
Rank 1
 answered on 22 Jun 2016
175 answers
402 views
Hello,

please deactivate and delete my Account .

Thx
EL Karima
Jameson
Telerik team
 answered on 13 Jun 2016
3 answers
424 views
Dear Telerik Team,

Let me where you report a bug in Telerik products? When I go to http://www.telerik.com/account/support-tickets/contact-support-team.aspx it says me to choose a product. I don't have one directly linked to my account.

I don't think I can report a bug with substantially confidential info on the public forum right?
Prakash
Top achievements
Rank 1
 answered on 13 Jun 2016
1 answer
221 views

I am looking for a good format for my customer ids and I notice the Telerik uses xx####### where xx are two letters and ####### are numbers. What do the letters stand for? Are the numbers sequential (incrementing) or random?

How about Telerik Order Ids where you use xxx####### with 3 letters?

Asen Arizanov
Telerik team
 answered on 10 Jun 2016
1 answer
208 views

I have not included the AjaxSpellchecker in my EditorToolGroup. Also I tried removing the httphandler SpellCheckHandler.axd from my web.config.

But whenever I open my document (xml file ) to edit in RadEditor, it underlines all the xml names/attributes with red color like spell checking.

I don't want any kind of spell check as well as those red underlines.

How do I achieve this?

Thanks.

Ianko
Telerik team
 answered on 11 May 2016
Narrow your results
Selected tags
Tags
+? more
Top users last month
Edmond
Top achievements
Rank 1
Iron
fabrizio
Top achievements
Rank 2
Iron
Veteran
RobMarz
Top achievements
Rank 2
Iron
Fakhrul
Top achievements
Rank 1
Iron
Tejas
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Edmond
Top achievements
Rank 1
Iron
fabrizio
Top achievements
Rank 2
Iron
Veteran
RobMarz
Top achievements
Rank 2
Iron
Fakhrul
Top achievements
Rank 1
Iron
Tejas
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?