Click here to Skip to main content
15,908,931 members
Home / Discussions / ASP.NET
   

ASP.NET

 
Generalpassing the values from one web page to another webpage Pin
venkatramana_arutla17-Dec-07 3:42
venkatramana_arutla17-Dec-07 3:42 
GeneralRe: passing the values from one web page to another webpage Pin
Paddy Boyd17-Dec-07 4:13
Paddy Boyd17-Dec-07 4:13 
GeneralRe: passing the values from one web page to another webpage Pin
Usharva17-Dec-07 17:17
Usharva17-Dec-07 17:17 
GeneralRe: passing the values from one web page to another webpage Pin
Gandalf_TheWhite17-Dec-07 18:38
professionalGandalf_TheWhite17-Dec-07 18:38 
GeneralPassing ImageUrl in Javascript function Pin
.NET- India 17-Dec-07 2:18
.NET- India 17-Dec-07 2:18 
GeneralRe: Passing ImageUrl in Javascript function Pin
Michael Sync17-Dec-07 16:25
Michael Sync17-Dec-07 16:25 
GeneralRe: Passing ImageUrl in Javascript function Pin
.NET- India 17-Dec-07 18:17
.NET- India 17-Dec-07 18:17 
QuestionURI formats are not supported...!...? Pin
Sebastian T Xavier17-Dec-07 2:04
Sebastian T Xavier17-Dec-07 2:04 
Hi all

I was trying to generate a PDF document from an html file. Below is what i have tried...

private bool GeneratePDF(string sOutputHTMLFile, string sOutPutFile)
{
try
{
Doc objDoc = new Doc();
objDoc.SetInfo(0, "License", "322-xxx-815-xxx-4945-xxx");
StreamReader sr = new StreamReader(sOutputHTMLFile, Encoding.Default); string input = sr.ReadToEnd();
objDoc.Rect.Inset(50, 50);
objDoc.Page = objDoc.AddPage();
int theID;
theID = objDoc.AddImageHtml(input, true, 1000, false);
while (true)
{
objDoc.FrameRect();
if (!objDoc.Chainable(theID))
break;
objDoc.Page = objDoc.AddPage();
theID = objDoc.AddImageToChain(theID);
}

for (int i = 1; i <= objDoc.PageCount; i++)
{
objDoc.PageNumber = i;
objDoc.Flatten();
}
objDoc.Save(sOutPutFile);
objDoc.Clear();
objDoc.Dispose();
return true;
}
catch (Exception ex)
{
return false;
}
}

These are the input parameters i have used...

http://localhost/webportal/PDF/Report3.html

C:\Inetpub\wwwroot\webportal\PDF\Report3.pdf

But when i execute this function i got an error like this "URI formats are not supported"

This line causes the error--> StreamReader sr = new StreamReader(sOutputHTMLFile, Encoding.Default);

Could you please tell how to solve this issue...............

Thanks in advance......


Regards
Sebastian
AnswerRe: URI formats are not supported...!...? Pin
Sebastian T Xavier17-Dec-07 6:01
Sebastian T Xavier17-Dec-07 6:01 
QuestionSearch on the webpage Pin
hirennn17-Dec-07 2:03
hirennn17-Dec-07 2:03 
GeneralRe: Search on the webpage Pin
Paddy Boyd17-Dec-07 2:31
Paddy Boyd17-Dec-07 2:31 
JokeRe: Search on the webpage Pin
Abhijit Jana17-Dec-07 2:45
professionalAbhijit Jana17-Dec-07 2:45 
JokeRe: Search on the webpage Pin
Rocky#17-Dec-07 4:59
Rocky#17-Dec-07 4:59 
GeneralRe: Search on the webpage Pin
Paddy Boyd17-Dec-07 22:12
Paddy Boyd17-Dec-07 22:12 
GeneralRe: Search on the webpage Pin
Gandalf_TheWhite17-Dec-07 18:17
professionalGandalf_TheWhite17-Dec-07 18:17 
GeneralRegular Expression for Validate Url Pin
kinnuP17-Dec-07 1:43
kinnuP17-Dec-07 1:43 
GeneralRe: Regular Expression for Validate Url Pin
Rocky#17-Dec-07 4:53
Rocky#17-Dec-07 4:53 
GeneralChanging text of embedded image in email Pin
Kapil Thakur17-Dec-07 1:37
Kapil Thakur17-Dec-07 1:37 
Questionhow to handle dynamicaly created button in asp.net with c#?? Pin
yogesh_softworld12317-Dec-07 1:33
yogesh_softworld12317-Dec-07 1:33 
AnswerRe: how to handle dynamicaly created button in asp.net with c#?? Pin
Abhijit Jana17-Dec-07 2:16
professionalAbhijit Jana17-Dec-07 2:16 
GeneralRe: how to handle dynamicaly created button in asp.net with c#?? [modified] Pin
yogesh_softworld12317-Dec-07 3:20
yogesh_softworld12317-Dec-07 3:20 
GeneralRe: how to handle dynamicaly created button in asp.net with c#?? Pin
Abhijit Jana17-Dec-07 19:10
professionalAbhijit Jana17-Dec-07 19:10 
QuestionIs there a way to handle right click close button's event of IE title bar ? Pin
garimajain_mca17-Dec-07 1:15
garimajain_mca17-Dec-07 1:15 
GeneralRe: Is there a way to handle right click close button's event of IE title bar ? Pin
Vasudevan Deepak Kumar17-Dec-07 1:20
Vasudevan Deepak Kumar17-Dec-07 1:20 
GeneralRe: Is there a way to handle right click close button's event of IE title bar ? Pin
Pete O'Hanlon17-Dec-07 1:26
mvePete O'Hanlon17-Dec-07 1:26 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.