|
Hi,
I am trying to understand this piece of code, its little bit hard to understand. Can you please give me a little overview of it.
I feel like its very useful for me but I want to get some idea what class and what method is doing what functionality etc.
Thanks & Regards,
Abdul Aleem Mohammad
St Louis MO - USA
|
|
|
|
|
As far as storing a stream in a buffer, you just make a stream, and open the file, and copy the file stream into the stream. From there, you can read the stream into a byte array, and manipulate the byte array, and copy it back to a stream, and write the file.
As for the code sample that I have written,
After learning how to write in c++, I have learned that in asp.net, you can load unmanaged code written in c or c++, and use the functions inside them, as if your application was a c++ program. But in order to do so, you have to create an interface or a wrapper, that declares each internal function in vb or c#, so that vb or c# can understand them. Once vb or c# understands what's going in and what's being returned, then you can use the code successfully.
The reason the code looks so foreign, is because it's the high end of vb or c#.
The first block is a typical code, that produces your thumbnails.
The 2nd block, is the interface between vb and c++. It can be C# and c++ as well, but you need a interface to access the shell32.dll.
[EDIT]
So until I get it working, if I can, the code is of no use to anyone. That's what I meant earlier in a previous post that I have nothing to offer at the moment.
|
|
|
|
|
Hi,
Can you please show me some way to convert the png and jpg files in to svg or pdf format by without using any 3rd aprty tools (just using .net libraries or C++ .net code). Any kind of support may be by giving a code snippet or giving a link anything helps me.
Thanks & Regards,
Abdul Aleem Mohammad
St Louis MO - USA
|
|
|
|
|
No. Can't do that
Trade secret.
|
|
|
|
|
help me to design mater page with menus and all its menus click open new page
|
|
|
|
|
No. There are a gazillion resources on the web that will show you exactly what to do and even more that have free templates that you can download. Start with Google.
"If you think it's expensive to hire a professional to do the job, wait until you hire an amateur." Red Adair.
nils illegitimus carborundum
me, me, me
|
|
|
|
|
Hi,
I have an asp.net application which has to convert different file formats like (.doc, .docx, pdf, xsl, xslx, png, jpg ..ect) in Tiff image, but if we have multiple pages word document, then all the pages are coming in one Tiff image. But we want them to come in multiple Tiff images.
Is there any way that I can divide each page as one single document and send them to the my service so that it can process each page at a time and give me the the multiple Tiff images.
Not only for the document file but I want to do it for all the formats that are mentioned above.
I am in need please help me.
Thanks,
Abdul
Thanks & Regards,
Abdul Aleem Mohammad
St Louis MO - USA
|
|
|
|
|
You should edit your question for clarity
Are you receiving 1 tiff from someone else, that contains all the pages?
Are you generating 1 tiff, that contains all the pages, and now you want to split them into multiple tiffs?
|
|
|
|
|
Hi,
I am gettting the various format files with multiple pages, then I am converting them in to Tiff image, which is coming as one file with multiple pages. But I want either this Tiff to be splitted in multiple files containing each page of the main Tiff as one separate file.
Or we can split multiple pages input file in to different files containing each page as one separate file.
Either way if fine for me, I should get multiple Tiff images. Advice me which approach is good for performance, and please give me code snippet or links to implement it.
Thanks & Regards,
Abdul Aleem Mohammad
St Louis MO - USA
|
|
|
|
|
I'm in the process of creating thumbnails from doc, xls, already did pdf, and was able to create multiple image pages.
On the docs, I'm looking at the Shell32.dll built into Windows, in which it has the capability to extract images from office files, and i suppose to be able to create separate images for each page.
It's pretty complex, will let you know if it works.
Other than that, I have nothing to offer.
|
|
|
|
|
hi,
that really helps me a lot sure. thank you very much.
Thanks & Regards,
Abdul Aleem Mohammad
St Louis MO - USA
|
|
|
|
|
You're going to have to parse each document to determine the page boundaries and create Tiffs accordingly. There's no simple way to do this: you'll need a parser for each distinct document type and a simple way to add more if users might be inclined to add further document types.
The easiest way would be to find third party controls that will do this for you rather than having to write your own for each document type. Some will even handle the Tiff creation for you (if I recall ABCPDF will do this for the pdf document types).
Another issue you will face is that of storage. Are you keeping these in the database or in a file system? How will you avoid name collisions? How will you keep track of all the separate parts of a document and so-on and so-forth...
"If you think it's expensive to hire a professional to do the job, wait until you hire an amateur." Red Adair.
nils illegitimus carborundum
me, me, me
|
|
|
|
|
Hi,
Thanks for the message, we are handling with naming conflicts somehow by using some format for names.
I think if I can just split the Tiff image which has multiple pages would be good idea the reason for that is, in this way I would just need to split one format of the file. Because it is the output format for the all the input files.
I know I used ABCPDF once for generating pdf files, but here my management has already purchased Ecrion. Yes the files are being stored in the database.
Thanks & Regards,
Abdul Aleem Mohammad
St Louis MO - USA
|
|
|
|
|
Hi. Does anyone have idea of doing calculations using vb.net?
when the button is clicked and invoked, the points in the database should be deducted. I have no experience of doing calculation before.
|
|
|
|
|
|
does anyone have experience with multiple booking project using arraylist?
|
|
|
|
|
|
Hi
i am new here.im kuldeep.i have problem with gridviewi wann custom pageing in asp.netgridview and database is Sqlserver 2008
|
|
|
|
|
|
Frnds,
I have a textbox txtSalaryMonth which displays the value of Ajax CalenderExtender on click of a Image.
But when I press Another button btnOK to send the calendarVale as paramenter to Database..
It shows txtSalaryMonth.text as null...
My txtSalaryMonth.Readonly = false.
My Code is:
<ajaxToolkit:CalendarExtender ID="clnSalaryMonth" runat="server" TargetControlID="txtSalaryMonth" Format="Y" BehaviorID="calendar1"
PopupButtonID="imgSalarymonth" OnClientShown="onCalendarSalShown" OnClientHidden="onCalendarSalHidden" />
and Java Script is :
function onCalendarSalShown()
{
var cal = $find("calendar1");
cal._switchMode("months", true);
if (cal._monthsBody)
{
for (var i = 0; i < cal._monthsBody.rows.length; i++)
{
var row = cal._monthsBody.rows[i];
for (var j = 0; j < row.cells.length; j++)
{
Sys.UI.DomEvent.addHandler(row.cells[j].firstChild, "click", callSal);
}
}
}
}
function onCalendarSalHidden()
{
var cal = $find("calendar1");
if (cal._monthsBody)
{
for (var i = 0; i < cal._monthsBody.rows.length; i++)
{
var row = cal._monthsBody.rows[i];
for (var j = 0; j < row.cells.length; j++)
{
Sys.UI.DomEvent.removeHandler(row.cells[j].firstChild, "click", callSal);
}
}
}
}
function callSal(eventElement)
{
var target = eventElement.target;
switch (target.mode)
{
case "month":
var cal = $find("calendar1");
cal._visibleDate = target.date;
cal.set_selectedDate(target.date);
cal._switchMonth(target.date);
cal._blur.post(true);
cal.raiseDateSelectionChanged();
break;
}
}
plss Help
|
|
|
|
|
Hi, i have to convert string to class object in c#.
Class Admin = new Admin();
if(!((Admin)Session["Admin"]).GetRight())
{
}
i have to convert session["Admin"] to class Admin Object..
its give an error at runtime (can't convert string to class object)
Any Solution..
|
|
|
|
|
First thing
find the code which is actually populating this Session["Admin"] . make sure that it is putting Admin type into it and not some string only.
Secondly -
use this to call the function
Admin ad = Session["Admin"] as Admin;
if(ad != null)
{
if(ad.GetRight())
{
}
}
else
{
}
Every now and then say, "What the Elephant." "What the Elephant" gives you freedom. Freedom brings opportunity. Opportunity makes your future.
|
|
|
|
|
I wrote a few new web form pages in C# 2010. I orginally tested the code in cassini and everything worked fine. I was able to set breakpoints and the code reached those breakpoints successfully.
Now I want to test the code using the local iis server and/or a test iis server that is on my workstation. I set breakpoints, but the breakpoints are missed.
When I am trying to run with the local iis, I set the build mode to debug.
Are there some visual studio 2010 options that I need to set? If so,what are they?
Thus can you tell me what could be wrong, code stops at my breakpoints while debugging is local iis?
|
|
|
|
|
Is the same work flow getting executed? Does the breakpoint given shows any error or warning of not being set properly?
|
|
|
|
|
I am working with a C#.net 2010 web form page that I wrote a couple of weeks ago. My problem is the
Response.Redirect("~/Detail.aspx"); statement.
When I first started to write this web page and tested using cassini, I had a problem with that line of code. So I changed the line of code to
Response.Redirect("~/Detail.aspx", false); and that resolved the problem.
Now I am trying run this code on an iis test server and I am getting the same error I orginally had in cassini.
I changed the line of code back to
Response.Redirect("~/Detail.aspx"); and that did not solve the problem. The web app did not go from page 1 to page 2.
Thus can you tell me what to change in this code so web page 1 goes to web page 2?
modified 27-Jun-12 0:34am.
|
|
|
|