Wrox Home  
Search P2P Archive for: Go

  Return to Index  

asp_web_howto thread: sorry to resend!


Message #1 by Aaron.Mintz@d... on Tue, 22 May 2001 16:20:31 -0400
i never got a confirmation that my question was sent, so i am 

resending.

Sorry if this is the second time recieving it.



does anyone have any asp code that converts Word files to PDF?

The site I'm working on allows users to have work-in-progress word 

files

stored on the server, but once archived I would like to convert the 

files to

pdf for viewing only.



Thanks,



Aaron



-----Original Message-----

From: fabricio_silva@n... [mailto:fabricio_silva@n...]

Sent: Tuesday, May 22, 2001 1:48 PM

To: ASP Web HowTo

Subject: [asp_web_howto] RE: Reading from a Textfile into an ASP Page





Kyle:



Does this also apply to the NextLink component?  I have a problem...



I am bent on becoming a bona fide ASP developer!  However, when

recently trying to incorporate the content linker component to the new

corporate website I'm building for my company, I keep getting the 

following

error:

MSWC.NextLink error '80004005'  ERROR Can not open file



I've gone to the Microsoft site, as well as a few other sites, but 

cannot

get any documentation on how to prevent this error from occurring.  I 

am

emailing you as a last resort, as I assume you must be quite busy. 



Using IE please go to:

http://www.eurekabroadband.com/fab/newcorpsite/products/prod_man_apps2.a

sp



I'd be very appreciative if you could give me a solution to this 

problem.



Here's the code I'm using, followed by the text file:



<%

''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''

'

' Sub WriteLine

'

' This routine prints a line of HTML to the browser and

' includes a carriage return/line feed at the end of the

' line. That cleans up the HTML output for debugging

' purposes.

'

''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''

Sub WriteLine(strData)

	Response.Write strData & vbCrLF

End Sub



''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''

'

' Sub WriteComment

'

' This routine prints a comment into the HTML output.

'

''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''

Sub WriteComment(strData)

	WriteLine "<!-- " & strData & " -->"

End Sub

 %>



					=09

<%



Set objNL=3DServer.CreateObject("MSWC.NextLink")

myListCount=3DobjNL.GetListCount("man_apps_LNavLinks.txt")

For URLCounter=3D1 to myListCount

myCurrentURL=3DobjNL.GetNthURL("man_apps_LNavLinks.txt",URLCounter)

WriteLine "<TR>"

Response.Write "<TD>"

Response.Write myCurrentURL

WriteLine "</TD>"

WriteLine "</TR>"

Response.Write "<BR>"

Next

 %>



TXT FILE:



../prod_man_apps_fw.asp	Firewall

../prod_man_apps_vpn.asp	VPN

../prod_man_apps_eav.asp	E-mail Anti-virus

../prod_man_apps_bgp4.asp	BGP4

../prod_man_apps_mn_off.asp	Managed NAT (Off Net)

../prod_man_apps_mn_on.asp	Managed NAT (On Net)

../prod_man_apps_mnr.asp	Managed Router







> Use the Scripting runtime for this.

>

> Dim oFS

> Dim oStream

>

> Set oFS =3D3D Server.CreateObject("Scripting.FileSystemObject")

> Set oStream =3D3D oFS.OpenTextFile("C:\myFile.txt")

>

> Response.Write oStream.ReadAll()

>

> oStream.Close

> Set oStream =3D3D Nothing

> Set oFS =3D3D Nothing

>

> >> -----Original Message-----

> >> From: puneetmiglani@h... [mailto:puneetmiglani@h...]

> >> Sent: Thursday, May 17, 2001 3:12 PM

> >> To: ASP Web HowTo

> >> Subject: [asp_web_howto] Reading from a Textfile into an ASP Page

> >>=3D20

> >>=3D20

> >> How do i do this when i write all the information that i want to 

be=3D20

> >> displayed in a particular page in a .txt file and want to=3D20

> >> call it in an=3D20

> >> asp file when the particular page is called, the basic idea=3D20

> >> is to make the=3D20

> >> work of updating a site easier by using a text file so even a 

person =3D

>

> >> without the knowledge of the code can change the contents.

> >>


  Return to Index