what if we create a bitmat having format System.Drawing.Imaging.PixelFormat.Format24bppRgb ?
Many Thanks, Adnan Rafiq muhammadadnanrafiq@gmail.com
what if we create a bitmat having format System.Drawing.Imaging.PixelFormat.Format24bppRgb ?
Many Thanks, Adnan Rafiq muhammadadnanrafiq@gmail.com
How i can write text on image, using the color pallete of index image like tif,so resulting jpg have text color same like image.Regards,adnan
Many Thanks, Adnan Rafiq muhammadadnanrafiq@gmail.com
Hi There, I am trying to watermark an image with Embossed text & with opacity of color. Here is code which i am using. Problem Description: Watermark & embossed look works K , but i want same color of text (little darker), as the source image have, any idea how to use color pellete of indexed image to draw text with its colors or any other solution, any tip will be highly appreciated. Image watermarkImage = null; using (watermarkImage = Image.FromFile(@"C:\NYDN 2008-02-18E\ENV13614\ENV13614 002P.tif")) { System.Drawing.Font myFont = new Font("Arial", 58, FontStyle.Bold); System.Drawing.Color myWatermarkColor = Color.FromArgb(120, 120, 120); Bitmap btmImage = new Bitmap(watermarkImage.Width, watermarkImage.Height); // Get a graphics context Graphics g = Graphics.FromImage(btmImage); g.DrawImage(watermarkImage, new Rectangle(0, 0, btmImage.Width, btmImage.Height), 0, 0, watermarkImage.Width, watermarkImage.Height, GraphicsUnit.Pixel); watermarkImage = btmImage; // Create a solid brush to write the watermark text on the image Brush blackBursh = new SolidBrush(Color.FromArgb(58, Color.Gray)); Brush whiteBursh=new SolidBrush(Color.FromArgb(58,Color.Black)); //Brush shadowBursh = new SolidBrush(Color.FromArgb(45, Color.Black)); int numofLayers = (int)(watermarkImage.Height / 100); int lineHeight = 0; for (int i = 0; i < numofLayers; i++) { g.DrawString("© Property of the New York Daily News.© Property of the New York Daily News.© Property of the New York Daily News..© Property of the New York Daily News.", myFont, blackBursh, 1, lineHeight+1); g.DrawString("© Property of the New York Daily News.© Property of the New York Daily News.© Property of the New York Daily News..© Property of the New York Daily News.", myFont, whiteBursh, 0, lineHeight); lineHeight += 100; } watermarkImage.Save(@"C:\temp.jpg"); } Regards, adnan
Many Thanks, Adnan Rafiq muhammadadnanrafiq@gmail.com
how to secure files (pdf), the recomendation is httphandelers, it works absolutely great.But now an new issue has been arrived. What i did , i registerd ISAPI extension (.pdf) in IIS 6.0,to let process the request to ASP.Net runtime, there i used context.response.transmitfile to send the file to the browser, as client will be viewing file in browser not downloading, but in case when file is bigger than 20 MB ,(file can be upto 100MB), it takes time, obviously it should take. But when we redirect or request pdf file without registering ISAPI extension, browser starts showing file, means you see instantly first page or few pages while other are downloading, how to achive this kind of performance, and this kind of behaviour, with letting asp.net runtime process the request. I hope you guys get my question & if any explaination needed please ask. Note: Same issue with uploading files with .Net uploader control, even after we change machine.config file size attribute, i want suggestion about better performance, when many users are doing both uploading, and viewing files from repository. context.Response.Clear(); context.Response.AddHeader("content-disposition", "inline;filename=" + values[1] + ".pdf"); context.Response.ContentType = "application/pdf"; context.Response.BufferOutput = false; context.Response.TransmitFile(physicalfilepath); context.Response.Flush(); context.Response.Close(); context.Response.End();
Many Thanks, Adnan Rafiq muhammadadnanrafiq@gmail.com
Recently i came here to discuss the issue, how to secure files (pdf), the recomendation was httphandelers, it works absolutely great.But now an new issue has been arrived. What i did , i registerd ISAPI extension (.pdf) in IIS 6.0,to let process the request to ASP.Net runtime, there i used context.response.transmitfile to send the file to the browser, as client will be viewing file in browser not downloading, but in case when file is bigger than 20 MB ,(file can be upto 100MB), it takes time, obviously it should take. But when we redirect or request pdf file without registering ISAPI extension, browser starts showing file, means you see instantly first page or few pages while other are downloading, how to achive this kind of performance, and this kind of behaviour, with letting asp.net runtime process the request. I hope you guys get my question & if any explaination needed please ask. Note: Same issue with uploading files with .Net uploader control, even after we change machine.config file size attribute, i want suggestion about better performance, when many users are doing both uploading, and viewing files from repository.
Many Thanks, Adnan Rafiq muhammadadnanrafiq@gmail.com
heloo, will you guys comment on this thread....?
Many Thanks, Adnan Rafiq muhammadadnanrafiq@gmail.com
Can you guys help me on this thread, Many thanks,adnan
Many Thanks, Adnan Rafiq muhammadadnanrafiq@gmail.com
Hi All, Recently i came here to discuss the issue, how to secure files (pdf), the recomendation was httphandelers, it works absolutely great.But now an new issue has been arrived. What i did , i registerd ISAPI extension (.pdf) in IIS 6.0,to let process the request to ASP.Net runtime, there i used context.response.transmitfile to send the file to the browser, as client will be viewing file in browser not downloading, but in case when file is bigger than 20 MB ,(file can be upto 100MB), it takes time, obviously it should take. But when we redirect or request pdf file without registering ISAPI extension, browser starts showing file, means you see instantly first page or few pages while other are downloading, how to achive this kind of performance, and this kind of behaviour, with letting asp.net runtime process the request. I hope you guys get my question & if any explaination needed please ask. Note: Same issue with uploading files with .Net uploader control, even after we change machine.config file size attribute, i want suggestion about better performance, when many users are doing both uploading, and viewing files from repository. Thanks in advance for sharing your wise suggestions with me. Many Thanks, Adnan
Many Thanks, Adnan Rafiq muhammadadnanrafiq@gmail.com
Thanks Mark, handler works greate for me. regards adnan
Many Thanks, Adnan Rafiq muhammadadnanrafiq@gmail.com
Thanks for reply. But now i am confused to go for a reliable solution regarding file security. Its right that asp.net location tag didnot work for like it did work for common aspx pages. I read articles which advocates different solutions, like implementing basic authentication with SSL, to secure the files, and use httpwebrequest type classes to get login on the server and give access to the logined user without prompting a login diaglue. Some advocate NTLM security, which is new even i heard first time. You told me to write handelers, i read a little about it, to map IIS extensions with asp.net extension to restrict file access in browser. But my real problem is i will be having thousands of files, and with hunderd of users having different writes on them, I am looking to having a reliable solution which should also be good in performance. Can you please put little more light regarding my context explained above. I will be very thankful to you. Many Thanks & Best Regards, adnan
Many Thanks, Adnan Rafiq muhammadadnanrafiq@gmail.com
Hi, This provides usefull methods to get tempfiles, unuque name, and temp directory paths, i m wondering if i can show my files let say in folder "PDF", which is not publicaly viewable, in that temp file, which is unique for each user session. Problem: I have pdf files in PDF folder on which each asp.net user have different rights, some can view the same files and some can not, so i planned to make it restricted for all user, and will get rights from the dataabse, and finally i want to copy these file to uniquly created temp file, and want to redirect to that file, so user can see the file in browser. i hope you understand my question. many thanks adnan -- modified at 10:39 Sunday 26th August, 2007
Many Thanks, Adnan Rafiq muhammadadnanrafiq@gmail.com
PLEASE REPLY THIS QUESTION...many thanks adnan
Many Thanks, Adnan Rafiq muhammadadnanrafiq@gmail.com
Will you guys please try to help me........ thanks in advance
Many Thanks, Adnan Rafiq muhammadadnanrafiq@gmail.com
Hi All, I have site developed in ASp.Net 2.0, in site i have folder named "Files", only authenticated users with membership api , can view these files, how i can implement the securty for this folder that no annoymus user can view the files, and only logined user can view the file, pleease guide me step by step. PS: if i use basic authentication, which user name & password will be sent as clear text, either user name & password which is store in database or some other user name and password. Many Thanks,adnan
Many Thanks, Adnan Rafiq muhammadadnanrafiq@gmail.com
I want to create some plug-in (or service or whatever) forExchange Server 2003 that will be installed on Exchange Server machine and will listen for all incomming mails for all users and for emails with specific subject the plug-in must execute some additional operations and sometimes those emails will be moved to different folder in client Outlook. How can I start with this development? I need to use C# 2005? If exists some components for this action? Thanks in advance, Adnan
Many Thanks, Adnan Rafiq muhammadadnanrafiq@gmail.com
Thanks for Reply, but it will not work for me. I want same behaviour from freetext serach using freetext or contains predicate, just like '%isual%', the syntaxt you provided will failed for me, For Example: let say have table name "table1" having one column "Col1" and table has these values visual C# C++ Adobe Photshop SQL Server Basic Language MY SQL HR Questions MBA (Marketing) Here is variable in Store Procedure: ------------------- DECLARE @KEYWORD NVARCHAR(MAX) SET @KEYWORD ='Visual'; SELECT * FROM TBALE 1 WHERE Contains(Col1,@KEYWORD) IT WILL RETURN ME Only one Row Visual -------------------- SET @KEYWORD ="visu"; SELECT * FROM TBALE 1 WHERE Contains(Col1,@KEYWORD) if i use this change the variale value to "visu" it wil return me no row --------------------------- SET @KEYWORD ="sual C#" ; SELECT * FROM TBALE 1 WHERE Contains(Col1,@KEYWORD) and if i again change value of vairable to "sual C#" then again no result. ----------------------------- I want result in these two cases,is the possible. Again THANKS IN ADVANCE Many Thanks, adnan
Many Thanks, Adnan Rafiq muhammadadnanrafiq@gmail.com
Hi All, I have created of freetextsearch catalogue based on three columns of datatype nvarchar, col1,col2,col3 now i want to implement this type of logic in freetext search. If there there is a entery like , "visual C","some value","" Now if provide this type of syntaxe in query like Contains((col1,col2,col3),@Keyword) and parameter have visual it will return me this row, but if i provide like this "ual C" it will return no row. i want to implement this type of search "Logic should be so that if the typed in characters is contained anywhere in the course col1/col2/col3 it should be found. " Thanks if advance for help. Many Thanks & Best Regards, adnan
Many Thanks, Adnan Rafiq muhammadadnanrafiq@gmail.com
I am 100% sure there is method merge in datatable, when i create instance of datatable, press dot, you will also see, merge method. Will you please help to fullfill the requirment that i have asked in question or explain what you have in this loop. Many Thanks, adnna
Many Thanks, Adnan Rafiq muhammadadnanrafiq@gmail.com
Hi All, I have two datatables, one datatable named "dtRecords1" gets filled from excel sheet, having column name "Name","Category", and on run time i have added a Identity column to "dtRecords1". Second Column gets filled from sql server database having three columsn "ID as Identity","Name","Category". Now i want to merge these two tables, i want this result from merge. If there are some changes in first datatable, depending upon all columns (comparing all column values) and ID Is same,it should be overwrited, and if there are some new rows these also should be added to the resulted database. Example: Datatable1 from excel ID,Name,Categoey 1,adnan,SE 2,ali,SSE 3,Imran,JSE Datatable2 From SQL Server DB ID,Name,Category 1,adnan,SSE 2,ali,SSE Resulted Datatable ID,Name,Category 1,adnan,SE -Changed ROw 2,ali,SSE -Unchanged Row 3,Imran,JSE - Newly added Row Many THanks & Best Regards, adnan
Many Thanks, Adnan Rafiq muhammadadnanrafiq@gmail.com
Thanks for reply. But i dont want to show pdf in single page. I am inteneded to show PDF with other controls, and it should run in all browsers, that's y i not intended to use IFRAME, and and due to IFRAME, i can assign file to Iframe, in partial file. If the things are not stated clearly in my questions please ask, i will try to explain what i want, and again thanks for help Many Thanks, adan
Many Thanks, Adnan Rafiq muhammadadnanrafiq@gmail.com