शुक्रवार, 9 जनवरी 2015

Friday's .Net World Submissions: Library system Simple

visual basic, vb, active server pages (ASP),java, javscript,c, c++, c__ , vbscript,active server pages, ASP, vbscript,SQL, database, informix, oracle, SQL Server,Perl, CGI,Delphi, PHP,source code, code, sample, samples, program, programs, help, tutorial,tutorials, routine, routines, jobs, listserve, mailinglist, bulletin board, bulletin boards, programming,  snippet, snippets, control, controls, class, classes, module, script, Scripts, applet , email , mp3, reference, windows,  modules, file, files, subroutine, subroutines, function, functions, sub, Microsoft, Sun,  downloads, winapi, directx, msaccess, ocx, vbx, ado, dao, odbc, rdo,  vbscript, vba, game programming, dcom, ole, com, dna, jet, dll, win api, winapi,  dbgrid, database front end, certify, decompiling, decompiler, visual basic for applications,  va  riable, constants, data type, byte, boolean, integer, long, single,  double, currency, date, object, string, variant, sub, function, free, 01/09/2015

Learn a little more about .Net World each day, with www.Planet-Source-Code.com's Code of the Day!

Current # of subscribers: 10,205


Make 9 cents to $300 per game playing Dollar Candy. The better you get, the more you make. Click for more info.

=================================================================
Would you like access to thousands of lines of source code instantly from your desktop? Then check out the Planet Source Code CD...hundreds of amazing programs at your fingertips with no online wait!
Click Here!

  



Code of the Day: (
What is the code of the day?
)
1) Library system Simple

Submissions Since Yesterday:

2) PdfReader not opened with owner password
 





1)Library system Simple


Category: Algorithims
Level: Beginner

Description: A basic application were you are going to login and search records

Compatibility: VB.NET
Submitted on 3/9/2012 1:02:48 AM and accessed 3843 times.

     Back to Top





2)PdfReader not opened with owner password


Category: Coding Standards
Level: Intermediate

Description: itextSharp.text.pdf.badpasswordException PdfReader not opened with owner password See here also: http://agalaxycode.blogspot.in/2015/01/itextsharptext-pdf-badpasswordexception-PdfReader-not-opened-with-owner-password.html Problem: If you are using iTestShap in Dot net application and generating PDF with owner passward. After that you are trying to open that password protected in again in Dot net code then you may face the error or exception of itextSharp.text.pdf.badpasswordException PdfReader not opened with owner password. Solution: This is because you are not supplying the password while you opening that pdf file in itextsharp using PdfReader. Example: Creating Pdf file using owner password: PdfWriter docWriter = PdfWriter.GetInstance(doc, new FileStream(pdfFileName, FileMode.Create)); byte[] OWNER = System.Text.Encoding.UTF8.GetBytes("mypassword"); docWriter.SetEncryption(null, OWNER, PdfWriter.ALLOW_PRINTING, PdfWriter.STANDARD_ENCRYPTION_128); Now you are trying to open that file: PdfReader pdfReader = new PdfReader(pdfFileName); Correct code: byte[] OWNER = System.Text.Encoding.UTF8.GetBytes("mypassword"); PdfReader pdfReader = new PdfReader(pdfFileName, OWNER); So conclusion is that be sure you are supplying the password while opening the password protected file in PdfReader in C# or VB.net code:

Compatibility: C#,VB.NET,C++.NET
Submitted on 1/8/2015 1:29:52 AM and accessed 55 times.

     

कोई टिप्पणी नहीं:

एक टिप्पणी भेजें

fly